_ressources.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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. // texte présentation
  14. .block-config-pages-block{
  15. grid-column: 1 / span 4;
  16. margin-left: 1rem;
  17. .config_pages--base-de-donnees--full{
  18. // .field--name-field-introduction{
  19. grid-column: 1 / span 5;
  20. // margin: 2rem;
  21. .field--name-field-introduction{
  22. // width: 65%;
  23. margin: auto;
  24. background: $white;
  25. margin-top:5rem;
  26. }
  27. @media (max-width: 810px){
  28. padding: 2rem;
  29. margin-top:1rem;
  30. }
  31. // }
  32. }
  33. }
  34. //button proposer une ressource
  35. .block-block-content82917d0c-5004-4bfb-af66-ce334782d82d{
  36. // visibility: hidden;
  37. grid-column: 6 / span 5;
  38. grid-row: 1;
  39. margin-top: 4rem;
  40. // margin-right: 1rem;
  41. // padding-right: 1rem;
  42. background-color: $blue-light;
  43. height: fit-content;
  44. width: 100%;
  45. // margin-left: 2rem;
  46. // grid-row: 1;
  47. .display{
  48. display: block;
  49. }
  50. .field--name-field-lien{
  51. display: flex;
  52. flex-direction: column;
  53. margin-top: 2rem;
  54. margin-bottom: 2rem;
  55. margin-left: 1.5rem;
  56. margin-right: 1.5rem;
  57. text-align: center;
  58. a{
  59. font-weight: 800;
  60. color: $white;
  61. font-size: 1.3rem;
  62. }
  63. &:after{
  64. margin-left: auto;
  65. padding-top: 1rem;
  66. display: block;
  67. content:url("../images/pictos/noun_Arrow_3771902.svg")
  68. }
  69. }
  70. @media (max-width: 810px){
  71. margin: auto;
  72. }
  73. }
  74. // grille des ressources
  75. .block-views-blockbase-de-donnees-block-1{
  76. margin-top: 2rem;
  77. width: 100%;
  78. grid-column: 1 / span 6;
  79. .view-filters{
  80. display: flex;
  81. flex-direction: row;
  82. flex-wrap: wrap;
  83. background-color: $white;
  84. margin-top: 2rem;
  85. margin-left: 1rem;
  86. margin-bottom: 5rem;
  87. &::before{
  88. content: "Filtrer par : ";
  89. padding-right: 1rem;
  90. @media (max-width: 479px){
  91. padding-bottom: 1rem;
  92. }
  93. }
  94. #views-exposed-form-base-de-donnees-block-1{
  95. width: fit-content;
  96. display: flex;
  97. flex-direction: row;
  98. // .js-form-item.form-item.js-form-type-select.form-item-field-type-de-ressource-target-id.js-form-item-field-type-de-ressource-target-id{
  99. // width: fit-content;
  100. // padding-right: 1rem;
  101. // padding-left: 1rem;
  102. // }
  103. // .form-item{
  104. // width: fit-content;
  105. // }
  106. // .form-item-field-type-de-ressource-target-id{
  107. // width: fit-content;
  108. // }
  109. #edit-actions{
  110. display: flex;
  111. flex-direction: column;
  112. justify-content: space-between;
  113. #edit-submit-base-de-donnees{
  114. background-color: $blue-light;
  115. color: white;
  116. text-transform: uppercase;
  117. border: none;
  118. padding: 0.1rem 0.7rem;
  119. margin-left: 2rem;
  120. @media (max-width: 479px){
  121. margin-left: 0rem;
  122. margin-right: 2rem;
  123. }
  124. }
  125. #edit-reset{
  126. background-color: $blue-light;
  127. color: white;
  128. text-transform: uppercase;
  129. border: none;
  130. padding: 0.1rem 0.7rem;
  131. margin-top: 1rem;
  132. margin-left: 1rem;
  133. }
  134. }
  135. }
  136. }
  137. .view-content{
  138. width: 100%;
  139. display: flex;
  140. flex-direction: row;
  141. flex-wrap: wrap;
  142. // justify-content: space-between;
  143. .views-row{
  144. width: 25%;
  145. flex: 0 0 25%;
  146. // padding: 0.5rem;
  147. // background-color: $white;
  148. // margin-bottom: 1rem;
  149. .node-type-ressource{
  150. display: flex;
  151. flex-direction: column;
  152. border: 2px solid $blue-light;
  153. margin-left: 1rem;
  154. margin-bottom: 1rem ;
  155. padding: 1rem;
  156. &:hover{
  157. background-color: $background-actus;
  158. }
  159. .field--name-field-type-de-ressource{
  160. text-transform: uppercase;
  161. a{
  162. color: $blue-light;
  163. font-weight: 900;
  164. font-size: 0.8rem;
  165. }
  166. }
  167. .field--name-title{
  168. h2{
  169. margin: 0;
  170. a{
  171. color: $black;
  172. font-size: 1rem;
  173. font-weight: 900;
  174. font-style: italic;
  175. }
  176. }
  177. }
  178. .field--name-field-auteur-s-{
  179. font-weight: 800;
  180. p{
  181. margin: 0;
  182. }
  183. .field__label{
  184. display:none;
  185. }
  186. }
  187. .field--name-field-edition{
  188. p{
  189. margin: 0;
  190. }
  191. .field__label{
  192. display:none;
  193. }
  194. }
  195. .field--name-field-images{
  196. // display: none;
  197. // width: 30%;
  198. height: 100px;
  199. .field__item{
  200. height: 100px;
  201. }
  202. img{
  203. height: 100%;
  204. width: auto;
  205. // width: 100%;
  206. // height: auto;
  207. }
  208. }
  209. .field--name-field-mots-clefs{
  210. display: flex;
  211. margin-top: 2rem;
  212. flex-direction: row;
  213. flex-wrap: wrap;
  214. .field__item{
  215. margin-right: 0.5rem;
  216. padding-left: 0.3rem;
  217. padding-right: 0.3rem;
  218. font-size: 0.8rem;
  219. a{
  220. background: $blue-dark;
  221. color: $white;
  222. font-weight: 800;
  223. vertical-align: super;
  224. padding-left: 0.1rem;
  225. padding-right: 0.1rem;
  226. display: inline-flex;
  227. }
  228. }
  229. }
  230. ul.links.inline{
  231. display: none;
  232. }
  233. }
  234. }
  235. @media (max-width: 810px){
  236. flex-direction: column;
  237. .views-row{
  238. width: 100%;
  239. }
  240. }
  241. }
  242. }
  243. }
  244. }
  245. }
  246. }
  247. }
  248. }
  249. }