_modals.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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-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. }
  57. .modal-content {
  58. padding: $spacer*2;
  59. }
  60. // Remove bottom margin if need be
  61. .modal-form {
  62. margin-bottom: 0;
  63. }
  64. // Footer (for actions)
  65. .modal-footer {
  66. padding: 14px 15px 15px;
  67. border-top: 1px solid $panel-bg;
  68. background-color: $panel-bg;
  69. text-align: right; // right align buttons
  70. @include clearfix(); // clear it in case folks use .pull-* classes on buttons
  71. }
  72. .modal--narrow {
  73. max-width: 500px;
  74. }
  75. .confirm-modal {
  76. max-width: 500px;
  77. .confirm-modal-icon {
  78. padding-top: 41px;
  79. font-size: 280%;
  80. color: $green;
  81. padding-bottom: 20px;
  82. }
  83. .confirm-modal-text {
  84. font-size: $font-size-h4;
  85. color: $link-color;
  86. margin-bottom: $spacer*2;
  87. padding-top: $spacer;
  88. }
  89. .confirm-modal-text2 {
  90. font-size: $font-size-root;
  91. padding-top: $spacer;
  92. }
  93. .confirm-modal-buttons {
  94. margin-bottom: $spacer;
  95. button {
  96. margin-right: $spacer/2;
  97. }
  98. }
  99. .modal-content-confirm-text {
  100. margin-bottom: 2rem;
  101. span {
  102. text-align: center;
  103. }
  104. }
  105. }
  106. .share-modal-body {
  107. padding: 10px 0;
  108. .tight-form {
  109. text-align: left;
  110. }
  111. .share-modal-options {
  112. margin: 11px 0px 33px 0px;
  113. display: inline-block;
  114. }
  115. .share-modal-big-icon {
  116. margin-bottom: 10px;
  117. margin-right: 2rem;
  118. .fa, .icon-gf {
  119. font-size: 50px;
  120. }
  121. }
  122. .share-modal-info-text {
  123. margin-top: 5px;
  124. strong {
  125. color: $headings-color;
  126. font-weight: 500;
  127. }
  128. }
  129. .share-modal-header {
  130. display: flex;
  131. margin: 0px 0 22px 0;
  132. }
  133. .share-modal-content {
  134. flex-grow: 1;
  135. }
  136. .tight-form {
  137. text-align: left;
  138. }
  139. .share-modal-link {
  140. max-width: 716px;
  141. white-space: nowrap;
  142. overflow: hidden;
  143. display: block;
  144. text-overflow: ellipsis;
  145. }
  146. }