_themes.scss 16 KB

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