_ressources.scss 16 KB

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