_themes.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  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: flex;
  72. flex-wrap: wrap;
  73. margin-bottom: 1rem;
  74. a{
  75. text-decoration: none;
  76. }
  77. div{
  78. display: inline-block;
  79. color: white;
  80. font-weight: 600;
  81. padding: .3rem .5rem;
  82. background-color: red;
  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 .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: 1rem;
  322. }
  323. margin-bottom: 1rem;
  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-top: 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. .paragraph{
  375. .field_logo_partenaire{
  376. div:first-child{
  377. display: none;
  378. }
  379. grid-column: 1;
  380. grid-row: 1;
  381. img{
  382. max-width: 60%;
  383. }
  384. }
  385. .field_nom_partenaire{
  386. display: none;
  387. div:first-child{
  388. display: none;
  389. }
  390. grid-column: 2;
  391. grid-row: 1;
  392. }
  393. }
  394. }
  395. }
  396. &.programme-1{
  397. .block-region-second{
  398. h2,h3,h4,h5,h6,.field_titre{
  399. color: $col-1;
  400. }
  401. }
  402. }
  403. &.programme-2{
  404. .block-region-second{
  405. h2,h3,h4,h5,h6,.field_titre{
  406. color: $col-2;
  407. }
  408. }
  409. }
  410. &.programme-3{
  411. .block-region-second{
  412. h2,h3,h4,h5,h6,.field_titre{
  413. color: $col-eur;
  414. }
  415. }
  416. }
  417. &.programme-4{
  418. .block-region-second{
  419. h2,h3,h4,h5,h6,.field_titre{
  420. color: $col-1;
  421. }
  422. }
  423. }
  424. &.programme-5{
  425. .block-region-second{
  426. h2,h3,h4,h5,h6,.field_titre{
  427. color: $col-mond;
  428. }
  429. }
  430. }
  431. &.programme-6{
  432. .block-region-second{
  433. h2,h3,h4,h5,h6,.field_titre{
  434. color: $col-ter;
  435. }
  436. }
  437. }
  438. &.programme-7{
  439. .block-region-second{
  440. h2,h3,h4,h5,h6,.field_titre{
  441. color: $col-met;
  442. }
  443. }
  444. }
  445. // font-size: $font-small;
  446. //temp hidden
  447. .computed_projets_references, .computed_themes_references{
  448. display: none;
  449. }
  450. }
  451. .page-node-type-projet{
  452. #node\:title:before{
  453. content: "ville";
  454. }
  455. }
  456. .page-node-type-theme{
  457. #node\:title:before{
  458. content: "thème";
  459. }
  460. #node\:field_equipes{
  461. h2{
  462. color: white !important;
  463. text-align: left !important;
  464. cursor: pointer;
  465. }
  466. }
  467. .field_projets_lies{
  468. article{
  469. display: grid;
  470. h2{
  471. grid-row: 2;
  472. text-align: left !important;
  473. text-transform: none !important;
  474. line-height: 1.3;
  475. margin: .5rem 0 0 0;
  476. font-size: $font-normal;
  477. font-weight: 400;
  478. a{
  479. text-decoration: none;
  480. &:hover{
  481. text-decoration: underline;
  482. }
  483. }
  484. }
  485. .field_diaporama {
  486. position: relative;
  487. width: 100%;
  488. overflow: hidden;
  489. a{
  490. position: absolute;
  491. height: 100%;
  492. width: 100%;
  493. object-fit: cover;
  494. img{
  495. height: 100% ;
  496. width: 100%;
  497. object-fit: cover;
  498. }
  499. }
  500. }
  501. .field_diaporama:after {
  502. content: "";
  503. display: block;
  504. padding-top: 100%;
  505. }
  506. .field_programme{
  507. text-transform: uppercase;
  508. display: inline-block;
  509. font-weight: 600;
  510. padding: .02rem .3rem;
  511. grid-column: 1;
  512. grid-row: 1;
  513. z-index: 1;
  514. margin-bottom: -.5rem;
  515. margin-left: .2rem;
  516. color: white;
  517. a{
  518. text-decoration: none;
  519. }
  520. }
  521. //// prog color
  522. &.programme-1{
  523. h2{
  524. color: $col-1 !important;
  525. }
  526. .field_programme{
  527. background: $col-1 ;
  528. }
  529. }
  530. &.programme-2{
  531. h2{
  532. color: $col-2 !important;
  533. }
  534. .field_programme{
  535. background: $col-2 ;
  536. }
  537. }
  538. &.programme-3{
  539. h2{
  540. color: $col-eur !important;
  541. }
  542. .field_programme{
  543. background: $col-eur ;
  544. }
  545. }
  546. &.programme-4{
  547. h2{
  548. color: $col-1;
  549. }
  550. .field_programme{
  551. background:$col-1 ;
  552. }
  553. }
  554. &.programme-5{
  555. h2{
  556. color: $col-mond !important;
  557. }
  558. .field_programme{
  559. background: $col-mond ;
  560. }
  561. }
  562. &.programme-6{
  563. h2{
  564. color: $col-ter !important;
  565. }
  566. .field_programme{
  567. background: $col-ter ;
  568. }
  569. }
  570. &.programme-7{
  571. h2{
  572. color: $col-met !important;
  573. }
  574. .field_programme{
  575. background: $col-met ;
  576. }
  577. }
  578. }
  579. }
  580. }