_themes.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800
  1. .page-node-type-theme, .page-node-type-projet{
  2. ///// menu left
  3. .block-region-first{
  4. .field_programme{
  5. display: none;
  6. }
  7. #programme_toc-block_10{
  8. .views-row{
  9. padding-left: 1rem;
  10. }
  11. }
  12. @include breakpoint(small down) {
  13. text-align: center;
  14. }
  15. position: absolute;
  16. top: 0;
  17. left: 0;
  18. width: 22%;
  19. padding: 1rem 1.5rem ;
  20. .prog-ressources-link{
  21. font-family: "duke";
  22. font-size: $font-large;
  23. cursor: pointer;
  24. transition: all 250ms;
  25. text-decoration: none;
  26. &:hover{
  27. padding: 0 0 0 .3rem;
  28. }
  29. }
  30. div[id=""] {
  31. @include breakpoint(small down) {
  32. display: none;
  33. }
  34. }
  35. .views-element-container{
  36. @include breakpoint(small down) {
  37. display: block;
  38. // &:not(:first-child){
  39. // margin-left: 1rem;
  40. // }
  41. }
  42. header{
  43. font-family: "duke";
  44. font-size: $font-large;
  45. text-transform: uppercase;
  46. cursor: pointer;
  47. transition: all 250ms;
  48. line-height: 1.1;
  49. margin-bottom: .5rem;
  50. &:hover{
  51. padding: 0 0 0 .3rem;
  52. }
  53. }
  54. .views-row, .view-grouping{
  55. display: none;
  56. padding: 0 0 0 1.2rem;
  57. margin-bottom: .5rem;
  58. a{
  59. text-decoration: none;
  60. &:hover{
  61. text-decoration: underline;
  62. }
  63. }
  64. }
  65. .views-row{
  66. padding: 0;
  67. }
  68. }
  69. }
  70. /////fin menu left
  71. // couleur popsu
  72. .field_logo{
  73. display: block;
  74. }
  75. .field_programme>div{
  76. &.programme-1{
  77. background: $col-1;
  78. }
  79. &.programme-2{
  80. background: $col-2;
  81. }
  82. &.programme-3{
  83. background: $col-eur;
  84. }
  85. &.programme-4{
  86. background: $col-1;
  87. }
  88. &.programme-5{
  89. background: $col-mond;
  90. }
  91. &.programme-6{
  92. background: $col-ter;
  93. }
  94. &.programme-7{
  95. background: $col-met;
  96. }
  97. }
  98. //fin couleurp popsu
  99. // .block-region-first{
  100. // padding: 1rem;
  101. // .field_programme{
  102. // background: black !important;
  103. // font-weight: 600;
  104. // a{
  105. // text-decoration: none;
  106. // &:hover{
  107. // text-decoration: underline;
  108. // }
  109. // }
  110. // }
  111. // }
  112. //contenu
  113. .block-region-second{
  114. #node\:title:before{
  115. clear: both;
  116. display: block;
  117. width: 100%;
  118. font-size: $font-small;
  119. text-transform: uppercase;
  120. margin-bottom: .8rem;
  121. }
  122. ///
  123. .field_programme{
  124. display: flex;
  125. flex-wrap: wrap;
  126. margin-bottom: 1rem;
  127. a{
  128. text-decoration: none;
  129. }
  130. div{
  131. display: inline-block;
  132. color: white;
  133. font-weight: 600;
  134. padding: .3rem .5rem;
  135. margin-right: .5rem;
  136. margin-bottom: .5rem;
  137. }
  138. }
  139. ///
  140. #node\:title{
  141. margin: 0;
  142. font-size: $font-large;
  143. line-height: 1.3;
  144. font-weight: 600;
  145. margin-bottom: 1rem;
  146. }
  147. #node\:field_image,.field_diaporama,.field_image{
  148. width: 150%;
  149. margin-bottom: 1rem;
  150. max-height: 22rem;
  151. overflow: hidden;
  152. @include breakpoint(small down) {
  153. width: 100%;
  154. }
  155. img{
  156. width: 100%;
  157. margin-top: -10%;
  158. }
  159. }
  160. .body{
  161. font-size: $font-medium;
  162. height: 15rem;
  163. overflow: hidden;
  164. position: relative;
  165. -webkit-transition: all 250ms ease;
  166. -moz-transition: all 250ms ease;
  167. -o-transition: all 250ms ease;
  168. transition: all 250ms ease;
  169. footer{
  170. position:absolute;
  171. bottom:0;
  172. left:0;
  173. z-index: 1;
  174. width: 100%;
  175. text-align: center;
  176. a{
  177. display: inline-block;
  178. margin: 0 auto;
  179. background: black;
  180. color: white;
  181. cursor:pointer;
  182. font-family: "trueno";
  183. font-weight: 500;
  184. padding: .3rem .5rem;
  185. font-size: $font-small;
  186. text-decoration: none;
  187. text-transform: uppercase;
  188. &:hover{
  189. color:black;
  190. background: white;
  191. }
  192. }
  193. }
  194. }
  195. .body:after{
  196. content: "";
  197. opacity: 1;
  198. position: absolute;
  199. top: 0; bottom: 0; left: -15px; right: -15px;
  200. box-shadow: inset $bck-col 0 -2rem 2rem;
  201. }
  202. .body_open{
  203. height: auto !important;
  204. padding: 0 0 1.8rem 0;
  205. &:after{
  206. opacity: 0;
  207. -webkit-transition: all 250ms ease;
  208. -moz-transition: all 250ms ease;
  209. -o-transition: all 250ms ease;
  210. transition: all 250ms ease;
  211. }
  212. -webkit-transition: all 250ms ease;
  213. -moz-transition: all 250ms ease;
  214. -o-transition: all 250ms ease;
  215. transition: all 250ms ease;
  216. }
  217. .body_open:after{
  218. display: none;
  219. }
  220. .field_textes{
  221. //*****////
  222. .paragraph{
  223. // border-top: 1px solid black;
  224. border-bottom: 3px dotted gray;
  225. padding: 1rem 0;
  226. .field_titre{
  227. font-size: $font-big;
  228. font-weight: 600;
  229. text-transform: initial;
  230. cursor: pointer;
  231. display: grid;
  232. grid-template-columns: 95% 5%;
  233. align-content: center;
  234. // margin-top: 1rem;
  235. }
  236. .field_titre:after{
  237. content: '▼';
  238. -webkit-transition: all 250ms ease;
  239. -moz-transition: all 250ms ease;
  240. -o-transition: all 250ms ease;
  241. transition: all 250ms ease;
  242. align-self: center;
  243. justify-self: center;
  244. }
  245. .rotate:after{
  246. transform: rotate(180deg);
  247. -webkit-transition: all 250ms ease;
  248. -moz-transition: all 250ms ease;
  249. -o-transition: all 250ms ease;
  250. transition: all 250ms ease;
  251. }
  252. .field_texte{
  253. height: auto;
  254. position: relative;
  255. h2{
  256. text-transform: inherit;
  257. }
  258. p{
  259. margin-top: .5rem;
  260. }
  261. -webkit-transition: all 250ms ease;
  262. -moz-transition: all 250ms ease;
  263. -o-transition: all 250ms ease;
  264. transition: all 250ms ease;
  265. }
  266. .crop{
  267. height: 0;
  268. overflow: hidden;
  269. display: none;
  270. -webkit-transition: all 250ms ease;
  271. -moz-transition: all 250ms ease;
  272. -o-transition: all 250ms ease;
  273. transition: all 250ms ease;
  274. }
  275. }
  276. }
  277. }
  278. //end contenus central
  279. //menu droite
  280. .block-region-third{
  281. margin-top: 20rem;
  282. #node\:field_evenements_lies{
  283. article{
  284. display: grid;
  285. >div{
  286. //vgrid-row: 1;
  287. text-transform: none;
  288. color: #fff !important;
  289. background: none;
  290. font-size: .6rem;
  291. margin: 0;
  292. padding: .1rem 1rem;
  293. }
  294. }
  295. }
  296. }
  297. // fin menu droite
  298. // gallery de projet sous contenu du théme / ville
  299. .block-region-bottom{
  300. #node\:field_projets_lies, #node\:field_themes_lies, #node\:field_comparatifs_associes{
  301. h2{
  302. text-align: center;
  303. }
  304. .field_projets_lies, .field_themes_lies, .field_comparatifs_associes {
  305. margin-top: 1rem;
  306. display: grid;
  307. grid-template-columns: repeat(5, 1fr);
  308. column-gap: 1rem;
  309. padding: 0 10%;
  310. }
  311. article{
  312. margin-bottom: 1.6rem;
  313. .body{
  314. display: none;
  315. }
  316. }
  317. }
  318. }
  319. #node\:field_partenaires{
  320. h2{
  321. // color: black;
  322. font-family: "trueno";
  323. font-size: 1rem;
  324. font-weight: 600;
  325. text-transform: initial;
  326. margin-top: 1rem;
  327. padding: .4rem 0;
  328. border-bottom: 3px dotted gray;
  329. cursor: pointer;
  330. display: grid;
  331. grid-template-columns: 95% 5%;
  332. text-transform: initial;
  333. }
  334. h2:after{
  335. content: '▼';
  336. -webkit-transition: all 250ms ease;
  337. -moz-transition: all 250ms ease;
  338. -o-transition: all 250ms ease;
  339. transition: all 250ms ease;
  340. align-self: center;
  341. justify-self: center;
  342. font-size: $font-big;
  343. }
  344. .rotate:after{
  345. transform: rotate(180deg);
  346. -webkit-transition: all 250ms ease;
  347. -moz-transition: all 250ms ease;
  348. -o-transition: all 250ms ease;
  349. transition: all 250ms ease;
  350. }
  351. .field_partenaires{
  352. display: none;
  353. align-items: center;
  354. justify-items: center;
  355. // grid-template-columns: repeat(5 , 1fr);
  356. grid-template-columns: repeat(2 , 1fr);
  357. .paragraph{
  358. .field_logo_partenaire{
  359. div:first-child{
  360. display: none;
  361. }
  362. grid-column: 1;
  363. grid-row: 1;
  364. img{
  365. max-width: 80%;
  366. }
  367. }
  368. .field_nom_partenaire{
  369. display: none;
  370. div:first-child{
  371. display: none;
  372. }
  373. grid-column: 2;
  374. grid-row: 1;
  375. }
  376. }
  377. }
  378. }
  379. &.programme-1{
  380. .block-region-second{
  381. h2,h3,h4,h5,h6,.field_titre{
  382. color: $col-1;
  383. }
  384. }
  385. }
  386. &.programme-2{
  387. .block-region-second{
  388. h2,h3,h4,h5,h6,.field_titre{
  389. color: $col-2;
  390. }
  391. }
  392. }
  393. &.programme-3{
  394. .block-region-second{
  395. h2,h3,h4,h5,h6,.field_titre{
  396. color: $col-eur;
  397. }
  398. }
  399. }
  400. &.programme-4{
  401. .block-region-second{
  402. h2,h3,h4,h5,h6,.field_titre{
  403. color: $col-1;
  404. }
  405. }
  406. }
  407. &.programme-5{
  408. .block-region-second{
  409. h2,h3,h4,h5,h6,.field_titre{
  410. color: $col-mond;
  411. }
  412. }
  413. }
  414. &.programme-6{
  415. .block-region-second{
  416. h2,h3,h4,h5,h6,.field_titre{
  417. color: $col-ter;
  418. }
  419. }
  420. }
  421. &.programme-7{
  422. .block-region-second{
  423. h2,h3,h4,h5,h6,.field_titre{
  424. color: $col-met;
  425. }
  426. }
  427. }
  428. // font-size: $font-small;
  429. //temp hidden
  430. .computed_projets_references, .computed_themes_references{
  431. display: none;
  432. }
  433. }
  434. .page-node-type-projet, .page-node-type-theme{
  435. .field_projets_lies, .field_themes_lies, .field_comparatifs_associes{
  436. article{
  437. display: grid;
  438. h2{
  439. grid-row: 2;
  440. text-align: left !important;
  441. text-transform: none !important;
  442. line-height: 1.3;
  443. margin: .5rem 0 0 0;
  444. font-size: $font-normal;
  445. font-weight: 400;
  446. a{
  447. text-decoration: none;
  448. &:hover{
  449. text-decoration: underline;
  450. }
  451. }
  452. }
  453. .field_diaporama,.field_image {
  454. position: relative;
  455. width: 100%;
  456. overflow: hidden;
  457. margin-top: .5rem;
  458. z-index: -1;
  459. a{
  460. position: absolute;
  461. height: 100%;
  462. width: 100%;
  463. object-fit: cover;
  464. img{
  465. height: 100% ;
  466. width: 100%;
  467. object-fit: cover;
  468. }
  469. }
  470. }
  471. .field_diaporama:after, .field_image:after {
  472. content: "";
  473. display: block;
  474. padding-top: 100%;
  475. }
  476. .field_programme{
  477. text-transform: uppercase;
  478. font-weight: 600;
  479. grid-column: 1;
  480. grid-row: 1;
  481. // margin-bottom: -.5rem;
  482. color: #fff;
  483. display: grid;
  484. grid-template-columns: 1fr;
  485. grid-gap: 10px;
  486. z-index: 100;
  487. position: absolute;
  488. div{
  489. padding: .02rem .3rem;
  490. }
  491. a{
  492. text-decoration: none;
  493. }
  494. }
  495. //// prog color
  496. &.programme-1{
  497. h2{
  498. color: $col-1 !important;
  499. }
  500. .field_programme{
  501. background: $col-1 ;
  502. }
  503. }
  504. &.programme-2{
  505. h2{
  506. color: $col-2 !important;
  507. }
  508. .field_programme{
  509. background: $col-2 ;
  510. }
  511. }
  512. &.programme-3{
  513. h2{
  514. color: $col-eur !important;
  515. }
  516. .field_programme{
  517. background: $col-eur ;
  518. }
  519. }
  520. &.programme-4{
  521. h2{
  522. color: $col-1;
  523. }
  524. .field_programme{
  525. background:$col-1 ;
  526. }
  527. }
  528. &.programme-5{
  529. h2{
  530. color: $col-mond !important;
  531. }
  532. .field_programme{
  533. background: $col-mond ;
  534. }
  535. }
  536. &.programme-6{
  537. h2{
  538. color: $col-ter !important;
  539. }
  540. .field_programme{
  541. background: $col-ter ;
  542. }
  543. }
  544. &.programme-7{
  545. h2{
  546. color: $col-met !important;
  547. }
  548. .field_programme{
  549. background: $col-met ;
  550. }
  551. }
  552. }
  553. }
  554. }
  555. .page-node-type-projet{
  556. #node\:title:before{
  557. content: "ville";
  558. }
  559. #node\:field_equipes{
  560. border-bottom: 3px dotted gray;
  561. padding: 0 0 1rem 0;
  562. h2{
  563. font-family: "trueno" !important;
  564. font-size: $font-big;
  565. font-weight: 600;
  566. text-transform: initial;
  567. cursor: pointer;
  568. display: grid;
  569. grid-template-columns: 95% 5%;
  570. align-content: center;
  571. margin: 1rem 0 0 0;
  572. }
  573. h2:after{
  574. content: '▼';
  575. -webkit-transition: all 250ms ease;
  576. -moz-transition: all 250ms ease;
  577. -o-transition: all 250ms ease;
  578. transition: all 250ms ease;
  579. align-self: center;
  580. justify-self: center;
  581. }
  582. // h2:after{
  583. // transform: rotate(180deg);
  584. // -webkit-transition: all 250ms ease;
  585. // -moz-transition: all 250ms ease;
  586. // -o-transition: all 250ms ease;
  587. // transition: all 250ms ease;
  588. // }
  589. .rotate:after{
  590. transform: rotate(180deg);
  591. -webkit-transition: all 250ms ease;
  592. -moz-transition: all 250ms ease;
  593. -o-transition: all 250ms ease;
  594. transition: all 250ms ease;
  595. }
  596. .field_type_equipe{
  597. font-weight: 500;
  598. }
  599. .field_equipes{
  600. display: none;
  601. }
  602. }
  603. }
  604. .page-node-type-theme{
  605. #node\:title:before{
  606. content: "thème";
  607. }
  608. #node\:field_equipes{
  609. h2{
  610. color: white !important;
  611. text-align: left !important;
  612. cursor: pointer;
  613. }
  614. }
  615. // .block-region-third{
  616. // #node\:field_partenaires{
  617. // h2{
  618. // border:none;
  619. // font-family: trueno;
  620. // font-size: .8rem;
  621. // font-weight: 600;
  622. // margin-top: 0;
  623. // padding: .4rem 0.5rem;
  624. // display: block;
  625. // &:after{
  626. // display:none;
  627. // }
  628. // }
  629. // .field_partenaires{
  630. // display: grid;
  631. // }
  632. // }
  633. // }
  634. // si ressources affichée dans page théme
  635. #node\:field_ressources_liees{
  636. background: $trame;
  637. // h2{
  638. // text-align: center;
  639. // }
  640. &>h2{
  641. text-align: center;
  642. }
  643. // .field_ressources_liees{
  644. // background: $trame;
  645. // }
  646. article{
  647. a{
  648. text-decoration: none;
  649. }
  650. // display:grid !important;
  651. // grid-template-columns: 1fr 1fr;
  652. h2{
  653. grid-column: 2;
  654. grid-row: 1;
  655. text-align:left;
  656. }
  657. &>div{
  658. display: grid !important;
  659. grid-template-columns: 1fr 1fr;
  660. align-items: center;
  661. background: #fff;
  662. position: relative;
  663. height: auto;
  664. padding: 1rem;
  665. background-clip: content-box;
  666. }
  667. .field_type_de_ressource{
  668. grid-column: 2;
  669. }
  670. .field_sous_titre{
  671. grid-column: 2;
  672. }
  673. ///////
  674. .field_image{
  675. grid-row: 2 / span 3;
  676. // margin-top: -1.5rem;
  677. z-index: 0;
  678. padding: .5rem;
  679. }
  680. div{
  681. margin-bottom: .5rem;
  682. }
  683. h2{
  684. font-weight: 400;
  685. grid-row: 3 / span 1;
  686. grid-column: 2;
  687. font-style: italic;
  688. text-transform: none;
  689. }
  690. .field_type_de_ressource{
  691. font-weight: 400;
  692. }
  693. .field_sous_titre{
  694. grid-row: 4 / span 1;
  695. }
  696. .field_programme{
  697. &>div{
  698. display: inline-block;
  699. width: auto;
  700. padding: .3rem .5rem;
  701. }
  702. padding-left: .5rem !important;
  703. grid-row: 1 / span 1;
  704. grid-column: 1 / span 2;
  705. text-transform: uppercase;
  706. margin-top: -.5rem;
  707. &>div{
  708. font-weight: 600;
  709. display: inline-block;
  710. width: auto;
  711. color: white;
  712. padding: .02rem .3rem;
  713. // margin-bottom: 1rem;
  714. }
  715. }
  716. }
  717. }
  718. }