_themes.scss 16 KB

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