_popup.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. /* Popup */
  2. @media screen and (min-width: 1209px) {
  3. .close__popup {
  4. &:hover {
  5. &::before,&::after {
  6. background-color: #4a4a4a;
  7. }
  8. }
  9. }
  10. }
  11. .popup {
  12. position: fixed;
  13. top: 50%;
  14. left: 50%;
  15. transform: translate(-50%, -50%) scale(0);
  16. z-index: 4;
  17. padding: 50px 55px;
  18. background-color: #fff;
  19. max-height: 100%;
  20. overflow: auto;
  21. scrollbar-width: none;
  22. -ms-overflow-style: none;
  23. &::-webkit-scrollbar {
  24. display: none;
  25. }
  26. }
  27. .popup.active {
  28. transform: translate(-50%, -50%) scale(1);
  29. transition: transform 0.4s;
  30. }
  31. .close__popup {
  32. display: block;
  33. position: absolute;
  34. right: 15px;
  35. top: 15px;
  36. width: 22px;
  37. height: 22px;
  38. z-index: 2;
  39. transform: rotate(-45deg);
  40. &::before,
  41. &::after {
  42. content: "";
  43. position: absolute;
  44. left: 0px;
  45. top: 50%;
  46. width: 100%;
  47. height: 2px;
  48. background-color: #BDBDBD;
  49. transform: translateY(-50%);
  50. transition: background-color .4s;
  51. }
  52. &::after {
  53. left: 50%;
  54. top: 0px;
  55. transform: translateX(-50%);
  56. height: 100%;
  57. width: 2px;
  58. }
  59. }
  60. .overlay {
  61. display: none;
  62. position: fixed;
  63. left: 0px;
  64. top: 0px;
  65. width: 100%;
  66. height: 100%;
  67. background-color: rgba(0, 0, 0, 0.3);
  68. z-index: 3;
  69. }
  70. .overlay.active {
  71. display: block;
  72. }
  73. .popup-caption {
  74. font-family: "Cochin", serif;
  75. font-weight: 700;
  76. font-size: 20px;
  77. line-height: 23px;
  78. letter-spacing: 0.05em;
  79. text-transform: uppercase;
  80. margin-bottom: 20px;
  81. }
  82. .popup-text {
  83. font-size: 14px;
  84. line-height: 18px;
  85. margin-bottom: 20px;
  86. }
  87. /* Popup call-back */
  88. .popup-call-back {
  89. text-align: center;
  90. }
  91. .popup-contact-caption {
  92. font-size: 14px;
  93. line-height: 18px;
  94. color: #828282;
  95. margin-top: 40px;
  96. }
  97. .call-back__info-list--popup {
  98. display: flex;
  99. flex-direction: column;
  100. align-items: center;
  101. margin-top: 15px;
  102. }
  103. /* //Popup call-back */
  104. /* //Popup */