_modals.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. //
  2. // Modals
  3. // --------------------------------------------------
  4. // Background
  5. .modal-backdrop {
  6. position: fixed;
  7. top: 0;
  8. right: 0;
  9. bottom: 0;
  10. left: 0;
  11. z-index: $zindex-modal-backdrop;
  12. background-color: $black;
  13. }
  14. .modal-backdrop,
  15. .modal-backdrop.fade.in {
  16. @include opacity(70);
  17. }
  18. // Base modal
  19. .modal {
  20. position: fixed;
  21. z-index: $zindex-modal;
  22. width: 100%;
  23. background-color: $panel-bg;
  24. @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
  25. @include background-clip(padding-box);
  26. outline: none;
  27. max-width: 750px;
  28. left: 0;
  29. right: 0;
  30. margin-left: auto;
  31. margin-right: auto;
  32. top: 20%;
  33. }
  34. .modal-header {
  35. background-color: $body-bg;
  36. @include brand-bottom-border();
  37. @include clearfix();
  38. .gf-tabs-link.active {
  39. background-color: $panel-bg;
  40. }
  41. }
  42. .modal-header-title {
  43. font-style: italic;
  44. font-size: $font-size-h3;
  45. float: left;
  46. padding-top: $spacer * 0.75;
  47. margin: 0 $spacer*3 0 $spacer*1.5;
  48. }
  49. .modal-header-close {
  50. float: right;
  51. padding: 0.75rem $spacer;
  52. }
  53. // Body (where all modal content resides)
  54. .modal-body {
  55. position: relative;
  56. overflow-y: auto;
  57. }
  58. .modal-content {
  59. padding: $spacer*2;
  60. }
  61. // Remove bottom margin if need be
  62. .modal-form {
  63. margin-bottom: 0;
  64. }
  65. // Footer (for actions)
  66. .modal-footer {
  67. padding: 14px 15px 15px;
  68. border-top: 1px solid $panel-bg;
  69. background-color: $panel-bg;
  70. text-align: right; // right align buttons
  71. @include clearfix(); // clear it in case folks use .pull-* classes on buttons
  72. }
  73. .modal--narrow {
  74. max-width: 500px;
  75. }
  76. .confirm-modal {
  77. max-width: 500px;
  78. .confirm-modal-icon {
  79. padding-top: 41px;
  80. font-size: 280%;
  81. color: $green;
  82. padding-bottom: 20px;
  83. }
  84. .confirm-modal-text {
  85. font-size: $font-size-h4;
  86. color: $link-color;
  87. margin-bottom: $spacer*2;
  88. padding-top: $spacer;
  89. }
  90. .confirm-modal-text2 {
  91. font-size: $font-size-h5;
  92. padding-top: $spacer;
  93. }
  94. .confirm-modal-buttons {
  95. margin-bottom: $spacer;
  96. button {
  97. margin-right: $spacer/2;
  98. }
  99. }
  100. }
  101. .share-modal-body {
  102. text-align: center;
  103. padding: 10px 0;
  104. .tight-form {
  105. text-align: left;
  106. }
  107. .share-modal-options {
  108. margin: 11px 20px 33px 20px;
  109. display: inline-block;
  110. }
  111. .share-modal-big-icon {
  112. margin-bottom: 2rem;
  113. .fa, .icon-gf {
  114. font-size: 70px;
  115. }
  116. }
  117. .share-snapshot-info-text {
  118. margin: 10px 105px;
  119. strong {
  120. color: $headings-color;
  121. font-weight: 500;
  122. }
  123. }
  124. .share-snapshot-header {
  125. margin: 20px 0 22px 0;
  126. }
  127. .tight-form {
  128. text-align: left;
  129. }
  130. .share-snapshot-link {
  131. max-width: 716px;
  132. white-space: nowrap;
  133. overflow: hidden;
  134. display: block;
  135. text-overflow: ellipsis;
  136. }
  137. }