thumbnails.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. *{
  2. box-sizing: border-box;
  3. }
  4. #nos-packs{
  5. .content{
  6. margin-top: 0;
  7. width: 70%;
  8. margin: auto;
  9. .section{
  10. .__intro{
  11. text-align: center;
  12. color: $light-blue;
  13. margin: 100px 0;
  14. p{
  15. font-family: $now_alt_bold;
  16. font-size: 1.2rem;
  17. }
  18. }
  19. .d-flex{
  20. display: inline-flex;
  21. flex-wrap: wrap;
  22. width: 100%;
  23. .__thumbnails{
  24. margin: 0 1rem;
  25. width: calc((100% / 4) - 2rem);
  26. min-width: 200px;
  27. .__title{
  28. text-align: center;
  29. p{
  30. border-bottom: 3px solid #b5cb3a;
  31. width: max-content;
  32. margin: 0 auto 1rem auto;
  33. padding: 0 1.5rem 0.2rem 1.5rem;
  34. font-size: 1rem;
  35. font-family: $now_alt_medium;
  36. }
  37. }
  38. .__thumb{
  39. position: relative;
  40. .__images{
  41. position: relative;
  42. img{
  43. width: 100%;
  44. height: 100%;
  45. object-fit: cover;
  46. }
  47. }
  48. }
  49. }
  50. }
  51. .dl_brochure{
  52. width: 100%;
  53. margin: 100px 0;
  54. a{
  55. font-size: 1.5rem;
  56. font-family: $now_alt_medium;
  57. display: block;
  58. text-align: center;
  59. text-transform: uppercase;
  60. color: $light-blue;
  61. }
  62. }
  63. &.nos_pack{
  64. .__thumbnails{
  65. .__thumb{
  66. transition: 0.3s transform ease;
  67. &:hover{
  68. transform: scale(1.015);
  69. transition: 0.3s transform ease, 0.3s box-shadow ease;
  70. .__images, .__btn{
  71. box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
  72. transition: 0.3s box-shadow ease;
  73. }
  74. }
  75. }
  76. .__images{
  77. transition: 0.5s filter ease;
  78. filter: grayscale(0%);
  79. .__sub-title{
  80. opacity: 0;
  81. position: absolute;
  82. top: 50%;
  83. left: 0;
  84. transform: translateY(-0%);
  85. text-align: center;
  86. color: white;
  87. padding: 1rem;
  88. transition: 0.5s transform ease, 1s opacity ease;
  89. p{
  90. font-size: 1.2rem;
  91. font-family: $now_alt_medium;
  92. }
  93. }
  94. }
  95. .__btn{
  96. color: white;
  97. display: block;
  98. padding: 0.7rem 0;
  99. margin-top: 1rem;
  100. font-size: 1rem;
  101. font-family: $now_alt_medium;
  102. text-align: center;
  103. .triangle{
  104. position: absolute;
  105. bottom: 0;
  106. left: 50%;
  107. transform: translate(-50%,90%);
  108. display : inline-block;
  109. height : 0;
  110. width : 0;
  111. border-top : 20px solid red;
  112. border-right : 15px solid transparent;
  113. border-left : 15px solid transparent;
  114. &.__blue{
  115. border-top : 20px solid $light-blue;
  116. }
  117. &.__green{
  118. border-top : 20px solid $green;
  119. }
  120. &.__red{
  121. border-top : 20px solid $red;
  122. }
  123. }
  124. &.__blue{
  125. background: $light-blue;
  126. }
  127. &.__green{
  128. background: $green;
  129. }
  130. &.__red{
  131. background: $red;
  132. }
  133. &.__grey{
  134. background: $grey;
  135. }
  136. }
  137. &:hover{
  138. .__images{
  139. img{
  140. filter: grayscale(100%);
  141. transition: 0.5s filter ease;
  142. }
  143. .__sub-title{
  144. opacity: 1;
  145. transform: translateY(-50%);
  146. transition: 0.5s transform ease, 1s opacity ease;
  147. }
  148. }
  149. }
  150. }
  151. }
  152. &:last-child{
  153. margin-bottom: 100px;
  154. }
  155. .__more{
  156. display: none;
  157. margin: 2rem 1rem;
  158. &.visible{
  159. display: block;
  160. }
  161. .__details{
  162. position: relative;
  163. }
  164. .__image-background{
  165. width: 100%;
  166. height: auto;
  167. img{
  168. width: 100%;
  169. height: 100%;
  170. object-fit: cover;
  171. }
  172. }
  173. .__wrap-content{
  174. z-index: 999;
  175. width: 100%;
  176. height: auto;
  177. padding: 2rem;
  178. display: flex;
  179. justify-content: flex-end;
  180. .__content{
  181. background: white;
  182. width: 50%;
  183. height: auto;
  184. padding: 2rem;
  185. .__title{
  186. h6{
  187. margin:0;
  188. font-size: 1.3rem;
  189. color: $light-blue;
  190. font-family: $now_alt_medium;
  191. }
  192. }
  193. .__txt{
  194. p{
  195. font-size: 1rem;
  196. font-family: $now_alt_medium;
  197. }
  198. &.__color{
  199. color: $light-blue;
  200. margin-bottom: 1rem;
  201. }
  202. }
  203. .__btn{
  204. display: inline-flex;
  205. margin-top: 1rem;
  206. & > div{
  207. background: $light-blue;
  208. margin: 0;
  209. transition: 0.3s transform ease, 0.3s box-shadow ease;
  210. &:hover{
  211. transform: scale(1.015);
  212. box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
  213. transition: 0.3s transform ease, 0.3s box-shadow ease;
  214. }
  215. &:not(:first-child){
  216. margin: 0 1rem;
  217. }
  218. }
  219. a{
  220. font-family: $now_alt_medium;
  221. font-size: 0.9rem;
  222. color: white;
  223. padding: 0.5rem 1.5rem;
  224. }
  225. }
  226. }
  227. }
  228. &.open{
  229. display: block;
  230. }
  231. }
  232. }
  233. }
  234. }