_ressource.scss 16 KB

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