_themes.scss 13 KB

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