_ressource.scss 18 KB

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