thumbnails.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. #nos-packs{
  2. .content{
  3. margin-top: 0;
  4. width: 70%;
  5. margin: auto;
  6. .section{
  7. .__intro{
  8. text-align: center;
  9. color: $light-blue;
  10. margin: 100px 0;
  11. p{
  12. font-family: $now_alt_bold;
  13. font-size: 1.2rem;
  14. }
  15. }
  16. .d-flex{
  17. display: inline-flex;
  18. width: 100%;
  19. .__more{
  20. display: none
  21. }
  22. .__thumbnails{
  23. margin: 0 1rem;
  24. .__title{
  25. text-align: center;
  26. p{
  27. border-bottom: 3px solid #b5cb3a;
  28. width: max-content;
  29. margin: 0 auto 1rem auto;
  30. padding: 0 1.5rem 0.2rem 1.5rem;
  31. font-size: 1rem;
  32. font-family: $now_alt_medium;
  33. }
  34. }
  35. .__thumb{
  36. position: relative;
  37. .__images{
  38. width: 300px;
  39. height: 300px;
  40. position: relative;
  41. object-fit: cover;
  42. img{
  43. width: 100%;
  44. height: 100%;
  45. }
  46. }
  47. }
  48. }
  49. }
  50. .dl_brochure{
  51. width: 100%;
  52. margin: 100px 0;
  53. a{
  54. font-size: 1.5rem;
  55. font-family: $now_alt_medium;
  56. display: block;
  57. text-align: center;
  58. text-transform: uppercase;
  59. color: $light-blue;
  60. }
  61. }
  62. &.nos_pack{
  63. .__thumbnails{
  64. .__thumb{
  65. transition: 0.3s transform ease;
  66. &:hover{
  67. transform: scale(1.015);
  68. transition: 0.3s transform ease, 0.3s box-shadow ease;
  69. .__images, .__btn{
  70. box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
  71. transition: 0.3s box-shadow ease;
  72. }
  73. }
  74. }
  75. .__images{
  76. transition: 0.5s filter ease;
  77. filter: grayscale(0%);
  78. .__sub-title{
  79. opacity: 0;
  80. position: absolute;
  81. top: 50%;
  82. left: 0;
  83. transform: translateY(-0%);
  84. text-align: center;
  85. color: white;
  86. padding: 1rem;
  87. transition: 0.5s transform ease, 1s opacity ease;
  88. p{
  89. font-size: 1.2rem;
  90. font-family: $now_alt_medium;
  91. }
  92. }
  93. }
  94. .__btn{
  95. color: white;
  96. display: block;
  97. padding: 0.7rem 0;
  98. margin-top: 1rem;
  99. font-size: 1rem;
  100. font-family: $now_alt_medium;
  101. text-align: center;
  102. &.__blue{
  103. background: $light-blue;
  104. }
  105. &.__green{
  106. background: $green;
  107. }
  108. &.__red{
  109. background: $red;
  110. }
  111. &.__grey{
  112. background: $grey;
  113. }
  114. }
  115. &:hover{
  116. .__images{
  117. img{
  118. filter: grayscale(100%);
  119. transition: 0.5s filter ease;
  120. }
  121. .__sub-title{
  122. opacity: 1;
  123. transform: translateY(-50%);
  124. transition: 0.5s transform ease, 1s opacity ease;
  125. }
  126. }
  127. }
  128. }
  129. }
  130. &:last-child{
  131. margin-bottom: 100px;
  132. }
  133. }
  134. }
  135. }