thumbnails.scss 12 KB

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