ressources.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. .path-ressources{
  2. .layout-content{
  3. width: 100vw;
  4. .region-content{
  5. width: 80%;
  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. @media (max-width: 479px){
  14. display: flex;
  15. flex-direction: column;
  16. }
  17. // texte présentation
  18. .block-config-pages-block{
  19. grid-column: 1 / span 4;
  20. margin-left: 1rem;
  21. @media (max-width:479px) {
  22. order: 1;
  23. margin-left: 0;
  24. }
  25. .config_pages--base-de-donnees--full{
  26. grid-column: 1 / span 5;
  27. @media (max-width: 810px){
  28. padding: 2rem;
  29. margin-top:1rem;
  30. }
  31. @media (max-width: 479px){
  32. padding-left: 0;
  33. padding-right: 0;
  34. }
  35. .field--name-field-introduction{
  36. margin: auto;
  37. background: $white;
  38. margin-top:5rem;
  39. @media (max-width: 479px){
  40. margin-top:1rem;
  41. }
  42. }
  43. }
  44. }
  45. //button proposer une ressource
  46. .block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
  47. // visibility: hidden;
  48. grid-column: 6 / span 5;
  49. grid-row: 1;
  50. margin-top: 4rem;
  51. background-color: $blue-light;
  52. height: fit-content;
  53. width: 100%;
  54. @media (max-width: 810px){
  55. grid-column: 5 / span 5;
  56. }
  57. @media (max-width: 479px){
  58. grid-column: 5 / span 5;
  59. order: 2;
  60. }
  61. .display{
  62. display: block;
  63. }
  64. .field--name-field-lien{
  65. display: flex;
  66. flex-direction: column;
  67. margin-top: 2rem;
  68. margin-bottom: 2rem;
  69. margin-left: 1.5rem;
  70. margin-right: 1.5rem;
  71. text-align: center;
  72. a{
  73. font-weight: 800;
  74. color: $white;
  75. font-size: 1.3rem;
  76. }
  77. &:after{
  78. margin-left: auto;
  79. padding-top: 1rem;
  80. display: block;
  81. content:url("../images/pictos/noun_Arrow_3771902.svg")
  82. }
  83. }
  84. @media (max-width: 810px){
  85. margin: auto;
  86. }
  87. }
  88. // grille des ressources
  89. .block-views-blockbase-de-donnees-block-1{
  90. margin-top: 2rem;
  91. width: 100%;
  92. grid-column: 1 / span 6;
  93. @media (max-width:479px) {
  94. order: 3;
  95. }
  96. .view-filters{
  97. display: flex;
  98. flex-direction: row;
  99. flex-wrap: wrap;
  100. background-color: $white;
  101. margin-top: 2rem;
  102. margin-left: 1rem;
  103. margin-bottom: 5rem;
  104. @media (max-width: 479px) {
  105. margin-left: 0;
  106. }
  107. &::before{
  108. content: "Filtrer par : ";
  109. padding-right: 1rem;
  110. @media (max-width: 479px){
  111. padding-bottom: 1rem;
  112. }
  113. }
  114. #views-exposed-form-base-de-donnees-block-1{
  115. width: fit-content;
  116. display: flex;
  117. flex-direction: row;
  118. flex-wrap: wrap;
  119. margin-top: 1rem;
  120. @media (max-width: 479px){
  121. justify-content: center;
  122. }
  123. .form-item{
  124. padding: 0.5rem;
  125. align-self: center;
  126. }
  127. input, label{
  128. margin: 0.5rem;
  129. }
  130. select, input{
  131. padding: 0.3rem;
  132. margin:0.5rem;
  133. }
  134. #edit-field-mots-clefs-target-id{
  135. @media (max-width: 479px){
  136. width: 75vw;
  137. }
  138. }
  139. #edit-actions{
  140. display: flex;
  141. flex-direction: column;
  142. justify-content: space-between;
  143. align-self: center;
  144. margin-left: auto;
  145. @media (max-width: 479px){
  146. justify-content: center;
  147. margin: auto;
  148. }
  149. #edit-submit-base-de-donnees{
  150. background-color: $blue-light;
  151. color: white;
  152. text-transform: uppercase;
  153. border: none;
  154. padding: 0.3rem 0.7rem;
  155. margin-left: 2rem;
  156. @media (max-width: 479px){
  157. margin: auto;
  158. margin-top: 1rem;
  159. }
  160. }
  161. #edit-reset{
  162. background-color: $blue-light;
  163. color: white;
  164. text-transform: uppercase;
  165. border: none;
  166. padding: 0.3rem 0.7rem;
  167. margin-top: 1rem;
  168. margin-left: 1rem;
  169. @media (max-width: 479px){
  170. margin: auto;
  171. margin-top: 1rem;
  172. }
  173. }
  174. }
  175. }
  176. }
  177. .view-content{
  178. width: 100%;
  179. display: flex;
  180. flex-direction: row;
  181. flex-wrap: wrap;
  182. .views-row{
  183. width: 25%;
  184. flex: 0 0 25%;
  185. .node-type-ressource{
  186. display: flex;
  187. flex-direction: column;
  188. border: 2px solid $blue-light;
  189. margin-left: 1rem;
  190. margin-bottom: 1rem ;
  191. padding: 1rem;
  192. .ext{
  193. color: black;
  194. }
  195. svg.ext{
  196. display: none;
  197. }
  198. &.type-de-ressource-Publication-issue-du-programme-EQLD{
  199. background-color: $background-actus;
  200. }
  201. &.type-de-ressource-Paroles-de-lauréats{
  202. background-color: $background-actus;
  203. }
  204. @media (max-width: 479px) {
  205. margin-left: 0;
  206. }
  207. &:hover{
  208. background-color: $black15;
  209. }
  210. .field--name-field-type-de-ressource{
  211. text-transform: uppercase;
  212. line-height: 1.1rem;
  213. margin-top: 0.5rem;
  214. a{
  215. color: $blue-light;
  216. font-weight: 900;
  217. font-size: 0.8rem;
  218. pointer-events: none;
  219. cursor: default;
  220. }
  221. }
  222. .field--name-title{
  223. margin-top: 0.5rem;
  224. h2{
  225. margin: 0;
  226. line-height: 1rem;
  227. a{
  228. color: $black;
  229. font-size: 1rem;
  230. font-weight: 900;
  231. font-style: italic;
  232. }
  233. }
  234. }
  235. .field--name-field-auteur-s-{
  236. margin-top: 0.5rem;
  237. font-weight: 800;
  238. line-height: 1.1rem;
  239. p{
  240. margin: 0;
  241. }
  242. .field__label{
  243. display:none;
  244. }
  245. }
  246. .field--name-field-sous-titre{
  247. margin-top: 0.5rem;
  248. }
  249. .field--name-field-edition{
  250. margin-top: 0.5rem;
  251. p{
  252. margin: 0;
  253. }
  254. .field__label{
  255. display:none;
  256. }
  257. }
  258. .field--name-field-images{
  259. // display: none;
  260. // width: 30%;
  261. width: fit-content;
  262. border: 1px solid #a3a3a3;
  263. height: 100px;
  264. .field__item{
  265. height: 100px;
  266. }
  267. img{
  268. height: 100%;
  269. width: auto;
  270. // width: 100%;
  271. // height: auto;
  272. }
  273. }
  274. .field--name-field-date-de-parution{
  275. margin-top: 0.3rem;
  276. }
  277. .field--name-field-mots-clefs{
  278. display: flex;
  279. margin-top: 1rem;
  280. flex-direction: row;
  281. flex-wrap: wrap;
  282. .field__item{
  283. margin-right: 0.5rem;
  284. padding-left: 0.3rem;
  285. padding-right: 0.3rem;
  286. font-size: 0.7rem;
  287. a{
  288. background: $blue-dark;
  289. color: $white;
  290. font-weight: 800;
  291. vertical-align: super;
  292. padding-left: 0.1rem;
  293. padding-right: 0.1rem;
  294. display: inline-flex;
  295. pointer-events: none;
  296. cursor: default;
  297. }
  298. }
  299. }
  300. ul.links.inline{
  301. display: none;
  302. }
  303. }
  304. }
  305. @media (max-width: 810px){
  306. flex-direction: column;
  307. .views-row{
  308. width: 100%;
  309. }
  310. }
  311. }
  312. }
  313. }
  314. }
  315. }
  316. }
  317. }
  318. }
  319. }