thumbnails.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477
  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. display: flex;
  27. flex-direction: column;
  28. align-self: baseline;
  29. .__title{
  30. text-align: center;
  31. margin-bottom: 1rem;
  32. .__d-inline{
  33. display: inline-block;
  34. border-bottom: 3px solid #b5cb3a;
  35. width: max-content;
  36. max-width: 100%;
  37. padding-bottom: 0.5rem;
  38. span{
  39. display: block;
  40. text-align: center;
  41. padding: 0 1.5rem 0.2rem 1.5rem;
  42. font-size: 0.8rem;
  43. font-family: $now_alt_medium;
  44. }
  45. }
  46. }
  47. .__thumb{
  48. position: relative;
  49. .__images{
  50. position: relative;
  51. height: 200px;
  52. overflow: hidden;
  53. img{
  54. width: 100%;
  55. height: 100%;
  56. object-fit: cover;
  57. }
  58. }
  59. }
  60. }
  61. }
  62. .dl_brochure{
  63. width: 100%;
  64. margin: 100px 0;
  65. a{
  66. font-size: 1.5rem;
  67. font-family: $now_alt_medium;
  68. display: block;
  69. text-align: center;
  70. text-transform: uppercase;
  71. color: $light-blue;
  72. }
  73. }
  74. &.nos_pack{
  75. .__thumbnails{
  76. .__thumb.__hover{
  77. transition: 0.3s transform ease;
  78. a{
  79. outline: none;
  80. border: 0;
  81. }
  82. &:hover{
  83. transform: scale(1.015);
  84. transition: 0.3s transform ease, 0.3s box-shadow ease;
  85. .__images, .__btn{
  86. box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
  87. transition: 0.3s box-shadow ease;
  88. }
  89. .__images{
  90. transition: 0.5s filter ease;
  91. filter: grayscale(0%);
  92. img{
  93. filter: grayscale(100%);
  94. transition: 0.5s filter ease;
  95. }
  96. }
  97. }
  98. }
  99. .__images{
  100. .__sub-title{
  101. opacity: 0;
  102. position: absolute;
  103. top: 50%;
  104. left: 0;
  105. transform: translateY(-0%);
  106. text-align: center;
  107. color: white;
  108. padding: 1rem;
  109. transition: 0.5s transform ease, 1s opacity ease;
  110. p{
  111. font-size: 1rem;
  112. font-family: $now_alt_medium;
  113. }
  114. }
  115. }
  116. .__btn{
  117. color: white;
  118. display: block;
  119. padding: 0.7rem 0;
  120. margin-top: 1rem;
  121. font-size: 0.8rem;
  122. font-family: $now_alt_medium;
  123. text-align: center;
  124. .triangle{
  125. position: absolute;
  126. z-index: -1;
  127. bottom: 0;
  128. left: 50%;
  129. transform: translate(-50%,0%);
  130. display : inline-block;
  131. height : 0;
  132. width : 0;
  133. border-top : 20px solid;
  134. border-right : 15px solid transparent;
  135. border-left : 15px solid transparent;
  136. transition: 0.1s transform ease;
  137. &.visible{
  138. transform: translate(-50%,90%);
  139. transition: 0.1s transform ease;
  140. }
  141. &.__blue{
  142. border-top : 20px solid $light-blue;
  143. }
  144. &.__green{
  145. border-top : 20px solid $green;
  146. }
  147. &.__red{
  148. border-top : 20px solid $red;
  149. }
  150. }
  151. &.__blue{
  152. background: $light-blue;
  153. }
  154. &.__green{
  155. background: $green;
  156. }
  157. &.__red{
  158. background: $red;
  159. }
  160. &.__grey{
  161. background: $grey;
  162. }
  163. }
  164. &:hover{
  165. .__images{
  166. .__sub-title{
  167. opacity: 1;
  168. transform: translateY(-50%);
  169. transition: 0.5s transform ease, 1s opacity ease;
  170. }
  171. }
  172. }
  173. }
  174. }
  175. &:last-child{
  176. margin-bottom: 100px;
  177. }
  178. .__thumbnails{
  179. &:nth-child(1){
  180. .__more{
  181. width: calc(100% * 4 + 6rem);
  182. }
  183. }
  184. &:nth-child(2){
  185. .__more{
  186. width: calc(100% * 4 + 6rem);
  187. transform: translateX(calc((-100% / 4) - 0.5rem));
  188. }
  189. }
  190. &:nth-child(3){
  191. .__more{
  192. width: calc(100% * 4 + 6rem);
  193. transform: translateX(calc((-100% / 2) - 1rem));
  194. }
  195. }
  196. }
  197. .__more{
  198. display: none;
  199. position: relative;
  200. left: 0;
  201. right: 0;
  202. // width: calc(100% * 4 - 6rem);
  203. margin: 0;
  204. margin: 2rem 0rem;
  205. .__txt.black{
  206. p{
  207. color: black!important;
  208. }
  209. }
  210. &.__blue{
  211. .__title{
  212. color: $light-blue;
  213. }
  214. .__txt{
  215. p{
  216. color: $light-blue;
  217. }
  218. }
  219. }
  220. &.__green{
  221. .__title{
  222. color: $green;
  223. }
  224. .__txt{
  225. p{
  226. color: $green;
  227. }
  228. }
  229. }
  230. &.__red{
  231. .__title{
  232. color: $red;
  233. }
  234. .__txt{
  235. p{
  236. color: $red;
  237. }
  238. }
  239. }
  240. &.visible{
  241. display: block;
  242. }
  243. .__details{
  244. position: relative;
  245. }
  246. .__image-background{
  247. width: 100%;
  248. height: auto;
  249. img{
  250. width: 100%;
  251. height: 100%;
  252. object-fit: cover;
  253. }
  254. }
  255. .__wrap-content{
  256. z-index: 999;
  257. width: 100%;
  258. height: auto;
  259. padding: 2rem;
  260. display: flex;
  261. justify-content: flex-end;
  262. .__content{
  263. background: white;
  264. width: 50%;
  265. height: auto;
  266. padding: 2rem;
  267. position: relative;
  268. .close{
  269. position: absolute;
  270. top: 1rem;
  271. right: 1rem;
  272. cursor: pointer;
  273. }
  274. .__title{
  275. text-align: left;
  276. h6{
  277. margin:0;
  278. font-size: 1.3rem;
  279. font-family: $now_alt_medium;
  280. }
  281. }
  282. .__txt{
  283. p{
  284. font-size: 0.9rem;
  285. font-family: $now_alt_medium;
  286. }
  287. &.__color{
  288. color: $light-blue;
  289. margin-bottom: 1rem;
  290. }
  291. }
  292. .__btn{
  293. display: inline-flex;
  294. margin-top: 1rem;
  295. width: 100%;
  296. & > div{
  297. width: 50%;
  298. background: $light-blue;
  299. margin: 0;
  300. transition: 0.3s transform ease, 0.3s box-shadow ease;
  301. padding: 0.5rem 1.5rem;
  302. &:hover{
  303. transform: scale(1.015);
  304. box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
  305. transition: 0.3s transform ease, 0.3s box-shadow ease;
  306. }
  307. &:not(:first-child){
  308. margin-left: 1rem;
  309. }
  310. }
  311. a{
  312. font-family: $now_alt_medium;
  313. font-size: 0.7rem;
  314. color: white;
  315. // margin: 0 1rem;
  316. // padding: 0.5rem 1.5rem;
  317. }
  318. }
  319. }
  320. }
  321. &.open{
  322. display: block;
  323. }
  324. }
  325. }
  326. }
  327. }
  328. @media screen and (max-width: 1200px) {
  329. #nos-packs, #nos-offres{
  330. .content{
  331. .section{
  332. .__intro{
  333. margin: 70px 0;
  334. p{
  335. padding: 0!important;
  336. }
  337. }
  338. .d-flex{
  339. .__thumbnails{
  340. width: calc((100% / 3) - 2rem);
  341. margin-bottom: 2rem;
  342. .__more{
  343. width: calc(100% * 3 + 4rem);
  344. .__content{
  345. width: 100%;
  346. }
  347. }
  348. &:nth-child(2){
  349. .__more{
  350. transform: translateX(calc((-100% / 3) - 0.5rem));
  351. }
  352. }
  353. &:nth-child(3){
  354. .__more{
  355. transform: translateX(calc((-100% / 1.5) - 1rem));
  356. }
  357. }
  358. }
  359. }
  360. }
  361. }
  362. }
  363. }
  364. @media screen and (max-width: 1024px) {
  365. #nos-packs, #nos-offres{
  366. .content{
  367. .section{
  368. .__intro{
  369. margin: 50px 0;
  370. }
  371. .d-flex{
  372. .__thumbnails{
  373. width: calc((100% / 2) - 2rem);
  374. margin-bottom: 2rem;
  375. .__more{
  376. width: calc(100% * 2 + 2rem);
  377. .__content{
  378. width: 100%;
  379. }
  380. }
  381. &:nth-child(2){
  382. .__more{
  383. transform: translateX(calc((-100% / 2) - 1rem));
  384. }
  385. }
  386. &:nth-child(3){
  387. .__more{
  388. transform: translateX(-0%);
  389. }
  390. }
  391. }
  392. }
  393. }
  394. }
  395. }
  396. }
  397. @media screen and (max-width: 530px) {
  398. #nos-packs, #nos-offres{
  399. .content{
  400. .section{
  401. .__intro{
  402. margin: 20px 0;
  403. }
  404. .d-flex{
  405. .__thumbnails{
  406. width: calc((100%) - 2rem);
  407. margin-bottom: 2rem;
  408. .__title{
  409. margin-bottom: 0.5rem;
  410. .__d-inline{
  411. padding-bottom: 0.2rem;
  412. span{
  413. padding: 0 1.5rem;
  414. font-size: 1rem;
  415. }
  416. }
  417. }
  418. .__more{
  419. width: calc(100%);
  420. .__details{
  421. padding: 1rem;
  422. .__content{
  423. width: 100%;
  424. padding: 1rem;
  425. p{
  426. padding: 0!important;
  427. }
  428. .close{
  429. top: 0.5rem;
  430. right: 0.5rem;
  431. }
  432. }
  433. }
  434. .__btn{
  435. flex-direction: column;
  436. & > div{
  437. margin: auto 0 1rem 0!important;
  438. width: 100%;
  439. }
  440. }
  441. }
  442. &:nth-child(2){
  443. .__more{
  444. transform: translateX(0%);
  445. }
  446. }
  447. &:nth-child(3){
  448. .__more{
  449. transform: translateX(-0%);
  450. }
  451. }
  452. }
  453. }
  454. }
  455. }
  456. }
  457. }