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