_themes.scss 22 KB

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