_ressource.scss 15 KB

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