thumbnails.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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,&.nos_lieux{
  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. .__wrap-content{
  206. background-size: cover;
  207. }
  208. .__txt.black{
  209. p{
  210. color: black!important;
  211. }
  212. }
  213. &.__blue{
  214. .__title{
  215. color: $light-blue;
  216. }
  217. .__txt{
  218. p{
  219. color: $light-blue;
  220. }
  221. }
  222. }
  223. &.__green{
  224. .__title{
  225. color: $green;
  226. }
  227. .__txt{
  228. p{
  229. color: $green;
  230. }
  231. }
  232. }
  233. &.__red{
  234. .__title{
  235. color: $red;
  236. }
  237. .__txt{
  238. p{
  239. color: $red;
  240. }
  241. }
  242. }
  243. &.visible{
  244. display: block;
  245. }
  246. .__details{
  247. position: relative;
  248. }
  249. .__image-background{
  250. width: 100%;
  251. height: auto;
  252. img{
  253. width: 100%;
  254. height: 100%;
  255. object-fit: cover;
  256. }
  257. }
  258. .__wrap-content{
  259. z-index: 999;
  260. width: 100%;
  261. height: auto;
  262. padding: 2rem;
  263. display: flex;
  264. justify-content: flex-end;
  265. .__content{
  266. background: white;
  267. width: 50%;
  268. height: auto;
  269. padding: 2rem;
  270. position: relative;
  271. .close{
  272. position: absolute;
  273. top: 1rem;
  274. right: 1rem;
  275. cursor: pointer;
  276. }
  277. .__title{
  278. text-align: left;
  279. h6{
  280. margin:0;
  281. font-size: 1.3rem;
  282. font-family: $now_alt_medium;
  283. }
  284. }
  285. .__txt{
  286. p{
  287. font-size: 0.9rem;
  288. font-family: $now_alt_medium;
  289. }
  290. &.__color{
  291. color: $light-blue;
  292. margin-bottom: 1rem;
  293. }
  294. }
  295. .__btn{
  296. display: inline-flex;
  297. margin-top: 1rem;
  298. width: 100%;
  299. a{
  300. display: block;
  301. text-align: center;
  302. width: 50%;
  303. background: $light-blue;
  304. margin: 0;
  305. transition: 0.3s transform ease, 0.3s box-shadow ease;
  306. padding: 0.5rem 1.5rem;
  307. font-family: $now_alt_medium;
  308. font-size: 0.7rem;
  309. color: white;
  310. &:not(:first-child){
  311. margin-left: 1rem;
  312. }
  313. &:hover{
  314. transform: scale(1.015);
  315. box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2);
  316. transition: 0.3s transform ease, 0.3s box-shadow ease;
  317. }
  318. &.__blue{
  319. background: $light-blue;
  320. }
  321. &.__green{
  322. background: $green;
  323. }
  324. &.__red{
  325. background: $red;
  326. }
  327. }
  328. }
  329. }
  330. }
  331. &.open{
  332. display: block;
  333. }
  334. }
  335. }
  336. }
  337. }
  338. @media screen and (max-width: 1200px) {
  339. #nos-packs, #nos-offres{
  340. .content{
  341. .section{
  342. .__intro{
  343. margin: 70px 0;
  344. p{
  345. padding: 0!important;
  346. }
  347. }
  348. .d-flex{
  349. .__thumbnails{
  350. width: calc((100% / 3) - 2rem);
  351. margin-bottom: 2rem;
  352. .__more{
  353. width: calc(100% * 3 + 4rem);
  354. .__content{
  355. width: 100%;
  356. }
  357. }
  358. &:nth-child(2){
  359. .__more{
  360. transform: translateX(calc((-100% / 3) - 0.5rem));
  361. }
  362. }
  363. &:nth-child(3){
  364. .__more{
  365. transform: translateX(calc((-100% / 1.5) - 1rem));
  366. }
  367. }
  368. }
  369. }
  370. }
  371. }
  372. }
  373. }
  374. @media screen and (max-width: 1024px) {
  375. #nos-packs, #nos-offres{
  376. .content{
  377. .section{
  378. .__intro{
  379. margin: 50px 0;
  380. }
  381. .d-flex{
  382. .__thumbnails{
  383. width: calc((100% / 2) - 2rem);
  384. margin-bottom: 2rem;
  385. .__more{
  386. width: calc(100% * 2 + 2rem);
  387. .__content{
  388. width: 100%;
  389. }
  390. }
  391. &:nth-child(2){
  392. .__more{
  393. transform: translateX(calc((-100% / 2) - 1rem));
  394. }
  395. }
  396. &:nth-child(3){
  397. .__more{
  398. transform: translateX(-0%);
  399. }
  400. }
  401. }
  402. }
  403. }
  404. }
  405. }
  406. }
  407. @media screen and (max-width: 750px) {
  408. .__details{
  409. .__content{
  410. p{
  411. padding: 0!important;
  412. }
  413. }
  414. }
  415. }
  416. @media screen and (max-width: 530px) {
  417. #nos-packs, #nos-offres{
  418. .content{
  419. .section{
  420. .__intro{
  421. margin: 20px 0;
  422. }
  423. .d-flex{
  424. .__thumbnails{
  425. width: calc((100%) - 2rem);
  426. margin-bottom: 2rem;
  427. .__title{
  428. margin-bottom: 0.5rem;
  429. .__d-inline{
  430. padding-bottom: 0.2rem;
  431. span{
  432. padding: 0 1.5rem;
  433. font-size: 1rem;
  434. }
  435. }
  436. }
  437. .__more{
  438. width: calc(100%);
  439. .__details{
  440. padding: 0rem;
  441. .__content{
  442. width: 100%;
  443. padding: 1rem;
  444. p{
  445. padding: 0!important;
  446. }
  447. .close{
  448. top: 0.5rem;
  449. right: 0.5rem;
  450. }
  451. }
  452. .__wrap-content{
  453. padding: 0.5rem;
  454. }
  455. }
  456. .__btn{
  457. flex-direction: column;
  458. & > a{
  459. margin: auto 0 1rem 0!important;
  460. width: 100%;
  461. }
  462. }
  463. }
  464. &:nth-child(2){
  465. .__more{
  466. transform: translateX(0%);
  467. }
  468. }
  469. &:nth-child(3){
  470. .__more{
  471. transform: translateX(-0%);
  472. }
  473. }
  474. }
  475. }
  476. }
  477. }
  478. }
  479. }