_modals.scss 2.8 KB

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