_themes.scss 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  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. .paragraph--type--equipes{
  278. .field_type_equipe{
  279. margin: .8rem 0 .3rem 0;
  280. }
  281. }
  282. .paragraph--type--personne{
  283. //background-color: red;
  284. display: flex;
  285. flex-wrap: wrap;
  286. .field_nom, .field_prenom{
  287. font-weight: 600;
  288. }
  289. .field_fonction{
  290. width: 100%;
  291. }
  292. .field_nom{
  293. margin-left: .2rem;
  294. }
  295. }
  296. }
  297. //end contenus central
  298. //menu droite
  299. .block-region-third{
  300. margin-top: 14rem;
  301. @include breakpoint(small down) {
  302. margin-top: 2rem;
  303. }
  304. #node\:field_evenements_lies{
  305. article{
  306. display: grid;
  307. >div{
  308. //vgrid-row: 1;
  309. text-transform: none;
  310. color: #fff !important;
  311. background: none;
  312. font-size: .6rem;
  313. margin: 0;
  314. padding: .1rem 1rem;
  315. }
  316. }
  317. }
  318. }
  319. // fin menu droite
  320. // gallery de projet sous contenu du théme / ville
  321. .block-region-bottom{
  322. #node\:field_projets_lies, #node\:field_themes_lies, #node\:field_comparatifs_associes{
  323. h2{
  324. text-align: center;
  325. }
  326. .field_projets_lies, .field_themes_lies, .field_comparatifs_associes {
  327. margin-top: 1rem;
  328. display: grid;
  329. grid-template-columns: repeat(5, 1fr);
  330. column-gap: 1rem;
  331. padding: 0 10%;
  332. @include breakpoint(small down) {
  333. grid-template-columns: repeat(2, 1fr);
  334. }
  335. }
  336. article{
  337. margin-bottom: 1.6rem;
  338. .body{
  339. display: none;
  340. }
  341. }
  342. }
  343. }
  344. #node\:field_partenaires{
  345. h2{
  346. // color: black;
  347. font-family: "trueno";
  348. font-size: 1rem;
  349. font-weight: 600;
  350. text-transform: initial;
  351. margin-top: 1rem;
  352. padding: .4rem 0;
  353. border-bottom: 3px dotted gray;
  354. cursor: pointer;
  355. display: grid;
  356. grid-template-columns: 95% 5%;
  357. text-transform: initial;
  358. }
  359. h2:after{
  360. content: '▼';
  361. -webkit-transition: all 250ms ease;
  362. -moz-transition: all 250ms ease;
  363. -o-transition: all 250ms ease;
  364. transition: all 250ms ease;
  365. align-self: center;
  366. justify-self: center;
  367. font-size: $font-big;
  368. }
  369. .rotate:after{
  370. transform: rotate(180deg);
  371. -webkit-transition: all 250ms ease;
  372. -moz-transition: all 250ms ease;
  373. -o-transition: all 250ms ease;
  374. transition: all 250ms ease;
  375. }
  376. .field_partenaires{
  377. display: none;
  378. align-items: center;
  379. justify-items: center;
  380. // grid-template-columns: repeat(5 , 1fr);
  381. grid-template-columns: repeat(2 , 1fr);
  382. .paragraph{
  383. .field_logo_partenaire{
  384. div:first-child{
  385. display: none;
  386. }
  387. grid-column: 1;
  388. grid-row: 1;
  389. img{
  390. max-width: 80%;
  391. }
  392. }
  393. .field_nom_partenaire{
  394. display: none;
  395. div:first-child{
  396. display: none;
  397. }
  398. grid-column: 2;
  399. grid-row: 1;
  400. }
  401. }
  402. }
  403. }
  404. &.programme-1{
  405. .block-region-second{
  406. h2,h3,h4,h5,h6,.field_titre{
  407. color: $col-1;
  408. }
  409. }
  410. }
  411. &.programme-2{
  412. .block-region-second{
  413. h2,h3,h4,h5,h6,.field_titre{
  414. color: $col-2;
  415. }
  416. }
  417. }
  418. &.programme-3{
  419. .block-region-second{
  420. h2,h3,h4,h5,h6,.field_titre{
  421. color: $col-eur;
  422. }
  423. }
  424. }
  425. &.programme-4{
  426. .block-region-second{
  427. h2,h3,h4,h5,h6,.field_titre{
  428. color: $col-1;
  429. }
  430. }
  431. }
  432. &.programme-5{
  433. .block-region-second{
  434. h2,h3,h4,h5,h6,.field_titre{
  435. color: $col-mond;
  436. }
  437. }
  438. }
  439. &.programme-6{
  440. .block-region-second{
  441. h2,h3,h4,h5,h6,.field_titre{
  442. color: $col-ter;
  443. }
  444. }
  445. }
  446. &.programme-7{
  447. .block-region-second{
  448. h2,h3,h4,h5,h6,.field_titre{
  449. color: $col-met;
  450. }
  451. }
  452. }
  453. // font-size: $font-small;
  454. //temp hidden
  455. .computed_projets_references, .computed_themes_references{
  456. display: none;
  457. }
  458. }
  459. .page-node-type-projet, .page-node-type-theme{
  460. .field_projets_lies, .field_themes_lies, .field_comparatifs_associes{
  461. article{
  462. display: grid;
  463. h2{
  464. grid-row: 2;
  465. text-align: left !important;
  466. text-transform: none !important;
  467. line-height: 1.3;
  468. margin: .5rem 0 0 0;
  469. font-size: $font-normal;
  470. font-weight: 400;
  471. a{
  472. text-decoration: none;
  473. &:hover{
  474. text-decoration: underline;
  475. }
  476. }
  477. }
  478. .field_diaporama,.field_image {
  479. position: relative;
  480. width: 100%;
  481. overflow: hidden;
  482. margin-top: .5rem;
  483. z-index: -1;
  484. a{
  485. position: absolute;
  486. height: 100%;
  487. width: 100%;
  488. object-fit: cover;
  489. img{
  490. height: 100% ;
  491. width: 100%;
  492. object-fit: cover;
  493. }
  494. }
  495. }
  496. .field_diaporama:after, .field_image:after {
  497. content: "";
  498. display: block;
  499. padding-top: 100%;
  500. }
  501. .field_programme{
  502. text-transform: uppercase;
  503. font-weight: 600;
  504. grid-column: 1;
  505. grid-row: 1;
  506. // margin-bottom: -.5rem;
  507. color: #fff;
  508. display: grid;
  509. grid-template-columns: 1fr;
  510. grid-gap: 10px;
  511. z-index: 100;
  512. position: absolute;
  513. div{
  514. padding: .02rem .3rem;
  515. }
  516. a{
  517. text-decoration: none;
  518. }
  519. }
  520. //// prog color
  521. &.programme-1{
  522. h2{
  523. color: $col-1 !important;
  524. }
  525. .field_programme{
  526. background: $col-1 ;
  527. }
  528. }
  529. &.programme-2{
  530. h2{
  531. color: $col-2 !important;
  532. }
  533. .field_programme{
  534. background: $col-2 ;
  535. }
  536. }
  537. &.programme-3{
  538. h2{
  539. color: $col-eur !important;
  540. }
  541. .field_programme{
  542. background: $col-eur ;
  543. }
  544. }
  545. &.programme-4{
  546. h2{
  547. color: $col-1;
  548. }
  549. .field_programme{
  550. background:$col-1 ;
  551. }
  552. }
  553. &.programme-5{
  554. h2{
  555. color: $col-mond !important;
  556. }
  557. .field_programme{
  558. background: $col-mond ;
  559. }
  560. }
  561. &.programme-6{
  562. h2{
  563. color: $col-ter !important;
  564. }
  565. .field_programme{
  566. background: $col-ter ;
  567. }
  568. }
  569. &.programme-7{
  570. h2{
  571. color: $col-met !important;
  572. }
  573. .field_programme{
  574. background: $col-met ;
  575. }
  576. }
  577. }
  578. }
  579. }
  580. .page-node-type-projet{
  581. #node\:title:before{
  582. content: "ville";
  583. }
  584. #node\:field_ressources_liees{
  585. .field_ressources_liees{
  586. color:black ;
  587. }
  588. }
  589. #node\:field_equipes{
  590. border-bottom: 3px dotted gray;
  591. padding: 0 0 1rem 0;
  592. h2{
  593. font-family: "trueno" !important;
  594. font-size: $font-big;
  595. font-weight: 600;
  596. text-transform: initial;
  597. cursor: pointer;
  598. display: grid;
  599. grid-template-columns: 95% 5%;
  600. align-content: center;
  601. margin: 1rem 0 0 0;
  602. }
  603. h2:after{
  604. content: '▼';
  605. -webkit-transition: all 250ms ease;
  606. -moz-transition: all 250ms ease;
  607. -o-transition: all 250ms ease;
  608. transition: all 250ms ease;
  609. align-self: center;
  610. justify-self: center;
  611. }
  612. // h2:after{
  613. // transform: rotate(180deg);
  614. // -webkit-transition: all 250ms ease;
  615. // -moz-transition: all 250ms ease;
  616. // -o-transition: all 250ms ease;
  617. // transition: all 250ms ease;
  618. // }
  619. .rotate:after{
  620. transform: rotate(180deg);
  621. -webkit-transition: all 250ms ease;
  622. -moz-transition: all 250ms ease;
  623. -o-transition: all 250ms ease;
  624. transition: all 250ms ease;
  625. }
  626. .field_type_equipe{
  627. font-weight: 500;
  628. }
  629. .field_equipes{
  630. display: none;
  631. }
  632. }
  633. }
  634. .page-node-type-theme{
  635. #node\:title:before{
  636. content: "thème";
  637. }
  638. #node\:field_equipes{
  639. h2{
  640. color: white !important;
  641. text-align: left !important;
  642. cursor: pointer;
  643. }
  644. }
  645. // .block-region-third{
  646. // #node\:field_partenaires{
  647. // h2{
  648. // border:none;
  649. // font-family: trueno;
  650. // font-size: .8rem;
  651. // font-weight: 600;
  652. // margin-top: 0;
  653. // padding: .4rem 0.5rem;
  654. // display: block;
  655. // &:after{
  656. // display:none;
  657. // }
  658. // }
  659. // .field_partenaires{
  660. // display: grid;
  661. // }
  662. // }
  663. // }
  664. // si ressources affichée dans page théme
  665. #node\:field_ressources_liees{
  666. background: $trame;
  667. // h2{
  668. // text-align: center;
  669. // }
  670. &>h2{
  671. text-align: center;
  672. }
  673. // .field_ressources_liees{
  674. // background: $trame;
  675. // }
  676. article{
  677. a{
  678. text-decoration: none;
  679. }
  680. // display:grid !important;
  681. // grid-template-columns: 1fr 1fr;
  682. h2{
  683. grid-column: 2;
  684. grid-row: 1;
  685. text-align:left;
  686. }
  687. &>div{
  688. display: grid !important;
  689. grid-template-columns: 1fr 1fr;
  690. align-items: center;
  691. background: #fff;
  692. position: relative;
  693. height: auto;
  694. padding: 1rem;
  695. background-clip: content-box;
  696. }
  697. .field_type_de_ressource{
  698. grid-column: 2;
  699. }
  700. .field_sous_titre{
  701. grid-column: 2;
  702. }
  703. ///////
  704. .field_image{
  705. grid-row: 2 / span 3;
  706. // margin-top: -1.5rem;
  707. z-index: 0;
  708. padding: .5rem;
  709. }
  710. div{
  711. margin-bottom: .5rem;
  712. }
  713. h2{
  714. font-weight: 400;
  715. grid-row: 3 / span 1;
  716. grid-column: 2;
  717. font-style: italic;
  718. text-transform: none;
  719. }
  720. .field_type_de_ressource{
  721. font-weight: 400;
  722. }
  723. .field_sous_titre{
  724. grid-row: 4 / span 1;
  725. }
  726. .field_programme{
  727. &>div{
  728. display: inline-block;
  729. width: auto;
  730. padding: .3rem .5rem;
  731. }
  732. padding-left: .5rem !important;
  733. grid-row: 1 / span 1;
  734. grid-column: 1 / span 2;
  735. text-transform: uppercase;
  736. margin-top: -.5rem;
  737. &>div{
  738. font-weight: 600;
  739. display: inline-block;
  740. width: auto;
  741. color: white;
  742. padding: .02rem .3rem;
  743. // margin-bottom: 1rem;
  744. }
  745. }
  746. }
  747. }
  748. }