_ressource.scss 21 KB

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