_modals.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. // MAGNIFIC POPUP CONFIG
  2. // -----------------------------------------------------------------------------
  3. .mfp-bg {
  4. z-index: 10000;
  5. }
  6. .mfp-wrap {
  7. z-index: 10001;
  8. }
  9. // MODAL
  10. // -----------------------------------------------------------------------------
  11. .modal-block {
  12. background: transparent;
  13. padding: 0;
  14. text-align: left;
  15. max-width: 600px;
  16. margin: 40px auto;
  17. position: relative;
  18. &.modal-block-xs {
  19. max-width: 200px;
  20. }
  21. &.modal-block-sm {
  22. max-width: 400px;
  23. }
  24. &.modal-block-md {
  25. max-width: 600px;
  26. }
  27. &.modal-block-lg {
  28. max-width: 900px;
  29. }
  30. &.modal-block-full {
  31. max-width: 98%;
  32. }
  33. &.modal-header-color {
  34. .panel-heading {
  35. h2 {
  36. color: #FFF;
  37. }
  38. }
  39. }
  40. &.modal-full-color {
  41. .panel-heading {
  42. border: 0;
  43. h2 {
  44. color: #FFF;
  45. }
  46. }
  47. .panel-footer {
  48. border: 0;
  49. }
  50. .panel-body {
  51. background-color: transparent;
  52. }
  53. .fa {
  54. color: #FFF !important;
  55. }
  56. color: #FFF;
  57. }
  58. }
  59. /* Modal Wrapper */
  60. .modal-wrapper {
  61. position: relative;
  62. padding: 25px 0;
  63. }
  64. /* Modal Icon */
  65. .modal-icon {
  66. float: left;
  67. width: 20%;
  68. text-align: center;
  69. .fa {
  70. font-size: 52px;
  71. position: relative;
  72. top: -10px;
  73. color: $color-primary;
  74. }
  75. &.center {
  76. float: none;
  77. width: auto;
  78. padding-top: 20px;
  79. + .modal-text {
  80. float: none;
  81. width: auto;
  82. }
  83. }
  84. + .modal-text {
  85. float: left;
  86. width: 80%;
  87. }
  88. }
  89. /* Modal Text */
  90. .modal-text {
  91. padding: 0 5px;
  92. h1, h2, h3, h4, h5, h6 {
  93. padding: 0;
  94. margin: -7px 0 4px 0;
  95. }
  96. }
  97. // STATES
  98. // -----------------------------------------------------------------------------
  99. @each $state in $states {
  100. .modal-block-#{nth($state,1)} {
  101. .fa {
  102. color: #{nth($state,2)};
  103. }
  104. &.modal-header-color {
  105. .panel-heading {
  106. background-color: #{nth($state,2)};
  107. }
  108. }
  109. &.modal-full-color {
  110. .panel {
  111. background-color: lighten(nth($state,2), 8%);
  112. }
  113. .panel-heading {
  114. background-color: #{nth($state,2)};
  115. }
  116. .panel-footer {
  117. background-color: lighten(nth($state,2), 8%);
  118. }
  119. }
  120. }
  121. }
  122. // DARK
  123. // -----------------------------------------------------------------------------
  124. html.dark {
  125. .modal-content {
  126. background-color: $dark-bg;
  127. }
  128. .modal-header,
  129. .modal-footer {
  130. border-color: $dark-color-3;
  131. }
  132. }