thumbnails.scss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. *{
  2. box-sizing: border-box;
  3. }
  4. #nos-packs, #nos-offres{
  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. .__title{
  27. text-align: center;
  28. p{
  29. border-bottom: 3px solid #b5cb3a;
  30. width: max-content;
  31. margin: 0 auto 1rem auto;
  32. padding: 0 1.5rem 0.2rem 1.5rem;
  33. font-size: 1rem;
  34. font-family: $now_alt_medium;
  35. }
  36. }
  37. .__thumb{
  38. position: relative;
  39. .__images{
  40. position: relative;
  41. height: 250px;
  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. a{
  68. outline: none;
  69. border: 0;
  70. }
  71. &:hover{
  72. transform: scale(1.015);
  73. transition: 0.3s transform ease, 0.3s box-shadow ease;
  74. .__images, .__btn{
  75. box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
  76. transition: 0.3s box-shadow ease;
  77. }
  78. }
  79. }
  80. .__images{
  81. transition: 0.5s filter ease;
  82. filter: grayscale(0%);
  83. .__sub-title{
  84. opacity: 0;
  85. position: absolute;
  86. top: 50%;
  87. left: 0;
  88. transform: translateY(-0%);
  89. text-align: center;
  90. color: white;
  91. padding: 1rem;
  92. transition: 0.5s transform ease, 1s opacity ease;
  93. p{
  94. font-size: 1.2rem;
  95. font-family: $now_alt_medium;
  96. }
  97. }
  98. }
  99. .__btn{
  100. color: white;
  101. display: block;
  102. padding: 0.7rem 0;
  103. margin-top: 1rem;
  104. font-size: 1rem;
  105. font-family: $now_alt_medium;
  106. text-align: center;
  107. .triangle{
  108. position: absolute;
  109. z-index: -1;
  110. bottom: 0;
  111. left: 50%;
  112. transform: translate(-50%,0%);
  113. display : inline-block;
  114. height : 0;
  115. width : 0;
  116. border-top : 20px solid;
  117. border-right : 15px solid transparent;
  118. border-left : 15px solid transparent;
  119. transition: 0.1s transform ease;
  120. &.visible{
  121. transform: translate(-50%,90%);
  122. transition: 0.1s transform ease;
  123. }
  124. &.__blue{
  125. border-top : 20px solid $light-blue;
  126. }
  127. &.__green{
  128. border-top : 20px solid $green;
  129. }
  130. &.__red{
  131. border-top : 20px solid $red;
  132. }
  133. }
  134. &.__blue{
  135. background: $light-blue;
  136. }
  137. &.__green{
  138. background: $green;
  139. }
  140. &.__red{
  141. background: $red;
  142. }
  143. &.__grey{
  144. background: $grey;
  145. }
  146. }
  147. &:hover{
  148. .__images{
  149. img{
  150. filter: grayscale(100%);
  151. transition: 0.5s filter ease;
  152. }
  153. .__sub-title{
  154. opacity: 1;
  155. transform: translateY(-50%);
  156. transition: 0.5s transform ease, 1s opacity ease;
  157. }
  158. }
  159. }
  160. }
  161. }
  162. &:last-child{
  163. margin-bottom: 100px;
  164. }
  165. .__more{
  166. display: none;
  167. margin: 2rem 1rem;
  168. .__txt.black{
  169. p{
  170. color: black!important;
  171. }
  172. }
  173. &.__blue{
  174. .__title{
  175. color: $light-blue;
  176. }
  177. .__txt{
  178. p{
  179. color: $light-blue;
  180. }
  181. }
  182. }
  183. &.__green{
  184. .__title{
  185. color: $green;
  186. }
  187. .__txt{
  188. p{
  189. color: $green;
  190. }
  191. }
  192. }
  193. &.__red{
  194. .__title{
  195. color: $red;
  196. }
  197. .__txt{
  198. p{
  199. color: $red;
  200. }
  201. }
  202. }
  203. &.visible{
  204. display: block;
  205. }
  206. .__details{
  207. position: relative;
  208. }
  209. .__image-background{
  210. width: 100%;
  211. height: auto;
  212. img{
  213. width: 100%;
  214. height: 100%;
  215. object-fit: cover;
  216. }
  217. }
  218. .__wrap-content{
  219. z-index: 999;
  220. width: 100%;
  221. height: auto;
  222. padding: 2rem;
  223. display: flex;
  224. justify-content: flex-end;
  225. .__content{
  226. background: white;
  227. width: 50%;
  228. height: auto;
  229. padding: 2rem;
  230. position: relative;
  231. .close{
  232. position: absolute;
  233. top: 1rem;
  234. right: 1rem;
  235. cursor: pointer;
  236. }
  237. .__title{
  238. h6{
  239. margin:0;
  240. font-size: 1.3rem;
  241. font-family: $now_alt_medium;
  242. }
  243. }
  244. .__txt{
  245. p{
  246. font-size: 1rem;
  247. font-family: $now_alt_medium;
  248. }
  249. &.__color{
  250. color: $light-blue;
  251. margin-bottom: 1rem;
  252. }
  253. }
  254. .__btn{
  255. display: inline-flex;
  256. margin-top: 1rem;
  257. & > div{
  258. background: $light-blue;
  259. margin: 0;
  260. transition: 0.3s transform ease, 0.3s box-shadow ease;
  261. &:hover{
  262. transform: scale(1.015);
  263. box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
  264. transition: 0.3s transform ease, 0.3s box-shadow ease;
  265. }
  266. &:not(:first-child){
  267. margin: 0 1rem;
  268. }
  269. }
  270. a{
  271. font-family: $now_alt_medium;
  272. font-size: 0.9rem;
  273. color: white;
  274. padding: 0.5rem 1.5rem;
  275. }
  276. }
  277. }
  278. }
  279. &.open{
  280. display: block;
  281. }
  282. }
  283. }
  284. }
  285. }