ressources.scss 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. .path-ressources{
  2. .layout-content{
  3. width: 100vw;
  4. .region-content{
  5. width: 100%;
  6. margin: auto;
  7. #block-contenudelapageprincipale{
  8. .layout--onecol{
  9. .layout__region--content{
  10. .block-region-content{
  11. // display: grid;
  12. // grid-template-columns: 1fr repeat(4, 1fr) 1fr;
  13. display: flex;
  14. flex-direction: column;
  15. @media (max-width: 479px){
  16. display: flex;
  17. flex-direction: column;
  18. }
  19. // texte présentation
  20. .block-config-pages-block{
  21. width: 60%;
  22. margin: auto;
  23. margin-left: 30%;
  24. @media (max-width:479px) {
  25. order: 1;
  26. margin-left: 0;
  27. }
  28. .config_pages--base-de-donnees--full{
  29. grid-column: 1 / span 5;
  30. @media (max-width: 810px){
  31. padding: 2rem;
  32. margin-top:1rem;
  33. }
  34. @media (max-width: 479px){
  35. padding-left: 0;
  36. padding-right: 0;
  37. }
  38. .field--name-field-introduction{
  39. margin: auto;
  40. background: $white;
  41. margin-top:5rem;
  42. @media (max-width: 479px){
  43. margin-top:1rem;
  44. }
  45. }
  46. }
  47. }
  48. //button proposer une ressource
  49. .block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
  50. // visibility: hidden;
  51. grid-column: 6 / span 5;
  52. grid-row: 1;
  53. margin-top: 4rem;
  54. background-color: $blue-light;
  55. height: fit-content;
  56. width: 100%;
  57. @media (max-width: 810px){
  58. grid-column: 5 / span 5;
  59. }
  60. @media (max-width: 479px){
  61. grid-column: 5 / span 5;
  62. order: 2;
  63. }
  64. .display{
  65. display: block;
  66. }
  67. .field--name-field-lien{
  68. display: flex;
  69. flex-direction: column;
  70. margin-top: 2rem;
  71. margin-bottom: 2rem;
  72. margin-left: 1.5rem;
  73. margin-right: 1.5rem;
  74. text-align: center;
  75. a{
  76. font-weight: 800;
  77. color: $white;
  78. font-size: 1.3rem;
  79. }
  80. &:after{
  81. margin-left: auto;
  82. padding-top: 1rem;
  83. display: block;
  84. content:url("../images/pictos/noun_Arrow_3771902.svg")
  85. }
  86. }
  87. @media (max-width: 810px){
  88. margin: auto;
  89. }
  90. }
  91. // grille des ressources
  92. .block-views-blockbase-de-donnees-block-1{
  93. margin-top: 2rem;
  94. width: 100%;
  95. @media (max-width:479px) {
  96. order: 3;
  97. }
  98. .view-base-de-donnees{
  99. display: flex;
  100. flex-direction: row;
  101. .view-filters{
  102. position: fixed;
  103. top: 13rem;
  104. left: 0;
  105. width: 15%;
  106. background-color: $white;
  107. margin-top: 2rem;
  108. margin-left: 1rem;
  109. margin-bottom: 5rem;
  110. padding: 1rem;
  111. padding-right: 3rem;
  112. @media (max-width: 479px) {
  113. margin-left: 0;
  114. }
  115. &::before{
  116. content: "Filtrer par : ";
  117. padding-right: 1rem;
  118. font-weight: 800;
  119. @media (max-width: 479px){
  120. padding-bottom: 1rem;
  121. }
  122. }
  123. #views-exposed-form-base-de-donnees-block-1{
  124. // max-width: 20%;
  125. display: flex;
  126. flex-direction: column;
  127. flex-wrap: wrap;
  128. margin-top: 1rem;
  129. @media (max-width: 479px){
  130. justify-content: center;
  131. }
  132. .js-form-item{
  133. display: flex;
  134. flex-direction: column;
  135. max-width: 100%;
  136. }
  137. #edit-actions{
  138. display: flex;
  139. flex-direction: column;
  140. justify-content: space-between;
  141. align-self: center;
  142. margin-left: auto;
  143. @media (max-width: 479px){
  144. justify-content: center;
  145. margin: auto;
  146. }
  147. #edit-submit-base-de-donnees{
  148. background-color: $blue-light;
  149. color: white;
  150. text-transform: uppercase;
  151. border: none;
  152. padding: 0.3rem 0.7rem;
  153. margin-left: 2rem;
  154. @media (max-width: 479px){
  155. margin: auto;
  156. margin-top: 1rem;
  157. }
  158. }
  159. #edit-reset{
  160. background-color: $blue-light;
  161. color: white;
  162. text-transform: uppercase;
  163. border: none;
  164. padding: 0.3rem 0.7rem;
  165. margin-top: 1rem;
  166. margin-left: 1rem;
  167. @media (max-width: 479px){
  168. margin: auto;
  169. margin-top: 1rem;
  170. }
  171. }
  172. }
  173. }
  174. }
  175. .view-content{
  176. width: 100%;
  177. display: flex;
  178. flex-direction: row;
  179. flex-wrap: wrap;
  180. .view-type-ressource-slide:not(footer){
  181. width: 100%;
  182. h3{
  183. margin-left: 25%;
  184. text-transform: uppercase;
  185. a{color: rgb(9, 57, 139) !important;}
  186. }
  187. .views-row-wrapper{
  188. margin-left: 25%;
  189. display: flex;
  190. flex-direction: row;
  191. .views-row{
  192. display: flex;
  193. width: 25%;
  194. max-width: fit-content;
  195. .node-type-ressource{
  196. margin-bottom: 1rem ;
  197. padding-right: 1rem;
  198. .ext{
  199. color: black;
  200. }
  201. svg.ext{
  202. display: none;
  203. }
  204. &.type-de-ressource-Publication-issue-du-programme-EQLD{
  205. // background-color: $background-actus;
  206. .wrapper-ressource{
  207. display: grid;
  208. grid-template-columns: 1fr 1.5fr;
  209. grid-template-rows: repeat(5 1fr);
  210. .field--name-field-type-de-ressource{
  211. order: 1;
  212. grid-row: 1;
  213. }
  214. .field--name-field-images{
  215. order: 2;
  216. grid-row: 2 /span 5;
  217. height: auto;
  218. width: 90%;
  219. img{
  220. height: auto;
  221. width: 90%;
  222. border: 1px solid #a3a3a3;
  223. }
  224. }
  225. .field--name-title{
  226. grid-row: 2;
  227. }
  228. .field--name-field-sous-titre{
  229. grid-row: 3;
  230. }
  231. .field--name-field-auteur-s-{
  232. grid-row: 4;
  233. }
  234. .field--name-field-edition{
  235. grid-row: 5;
  236. }
  237. .field--name-field-date-de-parution{
  238. grid-row: 6;
  239. }
  240. .field--name-field-mots-clefs{
  241. grid-row: 7;
  242. }
  243. }
  244. }
  245. &.type-de-ressource-Paroles-de-lauréats{
  246. // background-color: $background-actus;
  247. }
  248. @media (max-width: 479px) {
  249. margin-left: 0;
  250. }
  251. .wrapper-ressource{
  252. .field--name-field-type-de-ressource{
  253. grid-column: 1;
  254. text-transform: uppercase;
  255. line-height: 1.1rem;
  256. margin-top: 0.5rem;
  257. a{
  258. color: $blue-light;
  259. font-weight: 900;
  260. font-size: 0.8rem;
  261. pointer-events: none;
  262. cursor: default;
  263. }
  264. }
  265. .field--name-title{
  266. grid-column: 2;
  267. margin-top: 0.5rem;
  268. h2{
  269. margin: 0;
  270. line-height: 1rem;
  271. a{
  272. color: $black;
  273. font-size: 1rem;
  274. font-weight: 900;
  275. font-style: italic;
  276. }
  277. }
  278. }
  279. .field--name-field-auteur-s-{
  280. grid-column: 2;
  281. margin-top: 0.5rem;
  282. font-weight: 800;
  283. line-height: 1.1rem;
  284. p{
  285. margin: 0;
  286. }
  287. .field__label{
  288. display:none;
  289. }
  290. }
  291. .field--name-field-sous-titre{
  292. grid-column: 2;
  293. margin-top: 0.5rem;
  294. }
  295. .field--name-field-edition{
  296. grid-column: 2;
  297. margin-top: 0.5rem;
  298. p{
  299. margin: 0;
  300. }
  301. .field__label{
  302. display:none;
  303. }
  304. }
  305. .field--name-field-images{
  306. grid-column: 1;
  307. // display: none;
  308. // width: 30%;
  309. // width: fit-content;
  310. // height: 100px;
  311. .field__item{
  312. height: 100px;
  313. }
  314. img{
  315. height: 100%;
  316. width: auto;
  317. // width: 100%;
  318. // height: auto;
  319. }
  320. }
  321. .field--name-field-date-de-parution{
  322. grid-column: 2;
  323. margin-top: 0.3rem;
  324. }
  325. .field--name-field-mots-clefs{
  326. grid-column: 2;
  327. display: flex;
  328. margin-top: 1rem;
  329. flex-direction: row;
  330. flex-wrap: wrap;
  331. .field__item{
  332. margin-right: 0.5rem;
  333. padding-left: 0.3rem;
  334. padding-right: 0.3rem;
  335. font-size: 0.7rem;
  336. a{
  337. background: $blue-dark;
  338. color: $white;
  339. font-weight: 800;
  340. vertical-align: super;
  341. padding-left: 0.1rem;
  342. padding-right: 0.1rem;
  343. display: inline-flex;
  344. pointer-events: none;
  345. cursor: default;
  346. }
  347. }
  348. }
  349. ul.links.inline{
  350. display: none;
  351. }
  352. }
  353. }
  354. }
  355. @media (max-width: 810px){
  356. flex-direction: column;
  357. .views-row{
  358. width: 100%;
  359. }
  360. }
  361. .slick-next::before{
  362. content:url("../images/pictos/fleche-droite-dans-rond.png");
  363. display: block;
  364. }
  365. .slick-prev::before{
  366. content:url("../images/pictos/fleche-droite-dans-rond.png");
  367. display: block;
  368. transform: scaleX(-1);
  369. display: none;
  370. }
  371. .slick-next {
  372. right: 10%;
  373. }
  374. }
  375. }
  376. .view-type-ressource-slide:has(.type-publication-issue-du-programme-eqld){
  377. background-color: $background-actus;
  378. }
  379. }
  380. }
  381. }
  382. }
  383. }
  384. }
  385. }
  386. }
  387. }
  388. }