_ressource.scss 10 KB

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