_themes.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  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: block !important;
  247. .field_nom{
  248. display: inline-block;
  249. width: auto;
  250. >div:first-child{
  251. display: none;
  252. }
  253. div:nth-of-type(2){
  254. display: inline-block;
  255. width: auto;
  256. }
  257. }
  258. .field_prenom{
  259. display: inline-block;
  260. >div:first-child{
  261. display: none;
  262. }
  263. div:nth-of-type(2){
  264. display: inline-block;
  265. width: auto;
  266. }
  267. }
  268. .field_fonction{
  269. >div:first-child{
  270. display: none;
  271. }
  272. }
  273. margin-bottom: 1rem;
  274. }
  275. margin-bottom: 1rem;
  276. }
  277. .field_type_equipe{
  278. grid-row: 1;
  279. font-weight: 600;
  280. font-size: $font-medium;
  281. margin-bottom: .5rem;
  282. div:first-child{
  283. display: none;
  284. }
  285. }
  286. }
  287. }
  288. }
  289. &.programme-1{
  290. .block-region-second{
  291. h2,h3,h4,h5,h6,.field_titre{
  292. color: $col-1;
  293. }
  294. }
  295. }
  296. &.programme-2{
  297. .block-region-second{
  298. h2,h3,h4,h5,h6,.field_titre{
  299. color: $col-2;
  300. }
  301. }
  302. }
  303. &.programme-3{
  304. .block-region-second{
  305. h2,h3,h4,h5,h6,.field_titre{
  306. color: $col-eur;
  307. }
  308. }
  309. }
  310. &.programme-4{
  311. .block-region-second{
  312. h2,h3,h4,h5,h6,.field_titre{
  313. color: $col-met;
  314. }
  315. }
  316. }
  317. &.programme-5{
  318. .block-region-second{
  319. h2,h3,h4,h5,h6,.field_titre{
  320. color: $col-mond;
  321. }
  322. }
  323. }
  324. &.programme-6{
  325. .block-region-second{
  326. h2,h3,h4,h5,h6,.field_titre{
  327. color: $col-ter;
  328. }
  329. }
  330. }
  331. &.programme-7{
  332. .block-region-second{
  333. h2,h3,h4,h5,h6,.field_titre{
  334. color: $col-met;
  335. }
  336. }
  337. }
  338. // font-size: $font-small;
  339. //temp hidden
  340. .computed_projets_references, .computed_themes_references{
  341. display: none;
  342. }
  343. }
  344. .page-node-type-projet{
  345. #node\:title:before{
  346. content: "ville";
  347. }
  348. }
  349. .page-node-type-theme{
  350. #node\:title:before{
  351. content: "théme";
  352. }
  353. #node\:field_equipes{
  354. h2{
  355. color: white !important;
  356. text-align: left !important;
  357. }
  358. }
  359. .field_projets_lies{
  360. article{
  361. display: grid;
  362. h2{
  363. grid-row: 2;
  364. text-align: left !important;
  365. text-transform: none !important;
  366. line-height: 1.3;
  367. margin: .5rem 0 0 0;
  368. font-size: $font-normal;
  369. font-weight: 400;
  370. a{
  371. text-decoration: none;
  372. &:hover{
  373. text-decoration: underline;
  374. }
  375. }
  376. }
  377. .field_diaporama {
  378. position: relative;
  379. width: 100%;
  380. overflow: hidden;
  381. a{
  382. position: absolute;
  383. height: 100%;
  384. width: 100%;
  385. object-fit: cover;
  386. img{
  387. height: 100% ;
  388. width: 100%;
  389. object-fit: cover;
  390. }
  391. }
  392. }
  393. .field_diaporama:after {
  394. content: "";
  395. display: block;
  396. padding-top: 100%;
  397. }
  398. .field_programme{
  399. text-transform: uppercase;
  400. display: inline-block;
  401. font-weight: 600;
  402. padding: .02rem .3rem;
  403. grid-column: 1;
  404. grid-row: 1;
  405. z-index: 1;
  406. margin-bottom: -.5rem;
  407. margin-left: .2rem;
  408. color: white;
  409. a{
  410. text-decoration: none;
  411. }
  412. }
  413. //// prog color
  414. &.programme-1{
  415. h2{
  416. color: $col-1 !important;
  417. }
  418. .field_programme{
  419. background: $col-1 ;
  420. }
  421. }
  422. &.programme-2{
  423. h2{
  424. color: $col-2 !important;
  425. }
  426. .field_programme{
  427. background: $col-2 ;
  428. }
  429. }
  430. &.programme-3{
  431. h2{
  432. color: $col-eur !important;
  433. }
  434. .field_programme{
  435. background: $col-eur ;
  436. }
  437. }
  438. &.programme-4{
  439. h2{
  440. color: black;
  441. }
  442. .field_programme{
  443. background:black ;
  444. }
  445. }
  446. &.programme-5{
  447. h2{
  448. color: $col-mond !important;
  449. }
  450. .field_programme{
  451. background: $col-mond ;
  452. }
  453. }
  454. &.programme-6{
  455. h2{
  456. color: $col-ter !important;
  457. }
  458. .field_programme{
  459. background: $col-ter ;
  460. }
  461. }
  462. &.programme-7{
  463. h2{
  464. color: $col-met !important;
  465. }
  466. .field_programme{
  467. background: $col-met ;
  468. }
  469. }
  470. }
  471. }
  472. }