_themes.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532
  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 -4rem 2rem;
  137. }
  138. .body_open{
  139. height: auto;
  140. padding: 0 0 3rem 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. .field_textes{
  154. .paragraph{
  155. // border-top: 1px solid black;
  156. border-bottom: 3px dotted gray;
  157. padding: 1rem 0;
  158. .field_titre{
  159. font-size: $font-big;
  160. font-weight: 600;
  161. text-transform: initial;
  162. cursor: pointer;
  163. display: grid;
  164. grid-template-columns: 95% 5%;
  165. align-content: center;
  166. // margin-top: 1rem;
  167. }
  168. .field_titre:after{
  169. content: '▼';
  170. -webkit-transition: all 250ms ease;
  171. -moz-transition: all 250ms ease;
  172. -o-transition: all 250ms ease;
  173. transition: all 250ms ease;
  174. align-self: center;
  175. justify-self: center;
  176. }
  177. .rotate:after{
  178. transform: rotate(180deg);
  179. -webkit-transition: all 250ms ease;
  180. -moz-transition: all 250ms ease;
  181. -o-transition: all 250ms ease;
  182. transition: all 250ms ease;
  183. }
  184. .field_texte{
  185. height: auto;
  186. position: relative;
  187. h2{
  188. text-transform: inherit;
  189. }
  190. p{
  191. margin-top: .5rem;
  192. }
  193. -webkit-transition: all 250ms ease;
  194. -moz-transition: all 250ms ease;
  195. -o-transition: all 250ms ease;
  196. transition: all 250ms ease;
  197. }
  198. .crop{
  199. height: 0;
  200. overflow: hidden;
  201. display: none;
  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. }
  208. }
  209. }
  210. .block-region-bottom{
  211. #node\:field_projets_lies{
  212. h2{
  213. text-align: center;
  214. }
  215. .field_projets_lies{
  216. margin-top: 1rem;
  217. display: grid;
  218. grid-template-columns: repeat(5, 1fr);
  219. column-gap: 1rem;
  220. padding: 0 10%;
  221. }
  222. article{
  223. margin-bottom: 1.6rem;
  224. .body{
  225. display: none;
  226. }
  227. }
  228. }
  229. }
  230. //équipe tmp
  231. #node\:field_equipes{
  232. margin-top: 1rem;
  233. h2{
  234. color: black;
  235. text-align: center;
  236. }
  237. .field_equipes{
  238. .paragraph{
  239. display: grid;
  240. .field_membres{
  241. grid-row: 2;
  242. >div:first-child{
  243. display: none;
  244. }
  245. .paragraph{
  246. display: grid;
  247. grid-template-columns: auto 1fr;
  248. .field_nom{
  249. grid-column: 2;
  250. grid-row: 1;
  251. padding-left: .3rem;
  252. display: inline-block;
  253. width: auto;
  254. font-weight: 500;
  255. >div:first-child{
  256. display: none;
  257. }
  258. div:nth-of-type(2){
  259. display: inline-block;
  260. width: auto;
  261. }
  262. }
  263. .field_prenom{
  264. grid-column: 1;
  265. grid-row: 1;
  266. display: inline-block;
  267. font-weight: 500;
  268. >div:first-child{
  269. display: none;
  270. }
  271. div:nth-of-type(2){
  272. display: inline-block;
  273. width: auto;
  274. }
  275. }
  276. .field_fonction{
  277. grid-column: 1 / span 2;
  278. >div:first-child{
  279. display: none;
  280. }
  281. }
  282. margin-bottom: 1rem;
  283. }
  284. margin-bottom: 1rem;
  285. }
  286. .field_type_equipe{
  287. grid-row: 1;
  288. font-weight: 600;
  289. font-size: $font-medium;
  290. margin-bottom: .5rem;
  291. div:first-child{
  292. display: none;
  293. }
  294. }
  295. }
  296. }
  297. }
  298. &.programme-1{
  299. .block-region-second{
  300. h2,h3,h4,h5,h6,.field_titre{
  301. color: $col-1;
  302. }
  303. }
  304. }
  305. &.programme-2{
  306. .block-region-second{
  307. h2,h3,h4,h5,h6,.field_titre{
  308. color: $col-2;
  309. }
  310. }
  311. }
  312. &.programme-3{
  313. .block-region-second{
  314. h2,h3,h4,h5,h6,.field_titre{
  315. color: $col-eur;
  316. }
  317. }
  318. }
  319. &.programme-4{
  320. .block-region-second{
  321. h2,h3,h4,h5,h6,.field_titre{
  322. color: $col-met;
  323. }
  324. }
  325. }
  326. &.programme-5{
  327. .block-region-second{
  328. h2,h3,h4,h5,h6,.field_titre{
  329. color: $col-mond;
  330. }
  331. }
  332. }
  333. &.programme-6{
  334. .block-region-second{
  335. h2,h3,h4,h5,h6,.field_titre{
  336. color: $col-ter;
  337. }
  338. }
  339. }
  340. &.programme-7{
  341. .block-region-second{
  342. h2,h3,h4,h5,h6,.field_titre{
  343. color: $col-met;
  344. }
  345. }
  346. }
  347. // font-size: $font-small;
  348. //temp hidden
  349. .computed_projets_references, .computed_themes_references{
  350. display: none;
  351. }
  352. }
  353. .page-node-type-projet{
  354. #node\:title:before{
  355. content: "ville";
  356. }
  357. }
  358. .page-node-type-theme{
  359. #node\:title:before{
  360. content: "théme";
  361. }
  362. #node\:field_equipes{
  363. h2{
  364. color: white !important;
  365. text-align: left !important;
  366. }
  367. }
  368. .field_projets_lies{
  369. article{
  370. display: grid;
  371. h2{
  372. grid-row: 2;
  373. text-align: left !important;
  374. text-transform: none !important;
  375. line-height: 1.3;
  376. margin: .5rem 0 0 0;
  377. font-size: $font-normal;
  378. font-weight: 400;
  379. a{
  380. text-decoration: none;
  381. &:hover{
  382. text-decoration: underline;
  383. }
  384. }
  385. }
  386. .field_diaporama {
  387. position: relative;
  388. width: 100%;
  389. overflow: hidden;
  390. a{
  391. position: absolute;
  392. height: 100%;
  393. width: 100%;
  394. object-fit: cover;
  395. img{
  396. height: 100% ;
  397. width: 100%;
  398. object-fit: cover;
  399. }
  400. }
  401. }
  402. .field_diaporama:after {
  403. content: "";
  404. display: block;
  405. padding-top: 100%;
  406. }
  407. .field_programme{
  408. text-transform: uppercase;
  409. display: inline-block;
  410. font-weight: 600;
  411. padding: .02rem .3rem;
  412. grid-column: 1;
  413. grid-row: 1;
  414. z-index: 1;
  415. margin-bottom: -.5rem;
  416. margin-left: .2rem;
  417. color: white;
  418. a{
  419. text-decoration: none;
  420. }
  421. }
  422. //// prog color
  423. &.programme-1{
  424. h2{
  425. color: $col-1 !important;
  426. }
  427. .field_programme{
  428. background: $col-1 ;
  429. }
  430. }
  431. &.programme-2{
  432. h2{
  433. color: $col-2 !important;
  434. }
  435. .field_programme{
  436. background: $col-2 ;
  437. }
  438. }
  439. &.programme-3{
  440. h2{
  441. color: $col-eur !important;
  442. }
  443. .field_programme{
  444. background: $col-eur ;
  445. }
  446. }
  447. &.programme-4{
  448. h2{
  449. color: black;
  450. }
  451. .field_programme{
  452. background:black ;
  453. }
  454. }
  455. &.programme-5{
  456. h2{
  457. color: $col-mond !important;
  458. }
  459. .field_programme{
  460. background: $col-mond ;
  461. }
  462. }
  463. &.programme-6{
  464. h2{
  465. color: $col-ter !important;
  466. }
  467. .field_programme{
  468. background: $col-ter ;
  469. }
  470. }
  471. &.programme-7{
  472. h2{
  473. color: $col-met !important;
  474. }
  475. .field_programme{
  476. background: $col-met ;
  477. }
  478. }
  479. }
  480. }
  481. }