_themes.scss 17 KB

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