_themes.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756
  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. //vgrid-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. border-bottom: 3px dotted gray;
  248. h2{
  249. cursor: pointer;
  250. display: grid;
  251. grid-template-columns: 95% 5%;
  252. align-content: center;
  253. font-family: "trueno";
  254. font-size: 1rem;
  255. font-weight: 600;
  256. text-transform: initial;
  257. // text-align: center;
  258. }
  259. h2:after{
  260. content: '▼';
  261. -webkit-transition: all 250ms ease;
  262. -moz-transition: all 250ms ease;
  263. -o-transition: all 250ms ease;
  264. transition: all 250ms ease;
  265. align-self: center;
  266. justify-self: center;
  267. font-size: $font-big;
  268. }
  269. .rotate:after{
  270. transform: rotate(180deg);
  271. -webkit-transition: all 250ms ease;
  272. -moz-transition: all 250ms ease;
  273. -o-transition: all 250ms ease;
  274. transition: all 250ms ease;
  275. }
  276. .field_equipes{
  277. display: none;
  278. .paragraph{
  279. display: grid;
  280. .field_membres{
  281. grid-row: 2;
  282. // >div:first-child{
  283. // display: none;
  284. // }
  285. .paragraph{
  286. display: grid;
  287. grid-template-columns: auto 1fr;
  288. .field_nom{
  289. grid-column: 2;
  290. grid-row: 1;
  291. padding-left: .3rem;
  292. display: inline-block;
  293. width: auto;
  294. font-weight: 500;
  295. >div:first-child{
  296. display: none;
  297. }
  298. div:nth-of-type(2){
  299. display: inline-block;
  300. width: auto;
  301. }
  302. }
  303. .field_prenom{
  304. grid-column: 1;
  305. grid-row: 1;
  306. display: inline-block;
  307. font-weight: 500;
  308. >div:first-child{
  309. display: none;
  310. }
  311. div:nth-of-type(2){
  312. display: inline-block;
  313. width: auto;
  314. }
  315. }
  316. .field_fonction{
  317. grid-column: 1 / span 2;
  318. >div:first-child{
  319. display: none;
  320. }
  321. }
  322. margin-bottom: .3rem;
  323. }
  324. margin-bottom: .5rem;
  325. }
  326. .field_type_equipe{
  327. grid-row: 1;
  328. font-weight: 600;
  329. font-size: $font-medium;
  330. margin-bottom: .5rem;
  331. div:first-child{
  332. display: none;
  333. }
  334. }
  335. }
  336. }
  337. }
  338. #node\:field_partenaires{
  339. h2{
  340. // color: black;
  341. font-family: "trueno";
  342. font-size: 1rem;
  343. font-weight: 600;
  344. text-transform: initial;
  345. margin-top: 1rem;
  346. padding: .4rem 0;
  347. border-bottom: 3px dotted gray;
  348. cursor: pointer;
  349. display: grid;
  350. grid-template-columns: 95% 5%;
  351. text-transform: initial;
  352. }
  353. h2:after{
  354. content: '▼';
  355. -webkit-transition: all 250ms ease;
  356. -moz-transition: all 250ms ease;
  357. -o-transition: all 250ms ease;
  358. transition: all 250ms ease;
  359. align-self: center;
  360. justify-self: center;
  361. font-size: $font-big;
  362. }
  363. .rotate:after{
  364. transform: rotate(180deg);
  365. -webkit-transition: all 250ms ease;
  366. -moz-transition: all 250ms ease;
  367. -o-transition: all 250ms ease;
  368. transition: all 250ms ease;
  369. }
  370. .field_partenaires{
  371. display: none;
  372. align-items: center;
  373. justify-items: center;
  374. // grid-template-columns: repeat(5 , 1fr);
  375. grid-template-columns: repeat(2 , 1fr);
  376. .paragraph{
  377. .field_logo_partenaire{
  378. div:first-child{
  379. display: none;
  380. }
  381. grid-column: 1;
  382. grid-row: 1;
  383. img{
  384. max-width: 80%;
  385. }
  386. }
  387. .field_nom_partenaire{
  388. display: none;
  389. div:first-child{
  390. display: none;
  391. }
  392. grid-column: 2;
  393. grid-row: 1;
  394. }
  395. }
  396. }
  397. }
  398. &.programme-1{
  399. .block-region-second{
  400. h2,h3,h4,h5,h6,.field_titre{
  401. color: $col-1;
  402. }
  403. }
  404. }
  405. &.programme-2{
  406. .block-region-second{
  407. h2,h3,h4,h5,h6,.field_titre{
  408. color: $col-2;
  409. }
  410. }
  411. }
  412. &.programme-3{
  413. .block-region-second{
  414. h2,h3,h4,h5,h6,.field_titre{
  415. color: $col-eur;
  416. }
  417. }
  418. }
  419. &.programme-4{
  420. .block-region-second{
  421. h2,h3,h4,h5,h6,.field_titre{
  422. color: $col-1;
  423. }
  424. }
  425. }
  426. &.programme-5{
  427. .block-region-second{
  428. h2,h3,h4,h5,h6,.field_titre{
  429. color: $col-mond;
  430. }
  431. }
  432. }
  433. &.programme-6{
  434. .block-region-second{
  435. h2,h3,h4,h5,h6,.field_titre{
  436. color: $col-ter;
  437. }
  438. }
  439. }
  440. &.programme-7{
  441. .block-region-second{
  442. h2,h3,h4,h5,h6,.field_titre{
  443. color: $col-met;
  444. }
  445. }
  446. }
  447. // font-size: $font-small;
  448. //temp hidden
  449. .computed_projets_references, .computed_themes_references{
  450. display: none;
  451. }
  452. }
  453. .page-node-type-projet{
  454. #node\:title:before{
  455. content: "ville";
  456. }
  457. }
  458. .page-node-type-theme{
  459. #node\:title:before{
  460. content: "thème";
  461. }
  462. #node\:field_equipes{
  463. h2{
  464. color: white !important;
  465. text-align: left !important;
  466. cursor: pointer;
  467. }
  468. }
  469. .block-region-third{
  470. #node\:field_partenaires{
  471. h2{
  472. border:none;
  473. font-family: trueno;
  474. font-size: .8rem;
  475. font-weight: 600;
  476. margin-top: 0;
  477. padding: .4rem 0.5rem;
  478. display: block;
  479. &:after{
  480. display:none;
  481. }
  482. }
  483. .field_partenaires{
  484. display: grid;
  485. }
  486. }
  487. }
  488. .field_projets_lies{
  489. article{
  490. display: grid;
  491. h2{
  492. grid-row: 2;
  493. text-align: left !important;
  494. text-transform: none !important;
  495. line-height: 1.3;
  496. margin: .5rem 0 0 0;
  497. font-size: $font-normal;
  498. font-weight: 400;
  499. a{
  500. text-decoration: none;
  501. &:hover{
  502. text-decoration: underline;
  503. }
  504. }
  505. }
  506. .field_diaporama {
  507. position: relative;
  508. width: 100%;
  509. overflow: hidden;
  510. margin-top: -.5rem;
  511. z-index: -1;
  512. a{
  513. position: absolute;
  514. height: 100%;
  515. width: 100%;
  516. object-fit: cover;
  517. img{
  518. height: 100% ;
  519. width: 100%;
  520. object-fit: cover;
  521. }
  522. }
  523. }
  524. .field_diaporama:after {
  525. content: "";
  526. display: block;
  527. padding-top: 100%;
  528. }
  529. .field_programme{
  530. text-transform: uppercase;
  531. display: inline-block;
  532. font-weight: 600;
  533. padding: .02rem .3rem;
  534. grid-column: 1;
  535. grid-row: 1;
  536. z-index: 1;
  537. margin-bottom: -.5rem;
  538. margin-left: .2rem;
  539. color: white;
  540. a{
  541. text-decoration: none;
  542. }
  543. }
  544. //// prog color
  545. &.programme-1{
  546. h2{
  547. color: $col-1 !important;
  548. }
  549. .field_programme{
  550. background: $col-1 ;
  551. }
  552. }
  553. &.programme-2{
  554. h2{
  555. color: $col-2 !important;
  556. }
  557. .field_programme{
  558. background: $col-2 ;
  559. }
  560. }
  561. &.programme-3{
  562. h2{
  563. color: $col-eur !important;
  564. }
  565. .field_programme{
  566. background: $col-eur ;
  567. }
  568. }
  569. &.programme-4{
  570. h2{
  571. color: $col-1;
  572. }
  573. .field_programme{
  574. background:$col-1 ;
  575. }
  576. }
  577. &.programme-5{
  578. h2{
  579. color: $col-mond !important;
  580. }
  581. .field_programme{
  582. background: $col-mond ;
  583. }
  584. }
  585. &.programme-6{
  586. h2{
  587. color: $col-ter !important;
  588. }
  589. .field_programme{
  590. background: $col-ter ;
  591. }
  592. }
  593. &.programme-7{
  594. h2{
  595. color: $col-met !important;
  596. }
  597. .field_programme{
  598. background: $col-met ;
  599. }
  600. }
  601. }
  602. }
  603. #node\:field_ressources_liees{
  604. // h2{
  605. // text-align: center;
  606. // }
  607. &>h2{
  608. text-align: center;
  609. }
  610. .field_ressources_liees{
  611. background: $trame;
  612. }
  613. article{
  614. a{
  615. text-decoration: none;
  616. }
  617. // display:grid !important;
  618. // grid-template-columns: 1fr 1fr;
  619. h2{
  620. grid-column: 2;
  621. grid-row: 1;
  622. text-align:left;
  623. }
  624. &>div{
  625. display: grid !important;
  626. grid-template-columns: 1fr 1fr;
  627. align-items: center;
  628. background: #fff;
  629. position: relative;
  630. height: auto;
  631. padding: 1rem;
  632. background-clip: content-box;
  633. }
  634. .field_type_de_ressource{
  635. grid-column: 2;
  636. }
  637. .field_sous_titre{
  638. grid-column: 2;
  639. }
  640. ///////
  641. .field_image{
  642. grid-row: 2 / span 3;
  643. // margin-top: -1.5rem;
  644. z-index: 0;
  645. padding: .5rem;
  646. }
  647. div{
  648. margin-bottom: .5rem;
  649. }
  650. h2{
  651. font-weight: 400;
  652. grid-row: 3 / span 1;
  653. grid-column: 2;
  654. font-style: italic;
  655. text-transform: none;
  656. }
  657. .field_type_de_ressource{
  658. font-weight: 400;
  659. }
  660. .field_sous_titre{
  661. grid-row: 4 / span 1;
  662. }
  663. .field_programme{
  664. &>div{
  665. display: inline-block;
  666. width: auto;
  667. padding: .3rem .5rem;
  668. }
  669. padding-left: .5rem !important;
  670. grid-row: 1 / span 1;
  671. grid-column: 1 / span 2;
  672. text-transform: uppercase;
  673. margin-top: -.5rem;
  674. &>div{
  675. font-weight: 600;
  676. display: inline-block;
  677. width: auto;
  678. color: white;
  679. padding: .02rem .3rem;
  680. // margin-bottom: 1rem;
  681. }
  682. }
  683. }
  684. }
  685. }