_ressource.scss 15 KB

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