_themes.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  1. .page-node-type-theme, .page-node-type-projet{
  2. &.programme-1{
  3. .field_programme{
  4. background: $col-1;
  5. }
  6. }
  7. &.programme-2{
  8. .field_programme{
  9. background: $col-2;
  10. }
  11. }
  12. &.programme-3{
  13. .field_programme{
  14. background: $col-eur;
  15. }
  16. }
  17. &.programme-4{
  18. .field_programme{
  19. background: $col-met;
  20. }
  21. }
  22. &.programme-5{
  23. .field_programme{
  24. background: $col-mond;
  25. }
  26. }
  27. &.programme-6{
  28. .field_programme{
  29. background: $col-ter;
  30. }
  31. }
  32. &.programme-7{
  33. .field_programme{
  34. background: $col-met;
  35. }
  36. }
  37. //tmp hidden
  38. .block-region-first{
  39. visibility: hidden;
  40. }
  41. .block-region-third{
  42. margin-top: 30rem;
  43. }
  44. .block-region-second{
  45. #node\:title:before{
  46. clear: both;
  47. display: block;
  48. width: 100%;
  49. font-size: $font-small;
  50. text-transform: uppercase;
  51. margin-bottom: .8rem;
  52. }
  53. ///
  54. .field_programme{
  55. display: inline-block;
  56. // background: gray;
  57. margin-bottom: 1rem;
  58. color: white;
  59. font-weight: 600;
  60. padding: .3rem .5rem;
  61. a{
  62. text-decoration: none;
  63. }
  64. }
  65. ///
  66. #node\:title{
  67. margin: 0;
  68. font-size: $font-large;
  69. line-height: 1.3;
  70. font-weight: 600;
  71. margin-bottom: 1rem;
  72. }
  73. #node\:field_image,.field_diaporama{
  74. width: 150%;
  75. margin-bottom: 1rem;
  76. img{
  77. width: 100%;
  78. }
  79. }
  80. .body{
  81. font-size: $font-medium;
  82. height: 15rem;
  83. overflow: hidden;
  84. position: relative;
  85. -webkit-transition: all 250ms ease;
  86. -moz-transition: all 250ms ease;
  87. -o-transition: all 250ms ease;
  88. transition: all 250ms ease;
  89. footer{
  90. position:absolute;
  91. bottom:0;
  92. left:0;
  93. z-index: 1;
  94. width: 100%;
  95. text-align: center;
  96. a{
  97. display: inline-block;
  98. margin: 0 auto;
  99. background: black;
  100. color: white;
  101. cursor:pointer;
  102. font-family: "trueno";
  103. font-weight: 500;
  104. padding: .3rem .5rem;
  105. font-size: $font-small;
  106. text-decoration: none;
  107. text-transform: uppercase;
  108. &:hover{
  109. color:black;
  110. background: white;
  111. }
  112. }
  113. }
  114. }
  115. .body:after{
  116. content: "";
  117. opacity: 1;
  118. position: absolute;
  119. top: 0; bottom: 0; left: -15px; right: -15px;
  120. box-shadow: inset white 0 -4rem 2rem;
  121. }
  122. .body_open{
  123. height: auto;
  124. padding: 0 0 3rem 0;
  125. &:after{
  126. opacity: 0;
  127. -webkit-transition: all 250ms ease;
  128. -moz-transition: all 250ms ease;
  129. -o-transition: all 250ms ease;
  130. transition: all 250ms ease;
  131. }
  132. -webkit-transition: all 250ms ease;
  133. -moz-transition: all 250ms ease;
  134. -o-transition: all 250ms ease;
  135. transition: all 250ms ease;
  136. }
  137. .field_textes{
  138. .paragraph{
  139. // border-top: 1px solid black;
  140. border-bottom: 3px dotted gray;
  141. padding: 1rem 0;
  142. .field_titre{
  143. font-size: $font-big;
  144. font-weight: 600;
  145. text-transform: initial;
  146. cursor: pointer;
  147. display: grid;
  148. grid-template-columns: 95% 5%;
  149. align-content: center;
  150. // margin-top: 1rem;
  151. }
  152. .field_titre:after{
  153. content: '▼';
  154. -webkit-transition: all 250ms ease;
  155. -moz-transition: all 250ms ease;
  156. -o-transition: all 250ms ease;
  157. transition: all 250ms ease;
  158. align-self: center;
  159. justify-self: center;
  160. }
  161. .rotate:after{
  162. transform: rotate(180deg);
  163. -webkit-transition: all 250ms ease;
  164. -moz-transition: all 250ms ease;
  165. -o-transition: all 250ms ease;
  166. transition: all 250ms ease;
  167. }
  168. .field_texte{
  169. height: auto;
  170. position: relative;
  171. h2{
  172. text-transform: inherit;
  173. }
  174. p{
  175. margin-top: .5rem;
  176. }
  177. -webkit-transition: all 250ms ease;
  178. -moz-transition: all 250ms ease;
  179. -o-transition: all 250ms ease;
  180. transition: all 250ms ease;
  181. }
  182. .crop{
  183. height: 0;
  184. overflow: hidden;
  185. display: none;
  186. -webkit-transition: all 250ms ease;
  187. -moz-transition: all 250ms ease;
  188. -o-transition: all 250ms ease;
  189. transition: all 250ms ease;
  190. }
  191. }
  192. }
  193. }
  194. .block-region-bottom{
  195. #node\:field_projets_lies{
  196. h2{
  197. text-align: center;
  198. }
  199. .field_projets_lies{
  200. margin-top: 1rem;
  201. display: grid;
  202. grid-template-columns: repeat(5, 1fr);
  203. column-gap: 1rem;
  204. padding: 0 10%;
  205. }
  206. article{
  207. margin-bottom: 1.6rem;
  208. .body{
  209. display: none;
  210. }
  211. }
  212. }
  213. }
  214. //équipe tmp
  215. #node\:field_equipes{
  216. margin-top: 1rem;
  217. h2{
  218. color: black;
  219. text-align: center;
  220. }
  221. .field_equipes{
  222. .paragraph{
  223. display: grid;
  224. .field_membres{
  225. grid-row: 2;
  226. >div:first-child{
  227. display: none;
  228. }
  229. .paragraph{
  230. display: block !important;
  231. .field_nom{
  232. display: inline-block;
  233. width: auto;
  234. >div:first-child{
  235. display: none;
  236. }
  237. div:nth-of-type(2){
  238. display: inline-block;
  239. width: auto;
  240. }
  241. }
  242. .field_prenom{
  243. display: inline-block;
  244. >div:first-child{
  245. display: none;
  246. }
  247. div:nth-of-type(2){
  248. display: inline-block;
  249. width: auto;
  250. }
  251. }
  252. .field_fonction{
  253. >div:first-child{
  254. display: none;
  255. }
  256. }
  257. margin-bottom: 1rem;
  258. }
  259. margin-bottom: 1rem;
  260. }
  261. .field_type_equipe{
  262. grid-row: 1;
  263. font-weight: 600;
  264. font-size: $font-medium;
  265. margin-bottom: .5rem;
  266. div:first-child{
  267. display: none;
  268. }
  269. }
  270. }
  271. }
  272. }
  273. &.programme-1{
  274. .block-region-second{
  275. h2,h3,h4,h5,h6,.field_titre{
  276. color: $col-1;
  277. }
  278. }
  279. }
  280. &.programme-2{
  281. .block-region-second{
  282. h2,h3,h4,h5,h6,.field_titre{
  283. color: $col-2;
  284. }
  285. }
  286. }
  287. &.programme-3{
  288. .block-region-second{
  289. h2,h3,h4,h5,h6,.field_titre{
  290. color: $col-eur;
  291. }
  292. }
  293. }
  294. &.programme-4{
  295. .block-region-second{
  296. h2,h3,h4,h5,h6,.field_titre{
  297. color: $col-met;
  298. }
  299. }
  300. }
  301. &.programme-5{
  302. .block-region-second{
  303. h2,h3,h4,h5,h6,.field_titre{
  304. color: $col-mond;
  305. }
  306. }
  307. }
  308. &.programme-6{
  309. .block-region-second{
  310. h2,h3,h4,h5,h6,.field_titre{
  311. color: $col-ter;
  312. }
  313. }
  314. }
  315. &.programme-7{
  316. .block-region-second{
  317. h2,h3,h4,h5,h6,.field_titre{
  318. color: $col-met;
  319. }
  320. }
  321. }
  322. // font-size: $font-small;
  323. //temp hidden
  324. .computed_projets_references, .computed_themes_references, .field_logo{
  325. display: none;
  326. }
  327. }
  328. .page-node-type-projet{
  329. #node\:title:before{
  330. content: "ville";
  331. }
  332. }
  333. .page-node-type-theme{
  334. #node\:title:before{
  335. content: "théme";
  336. }
  337. #node\:field_equipes{
  338. h2{
  339. color: white !important;
  340. text-align: left !important;
  341. }
  342. }
  343. .field_projets_lies{
  344. article{
  345. display: grid;
  346. h2{
  347. grid-row: 2;
  348. text-align: left !important;
  349. text-transform: none !important;
  350. line-height: 1.3;
  351. margin: .5rem 0 0 0;
  352. font-size: $font-normal;
  353. font-weight: 400;
  354. a{
  355. text-decoration: none;
  356. &:hover{
  357. text-decoration: underline;
  358. }
  359. }
  360. }
  361. .field_diaporama {
  362. position: relative;
  363. width: 100%;
  364. overflow: hidden;
  365. a{
  366. position: absolute;
  367. height: 100%;
  368. width: 100%;
  369. object-fit: cover;
  370. img{
  371. height: 100% ;
  372. width: 100%;
  373. object-fit: cover;
  374. }
  375. }
  376. }
  377. .field_diaporama:after {
  378. content: "";
  379. display: block;
  380. padding-top: 100%;
  381. }
  382. .field_programme{
  383. text-transform: uppercase;
  384. display: inline-block;
  385. font-weight: 600;
  386. padding: .02rem .3rem;
  387. grid-column: 1;
  388. grid-row: 1;
  389. z-index: 1;
  390. margin-bottom: -.5rem;
  391. margin-left: .2rem;
  392. color: white;
  393. a{
  394. text-decoration: none;
  395. }
  396. }
  397. //// prog color
  398. &.programme-1{
  399. h2{
  400. color: $col-1 !important;
  401. }
  402. .field_programme{
  403. background: $col-1 ;
  404. }
  405. }
  406. &.programme-2{
  407. h2{
  408. color: $col-2 !important;
  409. }
  410. .field_programme{
  411. background: $col-2 ;
  412. }
  413. }
  414. &.programme-3{
  415. h2{
  416. color: $col-eur !important;
  417. }
  418. .field_programme{
  419. background: $col-eur ;
  420. }
  421. }
  422. &.programme-4{
  423. h2{
  424. color: black;
  425. }
  426. .field_programme{
  427. background:black ;
  428. }
  429. }
  430. &.programme-5{
  431. h2{
  432. color: $col-mond !important;
  433. }
  434. .field_programme{
  435. background: $col-mond ;
  436. }
  437. }
  438. &.programme-6{
  439. h2{
  440. color: $col-ter !important;
  441. }
  442. .field_programme{
  443. background: $col-ter ;
  444. }
  445. }
  446. &.programme-7{
  447. h2{
  448. color: $col-met !important;
  449. }
  450. .field_programme{
  451. background: $col-met ;
  452. }
  453. }
  454. }
  455. }
  456. }