_ressource.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335
  1. .page-node-type-ressource{
  2. // #block-contenudelapageprincipale{
  3. .layout__region--top{
  4. .block-region-top{
  5. .block-block-content4e5df355-e76c-4e44-bec0-e211d94f2640{
  6. width: 100%;
  7. font-family: 'Source Code Pro';
  8. font-size: 1.5rem;
  9. font-weight: 800;
  10. color: $white;
  11. background-color: $blue-light;
  12. text-transform: uppercase;
  13. padding-left: 13%;
  14. padding-top: 1rem;
  15. padding-bottom: 0.5rem;
  16. vertical-align: middle;
  17. }
  18. .block-entity-fieldnodefield-type-de-ressource{
  19. margin-top: 2rem;
  20. margin-left: 13%;
  21. color: $blue-light;
  22. text-transform: uppercase;
  23. font-weight: 800;
  24. }
  25. .block-entity-fieldnodetitle{
  26. margin-left: 13%;
  27. font-size: 2rem;
  28. font-weight: 600;
  29. }
  30. .block-entity-fieldnodefield-edition{
  31. margin-left: 13%;
  32. .field--name-field-edition{
  33. p{
  34. margin-bottom: 0;
  35. }
  36. }
  37. }
  38. .block-entity-fieldnodefield-auteur-s-{
  39. margin-left: 13%;
  40. .field--name-field-auteur-s-{
  41. font-size: 1.5rem;
  42. font-weight: 800;
  43. p{
  44. margin: 0;
  45. }
  46. }
  47. }
  48. .block-entity-fieldnodefield-date-de-parution{
  49. margin-left: 13%;
  50. }
  51. .block-entity-fieldnodefield-mots-clefs{
  52. margin-left: 13%;
  53. .field--name-field-mots-clefs{
  54. display: inline-flex;
  55. margin-top: 2rem;
  56. // &::after{
  57. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  58. // align-self: end;
  59. // }
  60. .field__item{
  61. background: $blue-dark;
  62. margin-right: 1rem;
  63. padding-left: 0.3rem;
  64. padding-right: 0.3rem;
  65. color: $white;
  66. font-weight: 800;
  67. vertical-align: middle;
  68. }
  69. }
  70. }
  71. }
  72. }
  73. .layout__region--first{ // menu ancres a gauche
  74. margin-top: 3rem;
  75. position: relative;
  76. .block-region-first{
  77. display: flex;
  78. justify-content: flex-end;
  79. position: sticky;
  80. top: 7rem;
  81. .block-entity-fieldnodefield-textes{
  82. display: flex;
  83. width: 50%;
  84. background-color: $white;
  85. padding-right: 2rem;
  86. .field--name-field-titre{
  87. display: flex;
  88. font-size: 1rem;
  89. font-weight: 1000;
  90. color: $blue-dark;
  91. border-bottom: 1px solid $blue-light;
  92. padding-bottom: 0.5rem;
  93. padding-right: 1rem;
  94. &:hover{
  95. text-decoration: underline;
  96. }
  97. }
  98. }
  99. }
  100. }
  101. .layout__region--second{ // paragraphe texte
  102. margin-top: 3rem;
  103. .block-entity-fieldnodefield-textes{
  104. background-color: $white;
  105. .field--name-field-titre{
  106. font-size: 1.5rem;
  107. font-weight: 1000;
  108. font-family: 'Source Code Pro';
  109. color: $blue-dark;
  110. text-transform: uppercase;
  111. }
  112. h4{
  113. text-transform: none !important;
  114. img{
  115. width: 100%;
  116. height: auto;
  117. }
  118. }
  119. .field--type-text-long{
  120. padding-right: 2rem;
  121. }
  122. p{
  123. margin-top: 0;
  124. }
  125. }
  126. }
  127. .layout__region--third{ // colone de droite fichiers et ressources liées
  128. margin-top: 3rem;
  129. .block-region-third{
  130. display: flex;
  131. flex-direction: column;
  132. width: 70%;
  133. .block-entity-fieldnodefield-fichiers{
  134. height: fit-content;
  135. border: 2px solid $blue-light;
  136. background-color: $white;
  137. }
  138. .field--name-field-fichiers{
  139. min-height: 4rem;
  140. background: $white;
  141. color: $blue-light;
  142. padding-left: 1rem;
  143. padding-top: 1rem;
  144. margin-bottom: 1rem;
  145. span:nth-of-type(2){
  146. display: none;
  147. }
  148. .file--mime-application-pdf{
  149. height: inherit;
  150. margin: auto;
  151. ::before{
  152. content: url("../images/pictos/noun_Download_file_307900.svg");
  153. min-width:50px;
  154. height: auto;
  155. padding-right: 1rem;
  156. }
  157. a{
  158. hyphens: auto;
  159. display: inline-flex;
  160. align-items: center;
  161. color: $blue-light;
  162. font-weight: 800;
  163. // max-width: 80px ;
  164. }
  165. }
  166. }
  167. .block-entity-fieldnodefield-liens{
  168. .field--name-field-liens{
  169. .field__item{
  170. margin: auto;
  171. height: fit-content;
  172. border: 2px solid $blue-light;
  173. min-height: 4rem;
  174. background: $white;
  175. color: $blue-light;
  176. padding-left: 1rem;
  177. padding-top: 1rem;
  178. margin-bottom: 1rem;
  179. }
  180. a{
  181. display: inline-flex;
  182. align-items: center;
  183. color: $blue-light;
  184. font-weight: 800;
  185. &::before{
  186. content: url("../images/pictos/noun_External Link_674151.svg");
  187. min-width: 50px;
  188. height: auto;
  189. padding-right: 1rem;
  190. }
  191. svg.ext{
  192. display: none;
  193. }
  194. }
  195. }
  196. }
  197. .block-entity-fieldnodefield-ress{
  198. margin-top: 3rem;
  199. .field--name-field-ress{
  200. .field__label{
  201. font-size: 0.8rem;
  202. color: $black;
  203. font-weight: 900;
  204. margin-bottom: 1rem;
  205. }
  206. .node-type-ressource{
  207. display: flex;
  208. flex-direction: column;
  209. border: 2px solid $blue-light;
  210. padding: 1rem;
  211. height: fit-content;
  212. margin-bottom: 1rem;
  213. background-color: $white;
  214. &:first-of-type{
  215. border-top: 1px solid $blue-light;
  216. padding-top: 1rem;
  217. &::after{
  218. content: url("../images/pictos/noun_Arrow_3771902.svg");
  219. align-self: flex-end;
  220. }
  221. }
  222. .field--name-title{
  223. h2{
  224. margin: 0;
  225. }
  226. a{
  227. color: $black;
  228. font-size: 1.4rem;
  229. font-weight: 600;
  230. }
  231. }
  232. .field--name-field-auteur-s-{
  233. font-weight: 800;
  234. p{
  235. margin: 0;
  236. }
  237. .field__label{
  238. display:none;
  239. }
  240. }
  241. .field--name-field-edition{
  242. p{
  243. margin: 0;
  244. }
  245. .field__label{
  246. display:none;
  247. }
  248. }
  249. .field--name-field-images{
  250. display: none;
  251. width: 50%;
  252. img{
  253. width: 100%;
  254. height: auto;
  255. }
  256. }
  257. .field--name-field-type-de-ressource{
  258. text-transform: uppercase;
  259. a{
  260. color: $blue-light;
  261. font-weight: 900;
  262. font-size: 0.8rem;
  263. }
  264. }
  265. .field--name-field-mots-clefs{
  266. display: flex;
  267. margin-top: 2rem;
  268. flex-direction: row;
  269. flex-wrap: wrap;
  270. // &::after{
  271. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  272. // align-self: center;
  273. // }
  274. .field__item{
  275. margin-right: 1rem;
  276. padding-left: 0.3rem;
  277. padding-right: 0.3rem;
  278. a{
  279. background: $blue-dark;
  280. color: $white;
  281. font-weight: 800;
  282. vertical-align: super;
  283. padding-left: 0.1rem;
  284. padding-right: 0.1rem;
  285. display: inline-flex;
  286. }
  287. }
  288. }
  289. ul.links.inline{
  290. display: none;
  291. }
  292. }
  293. }
  294. }
  295. }
  296. }
  297. // }
  298. }