_ressource.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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 100%;
  167. }
  168. .block-region-third{
  169. display: flex;
  170. flex-direction: column;
  171. width: 70%;
  172. .block-entity-fieldnodefield-fichiers{
  173. height: fit-content;
  174. border: 2px solid $blue-light;
  175. background-color: $white;
  176. }
  177. .field--name-field-fichiers{
  178. min-height: 4rem;
  179. background: $white;
  180. color: $blue-light;
  181. padding-left: 1rem;
  182. padding-top: 1rem;
  183. margin-bottom: 1rem;
  184. span:nth-of-type(2){
  185. display: none;
  186. }
  187. .file--mime-application-pdf{
  188. height: inherit;
  189. margin: auto;
  190. ::before{
  191. content: url("../images/pictos/noun_Download_file_307900.svg");
  192. min-width:50px;
  193. height: auto;
  194. padding-right: 1rem;
  195. }
  196. a{
  197. hyphens: auto;
  198. display: inline-flex;
  199. align-items: center;
  200. color: $blue-light;
  201. font-weight: 800;
  202. // max-width: 80px ;
  203. }
  204. }
  205. }
  206. .block-entity-fieldnodefield-liens{
  207. .field--name-field-liens{
  208. .field__item{
  209. margin: auto;
  210. height: fit-content;
  211. border: 2px solid $blue-light;
  212. min-height: 4rem;
  213. background: $white;
  214. color: $blue-light;
  215. padding-left: 1rem;
  216. padding-top: 1rem;
  217. margin-bottom: 1rem;
  218. }
  219. a{
  220. display: inline-flex;
  221. align-items: center;
  222. color: $blue-light;
  223. font-weight: 800;
  224. &::before{
  225. content: url("../images/pictos/noun_External Link_674151.svg");
  226. min-width: 50px;
  227. height: auto;
  228. padding-right: 1rem;
  229. }
  230. svg.ext{
  231. display: none;
  232. }
  233. }
  234. }
  235. }
  236. .block-entity-fieldnodefield-ress{
  237. margin-top: 3rem;
  238. .field--name-field-ress{
  239. .field__label{
  240. font-size: 0.8rem;
  241. color: $black;
  242. font-weight: 900;
  243. margin-bottom: 1rem;
  244. }
  245. .node-type-ressource{
  246. display: flex;
  247. flex-direction: column;
  248. border: 2px solid $blue-light;
  249. padding: 1rem;
  250. height: fit-content;
  251. margin-bottom: 1rem;
  252. background-color: $white;
  253. &:first-of-type{
  254. border-top: 1px solid $blue-light;
  255. padding-top: 1rem;
  256. &::after{
  257. content: url("../images/pictos/noun_Arrow_3771902.svg");
  258. align-self: flex-end;
  259. }
  260. }
  261. .field--name-title{
  262. h2{
  263. margin: 0;
  264. }
  265. a{
  266. color: $black;
  267. font-size: 1.4rem;
  268. font-weight: 600;
  269. }
  270. }
  271. .field--name-field-auteur-s-{
  272. font-weight: 800;
  273. p{
  274. margin: 0;
  275. }
  276. .field__label{
  277. display:none;
  278. }
  279. }
  280. .field--name-field-edition{
  281. p{
  282. margin: 0;
  283. }
  284. .field__label{
  285. display:none;
  286. }
  287. }
  288. .field--name-field-images{
  289. display: none;
  290. width: 50%;
  291. img{
  292. width: 100%;
  293. height: auto;
  294. }
  295. }
  296. .field--name-field-type-de-ressource{
  297. text-transform: uppercase;
  298. a{
  299. color: $blue-light;
  300. font-weight: 900;
  301. font-size: 0.8rem;
  302. }
  303. }
  304. .field--name-field-mots-clefs{
  305. display: flex;
  306. margin-top: 2rem;
  307. flex-direction: row;
  308. flex-wrap: wrap;
  309. // &::after{
  310. // content: url("../images/pictos/noun_Arrow_3771902.svg");
  311. // align-self: center;
  312. // }
  313. .field__item{
  314. margin-right: 1rem;
  315. padding-left: 0.3rem;
  316. padding-right: 0.3rem;
  317. a{
  318. background: $blue-dark;
  319. color: $white;
  320. font-weight: 800;
  321. vertical-align: super;
  322. padding-left: 0.1rem;
  323. padding-right: 0.1rem;
  324. display: inline-flex;
  325. }
  326. }
  327. }
  328. ul.links.inline{
  329. display: none;
  330. }
  331. }
  332. }
  333. }
  334. @media (max-width: 810px){
  335. margin: auto;
  336. }
  337. }
  338. }
  339. // }
  340. }