_modals.scss 2.8 KB

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