_modals.scss 2.8 KB

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