_themes.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  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. }
  339. .field_nom_partenaire{
  340. div:first-child{
  341. display: none;
  342. }
  343. grid-column: 2;
  344. grid-row: 1;
  345. }
  346. }
  347. }
  348. }
  349. &.programme-1{
  350. .block-region-second{
  351. h2,h3,h4,h5,h6,.field_titre{
  352. color: $col-1;
  353. }
  354. }
  355. }
  356. &.programme-2{
  357. .block-region-second{
  358. h2,h3,h4,h5,h6,.field_titre{
  359. color: $col-2;
  360. }
  361. }
  362. }
  363. &.programme-3{
  364. .block-region-second{
  365. h2,h3,h4,h5,h6,.field_titre{
  366. color: $col-eur;
  367. }
  368. }
  369. }
  370. &.programme-4{
  371. .block-region-second{
  372. h2,h3,h4,h5,h6,.field_titre{
  373. color: $col-met;
  374. }
  375. }
  376. }
  377. &.programme-5{
  378. .block-region-second{
  379. h2,h3,h4,h5,h6,.field_titre{
  380. color: $col-mond;
  381. }
  382. }
  383. }
  384. &.programme-6{
  385. .block-region-second{
  386. h2,h3,h4,h5,h6,.field_titre{
  387. color: $col-ter;
  388. }
  389. }
  390. }
  391. &.programme-7{
  392. .block-region-second{
  393. h2,h3,h4,h5,h6,.field_titre{
  394. color: $col-met;
  395. }
  396. }
  397. }
  398. // font-size: $font-small;
  399. //temp hidden
  400. .computed_projets_references, .computed_themes_references{
  401. display: none;
  402. }
  403. }
  404. .page-node-type-projet{
  405. #node\:title:before{
  406. content: "ville";
  407. }
  408. }
  409. .page-node-type-theme{
  410. #node\:title:before{
  411. content: "théme";
  412. }
  413. #node\:field_equipes{
  414. h2{
  415. color: white !important;
  416. text-align: left !important;
  417. cursor: pointer;
  418. }
  419. h2:after{
  420. }
  421. }
  422. .field_projets_lies{
  423. article{
  424. display: grid;
  425. h2{
  426. grid-row: 2;
  427. text-align: left !important;
  428. text-transform: none !important;
  429. line-height: 1.3;
  430. margin: .5rem 0 0 0;
  431. font-size: $font-normal;
  432. font-weight: 400;
  433. a{
  434. text-decoration: none;
  435. &:hover{
  436. text-decoration: underline;
  437. }
  438. }
  439. }
  440. .field_diaporama {
  441. position: relative;
  442. width: 100%;
  443. overflow: hidden;
  444. a{
  445. position: absolute;
  446. height: 100%;
  447. width: 100%;
  448. object-fit: cover;
  449. img{
  450. height: 100% ;
  451. width: 100%;
  452. object-fit: cover;
  453. }
  454. }
  455. }
  456. .field_diaporama:after {
  457. content: "";
  458. display: block;
  459. padding-top: 100%;
  460. }
  461. .field_programme{
  462. text-transform: uppercase;
  463. display: inline-block;
  464. font-weight: 600;
  465. padding: .02rem .3rem;
  466. grid-column: 1;
  467. grid-row: 1;
  468. z-index: 1;
  469. margin-bottom: -.5rem;
  470. margin-left: .2rem;
  471. color: white;
  472. a{
  473. text-decoration: none;
  474. }
  475. }
  476. //// prog color
  477. &.programme-1{
  478. h2{
  479. color: $col-1 !important;
  480. }
  481. .field_programme{
  482. background: $col-1 ;
  483. }
  484. }
  485. &.programme-2{
  486. h2{
  487. color: $col-2 !important;
  488. }
  489. .field_programme{
  490. background: $col-2 ;
  491. }
  492. }
  493. &.programme-3{
  494. h2{
  495. color: $col-eur !important;
  496. }
  497. .field_programme{
  498. background: $col-eur ;
  499. }
  500. }
  501. &.programme-4{
  502. h2{
  503. color: black;
  504. }
  505. .field_programme{
  506. background:black ;
  507. }
  508. }
  509. &.programme-5{
  510. h2{
  511. color: $col-mond !important;
  512. }
  513. .field_programme{
  514. background: $col-mond ;
  515. }
  516. }
  517. &.programme-6{
  518. h2{
  519. color: $col-ter !important;
  520. }
  521. .field_programme{
  522. background: $col-ter ;
  523. }
  524. }
  525. &.programme-7{
  526. h2{
  527. color: $col-met !important;
  528. }
  529. .field_programme{
  530. background: $col-met ;
  531. }
  532. }
  533. }
  534. }
  535. }