_ressource.scss 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  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. @media (max-width: 810px){
  113. display: none;
  114. }
  115. .block-region-first{
  116. display: flex;
  117. justify-content: flex-end;
  118. position: sticky;
  119. top: 7rem;
  120. .block-entity-fieldnodefield-textes{
  121. display: flex;
  122. width: 50%;
  123. background-color: $white;
  124. padding-right: 2rem;
  125. .field--name-field-titre{
  126. display: flex;
  127. font-size: 1rem;
  128. font-weight: 1000;
  129. color: $blue-dark;
  130. border-bottom: 1px solid $blue-light;
  131. padding-bottom: 0.5rem;
  132. padding-right: 1rem;
  133. &:hover{
  134. text-decoration: underline;
  135. }
  136. }
  137. }
  138. }
  139. }
  140. .layout__region--second{ // paragraphe texte
  141. margin-top: 3rem;
  142. .block-entity-fieldnodefield-textes{
  143. background-color: $white;
  144. .field--name-field-titre{
  145. font-size: 1.5rem;
  146. font-weight: 1000;
  147. font-family: 'Source Code Pro';
  148. color: $blue-dark;
  149. text-transform: uppercase;
  150. }
  151. h4{
  152. text-transform: none !important;
  153. img{
  154. width: 100%;
  155. height: auto;
  156. }
  157. }
  158. .field--type-text-long{
  159. padding-right: 2rem;
  160. }
  161. p{
  162. margin-top: 0;
  163. }
  164. }
  165. @media (max-width: 810px){
  166. flex: 0 1 80%;
  167. margin: auto;
  168. }
  169. }
  170. .layout__region--third{ // colone de droite fichiers et ressources liées
  171. margin-top: 3rem;
  172. @media (max-width: 810px){
  173. flex: 0 1 80%;
  174. margin-left: 10%;
  175. }
  176. .block-region-third{
  177. display: flex;
  178. flex-direction: column;
  179. width: 70%;
  180. @media (max-width: 810px){
  181. width: 100%;
  182. }
  183. .block-entity-fieldnodefield-fichiers{
  184. height: fit-content;
  185. border: 2px solid $blue-light;
  186. background-color: $white;
  187. }
  188. .field--name-field-fichiers{
  189. min-height: 4rem;
  190. background: $white;
  191. color: $blue-light;
  192. padding-left: 1rem;
  193. padding-top: 1rem;
  194. margin-bottom: 1rem;
  195. span:nth-of-type(2){
  196. display: none;
  197. }
  198. .file--mime-application-pdf{
  199. height: inherit;
  200. margin: auto;
  201. ::before{
  202. content: url("../images/pictos/noun_Download_file_307900.svg");
  203. min-width:30px;
  204. height: auto;
  205. padding-right: 1rem;
  206. }
  207. a{
  208. hyphens: auto;
  209. display: inline-flex;
  210. align-items: center;
  211. color: $blue-light;
  212. font-weight: 800;
  213. // max-width: 80px ;
  214. }
  215. }
  216. }
  217. .block-entity-fieldnodefield-liens{
  218. .field--name-field-liens{
  219. .field__item{
  220. margin: auto;
  221. height: fit-content;
  222. border: 2px solid $blue-light;
  223. min-height: 4rem;
  224. background: $white;
  225. color: $blue-light;
  226. padding-left: 1rem;
  227. padding-top: 1rem;
  228. margin-bottom: 1rem;
  229. }
  230. a{
  231. display: inline-flex;
  232. align-items: center;
  233. color: $blue-light;
  234. font-weight: 800;
  235. &::before{
  236. content: url("../images/pictos/noun_External Link_674151.svg");
  237. min-width: 30px;
  238. height: auto;
  239. padding-right: 1rem;
  240. }
  241. svg.ext{
  242. display: none;
  243. }
  244. }
  245. }
  246. }
  247. .block-entity-fieldnodefield-ress{
  248. margin-top: 3rem;
  249. .field--name-field-ress{
  250. .field__label{
  251. font-size: 0.8rem;
  252. color: $black;
  253. font-weight: 900;
  254. margin-bottom: 1rem;
  255. }
  256. .node-type-ressource{
  257. border: 2px solid $blue-light;
  258. padding: 1rem;
  259. height: fit-content;
  260. margin-bottom: 1rem;
  261. background-color: $white;
  262. display: flex;
  263. flex-direction: column;
  264. div{
  265. display: flex;
  266. flex-direction: column;
  267. .field--name-field-type-de-ressource{
  268. order: 2;
  269. text-transform: uppercase;
  270. color: $blue-light;
  271. font-weight: 900;
  272. font-size: 0.8rem;
  273. }
  274. .field--name-title{
  275. order: 3;
  276. h2{
  277. margin: 0;
  278. a{
  279. color: $black;
  280. font-size: 1rem;
  281. font-weight: 900;
  282. font-style: italic;
  283. }
  284. }
  285. }
  286. .field--name-field-sous-titre{
  287. order:4;
  288. }
  289. .field--name-field-auteur-s-{
  290. order: 5;
  291. font-weight: 800;
  292. p{
  293. margin: 0;
  294. }
  295. .field__label{
  296. display:none;
  297. }
  298. }
  299. .field--name-field-edition{
  300. p{
  301. margin: 0;
  302. }
  303. .field__label{
  304. display:none;
  305. }
  306. }
  307. .field--name-field-images{
  308. // display: none;
  309. order: 1;
  310. width: 25%;
  311. img{
  312. width: 100%;
  313. height: auto;
  314. }
  315. }
  316. .field--name-field-date-de-parution{
  317. order: 6;
  318. .field__label{
  319. display: none;
  320. }
  321. }
  322. .field--name-field-mots-clefs{
  323. order: 7;
  324. display: flex;
  325. margin-top: 0.8rem;
  326. flex-direction: row;
  327. flex-wrap: wrap;
  328. .field__label{
  329. display: none;
  330. }
  331. .field__items{
  332. display: flex;
  333. flex-direction: row;
  334. flex-wrap: wrap;
  335. }
  336. .field__item{
  337. padding-bottom: 0.5rem;
  338. margin-right: 0.5rem;
  339. padding-right: 0.3rem;
  340. font-size: 0.8rem;
  341. a{
  342. background: $blue-dark;
  343. color: $white;
  344. font-weight: 800;
  345. vertical-align: super;
  346. padding-left: 0.1rem;
  347. padding-right: 0.1rem;
  348. display: inline-flex;
  349. pointer-events: none;
  350. cursor: default;
  351. }
  352. }
  353. }
  354. ul.links.inline{
  355. display: none;
  356. }
  357. }
  358. }
  359. }
  360. }
  361. }
  362. }
  363. // }
  364. }