_ressource.scss 15 KB

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