_themes.scss 23 KB

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