_ressource.scss 20 KB

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