_modals.scss 2.3 KB

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