ressources.scss 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  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. .form-item{
  121. padding: 0.5rem;
  122. align-self: center;
  123. }
  124. input, label{
  125. margin: 0.5rem;
  126. }
  127. select, input{
  128. padding: 0.3rem;
  129. }
  130. #edit-field-mots-clefs-target-id{
  131. @media (max-width: 479px){
  132. width: 75vw;
  133. }
  134. }
  135. #edit-actions{
  136. display: flex;
  137. flex-direction: column;
  138. justify-content: space-between;
  139. align-self: center;
  140. vertical-align: middle;
  141. #edit-submit-base-de-donnees{
  142. background-color: $blue-light;
  143. color: white;
  144. text-transform: uppercase;
  145. border: none;
  146. padding: 0.3rem 0.7rem;
  147. margin-left: 2rem;
  148. @media (max-width: 479px){
  149. margin-left: 0rem;
  150. margin-right: 2rem;
  151. margin-top: 1rem;
  152. }
  153. }
  154. #edit-reset{
  155. background-color: $blue-light;
  156. color: white;
  157. text-transform: uppercase;
  158. border: none;
  159. padding: 0.3rem 0.7rem;
  160. margin-top: 1rem;
  161. margin-left: 1rem;
  162. }
  163. }
  164. }
  165. }
  166. .view-content{
  167. width: 100%;
  168. display: flex;
  169. flex-direction: row;
  170. flex-wrap: wrap;
  171. .views-row{
  172. width: 25%;
  173. flex: 0 0 25%;
  174. .node-type-ressource{
  175. display: flex;
  176. flex-direction: column;
  177. border: 2px solid $blue-light;
  178. margin-left: 1rem;
  179. margin-bottom: 1rem ;
  180. padding: 1rem;
  181. &.type-de-ressource-Publication-issue-du-programme-EQLD{
  182. background-color: $background-actus;
  183. }
  184. @media (max-width: 479px) {
  185. margin-left: 0;
  186. }
  187. &:hover{
  188. background-color: $black15;
  189. }
  190. .field--name-field-type-de-ressource{
  191. text-transform: uppercase;
  192. line-height: 1.1rem;
  193. margin-top: 0.5rem;
  194. a{
  195. color: $blue-light;
  196. font-weight: 900;
  197. font-size: 0.8rem;
  198. pointer-events: none;
  199. cursor: default;
  200. }
  201. }
  202. .field--name-title{
  203. margin-top: 0.5rem;
  204. h2{
  205. margin: 0;
  206. line-height: 1rem;
  207. a{
  208. color: $black;
  209. font-size: 1rem;
  210. font-weight: 900;
  211. font-style: italic;
  212. }
  213. }
  214. }
  215. .field--name-field-auteur-s-{
  216. margin-top: 0.5rem;
  217. font-weight: 800;
  218. line-height: 1.1rem;
  219. p{
  220. margin: 0;
  221. }
  222. .field__label{
  223. display:none;
  224. }
  225. }
  226. .field--name-field-sous-titre{
  227. margin-top: 0.5rem;
  228. }
  229. .field--name-field-edition{
  230. margin-top: 0.5rem;
  231. p{
  232. margin: 0;
  233. }
  234. .field__label{
  235. display:none;
  236. }
  237. }
  238. .field--name-field-images{
  239. // display: none;
  240. // width: 30%;
  241. width: fit-content;
  242. border: 1px solid #a3a3a3;
  243. height: 100px;
  244. .field__item{
  245. height: 100px;
  246. }
  247. img{
  248. height: 100%;
  249. width: auto;
  250. // width: 100%;
  251. // height: auto;
  252. }
  253. }
  254. .field--name-field-date-de-parution{
  255. margin-top: 0.3rem;
  256. }
  257. .field--name-field-mots-clefs{
  258. display: flex;
  259. margin-top: 1rem;
  260. flex-direction: row;
  261. flex-wrap: wrap;
  262. .field__item{
  263. margin-right: 0.5rem;
  264. padding-left: 0.3rem;
  265. padding-right: 0.3rem;
  266. font-size: 0.7rem;
  267. a{
  268. background: $blue-dark;
  269. color: $white;
  270. font-weight: 800;
  271. vertical-align: super;
  272. padding-left: 0.1rem;
  273. padding-right: 0.1rem;
  274. display: inline-flex;
  275. pointer-events: none;
  276. cursor: default;
  277. }
  278. }
  279. }
  280. ul.links.inline{
  281. display: none;
  282. }
  283. }
  284. }
  285. @media (max-width: 810px){
  286. flex-direction: column;
  287. .views-row{
  288. width: 100%;
  289. }
  290. }
  291. }
  292. }
  293. }
  294. }
  295. }
  296. }
  297. }
  298. }
  299. }