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