_themes.scss 19 KB

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