_themes.scss 21 KB

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