_themes.scss 20 KB

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