_themes.scss 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908
  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: 19rem;
  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: 19rem;
  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. #node\:field_equipes{
  461. border-bottom: 3px dotted gray;
  462. padding: 0 0 1rem 0;
  463. h2{
  464. font-family: "trueno" !important;
  465. font-size: $font-big;
  466. font-weight: 600;
  467. text-transform: initial;
  468. cursor: pointer;
  469. display: grid;
  470. grid-template-columns: 95% 5%;
  471. align-content: center;
  472. margin: 1rem 0 0 0;
  473. }
  474. h2:after{
  475. content: '▼';
  476. -webkit-transition: all 250ms ease;
  477. -moz-transition: all 250ms ease;
  478. -o-transition: all 250ms ease;
  479. transition: all 250ms ease;
  480. align-self: center;
  481. justify-self: center;
  482. }
  483. // h2:after{
  484. // transform: rotate(180deg);
  485. // -webkit-transition: all 250ms ease;
  486. // -moz-transition: all 250ms ease;
  487. // -o-transition: all 250ms ease;
  488. // transition: all 250ms ease;
  489. // }
  490. .rotate:after{
  491. transform: rotate(180deg);
  492. -webkit-transition: all 250ms ease;
  493. -moz-transition: all 250ms ease;
  494. -o-transition: all 250ms ease;
  495. transition: all 250ms ease;
  496. }
  497. .field_type_equipe{
  498. font-weight: 500;
  499. }
  500. .field_equipes{
  501. display: none;
  502. }
  503. }
  504. .field_projets_lies, .field_themes_lies, .field_comparatifs_associes{
  505. article{
  506. display: grid;
  507. min-height: 4rem;
  508. h2{
  509. grid-row: 2;
  510. text-align: left !important;
  511. text-transform: none !important;
  512. line-height: 1.3;
  513. margin: .5rem 0 0 0;
  514. font-size: $font-normal;
  515. font-weight: 400;
  516. a{
  517. text-decoration: none;
  518. &:hover{
  519. text-decoration: underline;
  520. }
  521. }
  522. }
  523. .field_diaporama,.field_image {
  524. position: relative;
  525. width: 100%;
  526. overflow: hidden;
  527. margin-top: .5rem;
  528. z-index: -1;
  529. a{
  530. position: absolute;
  531. height: 100%;
  532. width: 100%;
  533. object-fit: cover;
  534. img{
  535. height: 100% ;
  536. width: 100%;
  537. object-fit: cover;
  538. }
  539. }
  540. }
  541. .field_diaporama:after, .field_image:after {
  542. content: "";
  543. display: block;
  544. padding-top: 100%;
  545. }
  546. .field_programme{
  547. text-transform: uppercase;
  548. font-weight: 600;
  549. // grid-column: 1;
  550. // grid-row: 1;
  551. // margin-bottom: -.5rem;
  552. color: #fff;
  553. // display: grid;
  554. // grid-template-columns: 1fr;
  555. // grid-gap: 10px;
  556. z-index: 100;
  557. position: absolute;
  558. div{
  559. padding: .02rem .3rem;
  560. position: relative;
  561. float: left;
  562. clear: both;
  563. margin: .1rem 0 .1rem 0;
  564. }
  565. a{
  566. text-decoration: none;
  567. }
  568. }
  569. //// prog color
  570. &.programme-1{
  571. h2{
  572. color: $col-1 !important;
  573. }
  574. .field_programme{
  575. background: $col-1 ;
  576. }
  577. }
  578. &.programme-2{
  579. h2{
  580. color: $col-2 !important;
  581. }
  582. .field_programme{
  583. background: $col-2 ;
  584. }
  585. }
  586. &.programme-3{
  587. h2{
  588. color: $col-eur !important;
  589. }
  590. .field_programme{
  591. background: $col-eur ;
  592. }
  593. }
  594. &.programme-4{
  595. h2{
  596. color: $col-1;
  597. }
  598. .field_programme{
  599. background:$col-1 ;
  600. }
  601. }
  602. &.programme-5{
  603. h2{
  604. color: $col-mond !important;
  605. }
  606. .field_programme{
  607. background: $col-mond ;
  608. }
  609. }
  610. &.programme-6{
  611. h2{
  612. color: $col-ter !important;
  613. }
  614. .field_programme{
  615. background: $col-ter ;
  616. }
  617. }
  618. &.programme-7{
  619. h2{
  620. color: $col-met !important;
  621. }
  622. .field_programme{
  623. background: $col-met ;
  624. }
  625. }
  626. }
  627. }
  628. }
  629. .page-node-type-projet{
  630. .block-region-third{
  631. #ressources-block_1{
  632. // padding: 0.5rem 1rem;
  633. .views-field-field-ressources-liees article{
  634. margin-bottom: 0;
  635. color: black;
  636. display: grid;
  637. grid-template-columns: 25% auto;
  638. h2{
  639. font-weight: 600;
  640. grid-column: 1 / span 2;
  641. grid-row: 1;
  642. font-size: $font-normal;
  643. background-color: transparent;
  644. padding: 0;
  645. margin-top: 0;
  646. }
  647. &>div{
  648. grid-column: 1 / span 2;
  649. .field_image{
  650. position: relative;
  651. float: left;
  652. width: 45%;
  653. margin-right: 5%;
  654. }
  655. }
  656. // .views-field-field-image{
  657. // grid-column: 1 / span 1;
  658. // }
  659. // .views-field-field-auteurs{
  660. // padding: 0;
  661. // grid-column: 2 / span 1;
  662. // padding: .3rem;
  663. // }
  664. }
  665. .programme-1{
  666. color: $col-1 !important;
  667. }
  668. .programme-2{
  669. color: $col-2 !important;
  670. }
  671. .programme-3{
  672. color: $col-eur !important;
  673. }
  674. .programme-4{
  675. color: $col-1;
  676. }
  677. .programme-5{
  678. color: $col-mond !important;
  679. }
  680. .programme-6{
  681. color: $col-ter !important;
  682. }
  683. .programme-7{
  684. color: $col-met !important;
  685. }
  686. }
  687. }
  688. #node\:title:before{
  689. content: "ville";
  690. }
  691. #node\:field_ressources_liees{
  692. .field_ressources_liees{
  693. color:black ;
  694. }
  695. }
  696. }
  697. .page-node-type-theme{
  698. #node\:title:before{
  699. content: "thème";
  700. }
  701. // #node\:field_equipes{
  702. // h2{
  703. // color: white !important;
  704. // text-align: left !important;
  705. // cursor: pointer;
  706. // }
  707. // }
  708. // .block-region-third{
  709. // #node\:field_partenaires{
  710. // h2{
  711. // border:none;
  712. // font-family: trueno;
  713. // font-size: .8rem;
  714. // font-weight: 600;
  715. // margin-top: 0;
  716. // padding: .4rem 0.5rem;
  717. // display: block;
  718. // &:after{
  719. // display:none;
  720. // }
  721. // }
  722. // .field_partenaires{
  723. // display: grid;
  724. // }
  725. // }
  726. // }
  727. // si ressources affichée dans page théme
  728. #node\:field_ressources_liees{
  729. background: $trame;
  730. // h2{
  731. // text-align: center;
  732. // }
  733. &>h2{
  734. text-align: center;
  735. }
  736. // .field_ressources_liees{
  737. // background: $trame;
  738. // }
  739. article{
  740. a{
  741. text-decoration: none;
  742. }
  743. // display:grid !important;
  744. // grid-template-columns: 1fr 1fr;
  745. h2{
  746. grid-column: 2;
  747. grid-row: 1;
  748. text-align:left;
  749. }
  750. &>div{
  751. display: grid !important;
  752. grid-template-columns: 1fr 1fr;
  753. align-items: center;
  754. background: #fff;
  755. position: relative;
  756. height: auto;
  757. padding: 1rem;
  758. background-clip: content-box;
  759. }
  760. .field_type_de_ressource{
  761. grid-column: 2;
  762. }
  763. .field_sous_titre{
  764. grid-column: 2;
  765. }
  766. ///////
  767. .field_image{
  768. grid-row: 2 / span 3;
  769. // margin-top: -1.5rem;
  770. z-index: 0;
  771. padding: .5rem;
  772. }
  773. div{
  774. margin-bottom: .5rem;
  775. }
  776. h2{
  777. font-weight: 400;
  778. grid-row: 3 / span 1;
  779. grid-column: 2;
  780. font-style: italic;
  781. text-transform: none;
  782. }
  783. .field_type_de_ressource{
  784. font-weight: 400;
  785. }
  786. .field_sous_titre{
  787. grid-row: 4 / span 1;
  788. }
  789. .field_programme{
  790. &>div{
  791. display: inline-block;
  792. width: auto;
  793. padding: .3rem .5rem;
  794. }
  795. padding-left: .5rem !important;
  796. grid-row: 1 / span 1;
  797. grid-column: 1 / span 2;
  798. text-transform: uppercase;
  799. margin-top: -.5rem;
  800. &>div{
  801. font-weight: 600;
  802. display: inline-block;
  803. width: auto;
  804. color: white;
  805. padding: .02rem .3rem;
  806. // margin-bottom: 1rem;
  807. }
  808. }
  809. }
  810. }
  811. }