_modals.scss 2.8 KB

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