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