_themes.scss 21 KB

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