_modals.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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: absolute;
  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. .modal-body--with-overflow {
  77. overflow-y: visible;
  78. }
  79. .confirm-modal {
  80. max-width: 500px;
  81. .confirm-modal-icon {
  82. padding-top: 41px;
  83. font-size: 280%;
  84. color: $green;
  85. padding-bottom: 20px;
  86. }
  87. .confirm-modal-text {
  88. font-size: $font-size-h4;
  89. color: $link-color;
  90. margin-bottom: $spacer*2;
  91. padding-top: $spacer;
  92. }
  93. .confirm-modal-text2 {
  94. font-size: $font-size-root;
  95. padding-top: $spacer;
  96. }
  97. .confirm-modal-buttons {
  98. margin-bottom: $spacer;
  99. button {
  100. margin-right: $spacer/2;
  101. }
  102. }
  103. .modal-content-confirm-text {
  104. margin-bottom: 2rem;
  105. span {
  106. text-align: center;
  107. }
  108. }
  109. }
  110. .share-modal-body {
  111. padding: 10px 0;
  112. .tight-form {
  113. text-align: left;
  114. }
  115. .share-modal-options {
  116. margin: 11px 0px 33px 0px;
  117. display: inline-block;
  118. }
  119. .share-modal-big-icon {
  120. margin-bottom: 10px;
  121. margin-right: 2rem;
  122. .fa, .icon-gf {
  123. font-size: 50px;
  124. }
  125. }
  126. .share-modal-info-text {
  127. margin-top: 5px;
  128. strong {
  129. color: $headings-color;
  130. font-weight: 500;
  131. }
  132. }
  133. .share-modal-header {
  134. display: flex;
  135. margin: 0px 0 22px 0;
  136. }
  137. .share-modal-content {
  138. flex-grow: 1;
  139. }
  140. .tight-form {
  141. text-align: left;
  142. }
  143. .share-modal-link {
  144. max-width: 716px;
  145. white-space: nowrap;
  146. overflow: hidden;
  147. display: block;
  148. text-overflow: ellipsis;
  149. }
  150. }