_themes.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. .page-node-type-theme, .page-node-type-projet{
  2. .field_logo{
  3. display: block;
  4. }
  5. .field_programme>div{
  6. &.programme-1{
  7. background: $col-1;
  8. }
  9. &.programme-2{
  10. background: $col-2;
  11. }
  12. &.programme-3{
  13. background: $col-eur;
  14. }
  15. &.programme-4{
  16. background: $col-1;
  17. }
  18. &.programme-5{
  19. background: $col-mond;
  20. }
  21. &.programme-6{
  22. background: $col-ter;
  23. }
  24. &.programme-7{
  25. background: $col-met;
  26. }
  27. }
  28. .block-region-first{
  29. padding: 1rem;
  30. .field_programme{
  31. background: black !important;
  32. font-weight: 600;
  33. a{
  34. text-decoration: none;
  35. &:hover{
  36. text-decoration: underline;
  37. }
  38. }
  39. }
  40. }
  41. .block-region-third{
  42. margin-top: 30rem;
  43. #node\:field_equipes{
  44. visibility: hidden;
  45. }
  46. }
  47. .block-region-second{
  48. #node\:title:before{
  49. clear: both;
  50. display: block;
  51. width: 100%;
  52. font-size: $font-small;
  53. text-transform: uppercase;
  54. margin-bottom: .8rem;
  55. }
  56. ///
  57. .field_programme{
  58. display: flex;
  59. flex-wrap: wrap;
  60. margin-bottom: 1rem;
  61. a{
  62. text-decoration: none;
  63. }
  64. div{
  65. display: inline-block;
  66. color: white;
  67. font-weight: 600;
  68. padding: .3rem .5rem;
  69. margin-right: .5rem;
  70. margin-bottom: .5rem;
  71. }
  72. }
  73. ///
  74. #node\:title{
  75. margin: 0;
  76. font-size: $font-large;
  77. line-height: 1.3;
  78. font-weight: 600;
  79. margin-bottom: 1rem;
  80. }
  81. #node\:field_image,.field_diaporama{
  82. width: 150%;
  83. margin-bottom: 1rem;
  84. max-height: 22rem;
  85. overflow: hidden;
  86. @include breakpoint(small down) {
  87. width: 100%;
  88. }
  89. img{
  90. width: 100%;
  91. margin-top: -10%;
  92. }
  93. }
  94. .body{
  95. font-size: $font-medium;
  96. height: 15rem;
  97. overflow: hidden;
  98. position: relative;
  99. -webkit-transition: all 250ms ease;
  100. -moz-transition: all 250ms ease;
  101. -o-transition: all 250ms ease;
  102. transition: all 250ms ease;
  103. footer{
  104. position:absolute;
  105. bottom:0;
  106. left:0;
  107. z-index: 1;
  108. width: 100%;
  109. text-align: center;
  110. a{
  111. display: inline-block;
  112. margin: 0 auto;
  113. background: black;
  114. color: white;
  115. cursor:pointer;
  116. font-family: "trueno";
  117. font-weight: 500;
  118. padding: .3rem .5rem;
  119. font-size: $font-small;
  120. text-decoration: none;
  121. text-transform: uppercase;
  122. &:hover{
  123. color:black;
  124. background: white;
  125. }
  126. }
  127. }
  128. }
  129. .body:after{
  130. content: "";
  131. opacity: 1;
  132. position: absolute;
  133. top: 0; bottom: 0; left: -15px; right: -15px;
  134. box-shadow: inset $bck-col 0 -2rem 2rem;
  135. }
  136. .body_open{
  137. height: auto !important;
  138. padding: 0 0 1.8rem 0;
  139. &:after{
  140. opacity: 0;
  141. -webkit-transition: all 250ms ease;
  142. -moz-transition: all 250ms ease;
  143. -o-transition: all 250ms ease;
  144. transition: all 250ms ease;
  145. }
  146. -webkit-transition: all 250ms ease;
  147. -moz-transition: all 250ms ease;
  148. -o-transition: all 250ms ease;
  149. transition: all 250ms ease;
  150. }
  151. .body_open:after{
  152. display: none;
  153. }
  154. .field_textes{
  155. .paragraph{
  156. // border-top: 1px solid black;
  157. border-bottom: 3px dotted gray;
  158. padding: 1rem 0;
  159. .field_titre{
  160. font-size: $font-big;
  161. font-weight: 600;
  162. text-transform: initial;
  163. cursor: pointer;
  164. display: grid;
  165. grid-template-columns: 95% 5%;
  166. align-content: center;
  167. // margin-top: 1rem;
  168. }
  169. .field_titre:after{
  170. content: '▼';
  171. -webkit-transition: all 250ms ease;
  172. -moz-transition: all 250ms ease;
  173. -o-transition: all 250ms ease;
  174. transition: all 250ms ease;
  175. align-self: center;
  176. justify-self: center;
  177. }
  178. .rotate:after{
  179. transform: rotate(180deg);
  180. -webkit-transition: all 250ms ease;
  181. -moz-transition: all 250ms ease;
  182. -o-transition: all 250ms ease;
  183. transition: all 250ms ease;
  184. }
  185. .field_texte{
  186. height: auto;
  187. position: relative;
  188. h2{
  189. text-transform: inherit;
  190. }
  191. p{
  192. margin-top: .5rem;
  193. }
  194. -webkit-transition: all 250ms ease;
  195. -moz-transition: all 250ms ease;
  196. -o-transition: all 250ms ease;
  197. transition: all 250ms ease;
  198. }
  199. .crop{
  200. height: 0;
  201. overflow: hidden;
  202. display: none;
  203. -webkit-transition: all 250ms ease;
  204. -moz-transition: all 250ms ease;
  205. -o-transition: all 250ms ease;
  206. transition: all 250ms ease;
  207. }
  208. }
  209. }
  210. }
  211. .block-region-bottom{
  212. #node\:field_projets_lies{
  213. h2{
  214. text-align: center;
  215. }
  216. .field_projets_lies{
  217. margin-top: 1rem;
  218. display: grid;
  219. grid-template-columns: repeat(5, 1fr);
  220. column-gap: 1rem;
  221. padding: 0 10%;
  222. }
  223. article{
  224. margin-bottom: 1.6rem;
  225. .body{
  226. display: none;
  227. }
  228. }
  229. }
  230. }
  231. #node\:field_equipes{
  232. margin-top: 1rem;
  233. h2{
  234. cursor: pointer;
  235. display: grid;
  236. grid-template-columns: 95% 5%;
  237. align-content: center;
  238. font-family: "trueno";
  239. font-size: 1rem;
  240. font-weight: 600;
  241. text-transform: initial;
  242. // text-align: center;
  243. }
  244. h2:after{
  245. content: '▼';
  246. -webkit-transition: all 250ms ease;
  247. -moz-transition: all 250ms ease;
  248. -o-transition: all 250ms ease;
  249. transition: all 250ms ease;
  250. align-self: center;
  251. justify-self: center;
  252. font-size: $font-big;
  253. }
  254. .rotate:after{
  255. transform: rotate(180deg);
  256. -webkit-transition: all 250ms ease;
  257. -moz-transition: all 250ms ease;
  258. -o-transition: all 250ms ease;
  259. transition: all 250ms ease;
  260. }
  261. .field_equipes{
  262. display: none;
  263. .paragraph{
  264. display: grid;
  265. .field_membres{
  266. grid-row: 2;
  267. // >div:first-child{
  268. // display: none;
  269. // }
  270. .paragraph{
  271. display: grid;
  272. grid-template-columns: auto 1fr;
  273. .field_nom{
  274. grid-column: 2;
  275. grid-row: 1;
  276. padding-left: .3rem;
  277. display: inline-block;
  278. width: auto;
  279. font-weight: 500;
  280. >div:first-child{
  281. display: none;
  282. }
  283. div:nth-of-type(2){
  284. display: inline-block;
  285. width: auto;
  286. }
  287. }
  288. .field_prenom{
  289. grid-column: 1;
  290. grid-row: 1;
  291. display: inline-block;
  292. font-weight: 500;
  293. >div:first-child{
  294. display: none;
  295. }
  296. div:nth-of-type(2){
  297. display: inline-block;
  298. width: auto;
  299. }
  300. }
  301. .field_fonction{
  302. grid-column: 1 / span 2;
  303. >div:first-child{
  304. display: none;
  305. }
  306. }
  307. margin-bottom: 1rem;
  308. }
  309. margin-bottom: 1rem;
  310. }
  311. .field_type_equipe{
  312. grid-row: 1;
  313. font-weight: 600;
  314. font-size: $font-medium;
  315. margin-bottom: .5rem;
  316. div:first-child{
  317. display: none;
  318. }
  319. }
  320. }
  321. }
  322. }
  323. #node\:field_partenaires{
  324. h2{
  325. //color: black;
  326. // font-family: "trueno";
  327. // font-size: 1rem;
  328. // font-weight: 600;
  329. // text-transform: initial;
  330. // margin-top: 1rem;
  331. // padding: .4rem 0;
  332. // border-top: 3px dotted gray;
  333. cursor: pointer;
  334. display: grid;
  335. grid-template-columns: 95% 5%;
  336. text-transform: initial;
  337. }
  338. h2:after{
  339. content: '▼';
  340. -webkit-transition: all 250ms ease;
  341. -moz-transition: all 250ms ease;
  342. -o-transition: all 250ms ease;
  343. transition: all 250ms ease;
  344. align-self: center;
  345. justify-self: center;
  346. font-size: $font-big;
  347. }
  348. .rotate:after{
  349. transform: rotate(180deg);
  350. -webkit-transition: all 250ms ease;
  351. -moz-transition: all 250ms ease;
  352. -o-transition: all 250ms ease;
  353. transition: all 250ms ease;
  354. }
  355. .field_partenaires{
  356. display: none;
  357. align-items: center;
  358. justify-items: center;
  359. // grid-template-columns: repeat(5 , 1fr);
  360. grid-template-columns: repeat(2 , 1fr);
  361. .paragraph{
  362. .field_logo_partenaire{
  363. div:first-child{
  364. display: none;
  365. }
  366. grid-column: 1;
  367. grid-row: 1;
  368. img{
  369. max-width: 80%;
  370. }
  371. }
  372. .field_nom_partenaire{
  373. display: none;
  374. div:first-child{
  375. display: none;
  376. }
  377. grid-column: 2;
  378. grid-row: 1;
  379. }
  380. }
  381. }
  382. }
  383. &.programme-1{
  384. .block-region-second{
  385. h2,h3,h4,h5,h6,.field_titre{
  386. color: $col-1;
  387. }
  388. }
  389. }
  390. &.programme-2{
  391. .block-region-second{
  392. h2,h3,h4,h5,h6,.field_titre{
  393. color: $col-2;
  394. }
  395. }
  396. }
  397. &.programme-3{
  398. .block-region-second{
  399. h2,h3,h4,h5,h6,.field_titre{
  400. color: $col-eur;
  401. }
  402. }
  403. }
  404. &.programme-4{
  405. .block-region-second{
  406. h2,h3,h4,h5,h6,.field_titre{
  407. color: $col-1;
  408. }
  409. }
  410. }
  411. &.programme-5{
  412. .block-region-second{
  413. h2,h3,h4,h5,h6,.field_titre{
  414. color: $col-mond;
  415. }
  416. }
  417. }
  418. &.programme-6{
  419. .block-region-second{
  420. h2,h3,h4,h5,h6,.field_titre{
  421. color: $col-ter;
  422. }
  423. }
  424. }
  425. &.programme-7{
  426. .block-region-second{
  427. h2,h3,h4,h5,h6,.field_titre{
  428. color: $col-met;
  429. }
  430. }
  431. }
  432. // font-size: $font-small;
  433. //temp hidden
  434. .computed_projets_references, .computed_themes_references{
  435. display: none;
  436. }
  437. }
  438. .page-node-type-projet{
  439. #node\:title:before{
  440. content: "ville";
  441. }
  442. }
  443. .page-node-type-theme{
  444. #node\:title:before{
  445. content: "thème";
  446. }
  447. #node\:field_equipes{
  448. h2{
  449. color: white !important;
  450. text-align: left !important;
  451. cursor: pointer;
  452. }
  453. }
  454. .field_projets_lies{
  455. article{
  456. display: grid;
  457. h2{
  458. grid-row: 2;
  459. text-align: left !important;
  460. text-transform: none !important;
  461. line-height: 1.3;
  462. margin: .5rem 0 0 0;
  463. font-size: $font-normal;
  464. font-weight: 400;
  465. a{
  466. text-decoration: none;
  467. &:hover{
  468. text-decoration: underline;
  469. }
  470. }
  471. }
  472. .field_diaporama {
  473. position: relative;
  474. width: 100%;
  475. overflow: hidden;
  476. margin-top: -.5rem;
  477. z-index: -1;
  478. a{
  479. position: absolute;
  480. height: 100%;
  481. width: 100%;
  482. object-fit: cover;
  483. img{
  484. height: 100% ;
  485. width: 100%;
  486. object-fit: cover;
  487. }
  488. }
  489. }
  490. .field_diaporama:after {
  491. content: "";
  492. display: block;
  493. padding-top: 100%;
  494. }
  495. .field_programme{
  496. text-transform: uppercase;
  497. display: inline-block;
  498. font-weight: 600;
  499. padding: .02rem .3rem;
  500. grid-column: 1;
  501. grid-row: 1;
  502. z-index: 1;
  503. margin-bottom: -.5rem;
  504. margin-left: .2rem;
  505. color: white;
  506. a{
  507. text-decoration: none;
  508. }
  509. }
  510. //// prog color
  511. &.programme-1{
  512. h2{
  513. color: $col-1 !important;
  514. }
  515. .field_programme{
  516. background: $col-1 ;
  517. }
  518. }
  519. &.programme-2{
  520. h2{
  521. color: $col-2 !important;
  522. }
  523. .field_programme{
  524. background: $col-2 ;
  525. }
  526. }
  527. &.programme-3{
  528. h2{
  529. color: $col-eur !important;
  530. }
  531. .field_programme{
  532. background: $col-eur ;
  533. }
  534. }
  535. &.programme-4{
  536. h2{
  537. color: $col-1;
  538. }
  539. .field_programme{
  540. background:$col-1 ;
  541. }
  542. }
  543. &.programme-5{
  544. h2{
  545. color: $col-mond !important;
  546. }
  547. .field_programme{
  548. background: $col-mond ;
  549. }
  550. }
  551. &.programme-6{
  552. h2{
  553. color: $col-ter !important;
  554. }
  555. .field_programme{
  556. background: $col-ter ;
  557. }
  558. }
  559. &.programme-7{
  560. h2{
  561. color: $col-met !important;
  562. }
  563. .field_programme{
  564. background: $col-met ;
  565. }
  566. }
  567. }
  568. }
  569. #node\:field_ressources_liees{
  570. h2{
  571. text-align: center;
  572. }
  573. article{
  574. background: white;
  575. margin: 1rem;
  576. padding: 1rem;
  577. a{
  578. text-decoration: none;
  579. }
  580. display:grid !important;
  581. grid-template-columns: 1fr 1fr;
  582. h2{
  583. grid-column: 1 / span 2;
  584. grid-row: 2;
  585. text-align:left;
  586. }
  587. .field_image{
  588. padding-bottom: 100%;
  589. position: relative;
  590. a{
  591. position: absolute;
  592. height: 100%;
  593. width: 100%;
  594. img{
  595. width: 100%;
  596. height: 100%;
  597. object-fit: contain;
  598. }
  599. }
  600. }
  601. .field_programme{
  602. grid-row:1;
  603. margin-top: -1.8rem;
  604. margin-bottom: .5rem;
  605. z-index: 8;
  606. &>div{
  607. display: inline-block;
  608. width: auto;
  609. padding: .3rem .5rem;
  610. a{
  611. font-weight: 600;
  612. color: white;
  613. }
  614. }
  615. }
  616. .field_type_de_ressource{
  617. grid-row: 3;
  618. }
  619. .field_sous_titre{
  620. grid-row: 4;
  621. }
  622. &>div{
  623. display: grid;
  624. grid-column: 1 / span 2 ;
  625. }
  626. }
  627. }
  628. }