_themes.scss 15 KB

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