_ressource.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  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: 3rem;
  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. .field--name-field-edition{
  103. p{
  104. margin-bottom: 0;
  105. }
  106. }
  107. }
  108. .block-entity-fieldnodefield-edition{
  109. .field--name-field-edition{
  110. p{
  111. margin-bottom: 0;
  112. }
  113. }
  114. }
  115. .block-entity-fieldnodefield-auteur-s-{
  116. .field--name-field-auteur-s-{
  117. font-size: 1.5rem;
  118. font-weight: 800;
  119. line-height: 0.8;
  120. p{
  121. margin: 0;
  122. }
  123. }
  124. }
  125. .block-entity-fieldnodefield-date-de-parution{
  126. }
  127. .block-entity-fieldnodefield-mots-clefs{
  128. .field--name-field-mots-clefs{
  129. display: inline-flex;
  130. margin-top: 0.5rem;
  131. .field__item{
  132. background: $blue-dark;
  133. margin-right: 1rem;
  134. padding-left: 0.3rem;
  135. padding-right: 0.3rem;
  136. color: $white;
  137. font-weight: 800;
  138. vertical-align: middle;
  139. }
  140. }
  141. @media (max-width: 810px){
  142. .field--name-field-mots-clefs{
  143. display: flex;
  144. flex-direction: row;
  145. flex-wrap: wrap;
  146. .field__item{
  147. margin-bottom: 0.5rem;
  148. }
  149. }
  150. }
  151. }
  152. }
  153. .block-region-top:has(.type-de-media-video)
  154. .block-region-top:has(.type-de-media-video){
  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: 13rem;
  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. padding: 1rem;
  259. span:nth-of-type(2){
  260. display: none;
  261. }
  262. .file--mime-application-pdf{
  263. height: inherit;
  264. margin: auto;
  265. width: fit-content;
  266. ::before{
  267. content: url("../images/pictos/download.png");
  268. min-width:30px;
  269. height: auto;
  270. padding-right: 1rem;
  271. margin-right: 1rem;
  272. }
  273. a{
  274. hyphens: auto;
  275. display: inline-flex;
  276. align-items: center;
  277. color: $blue-light;
  278. font-weight: 800;
  279. // max-width: 80px ;
  280. }
  281. }
  282. }
  283. .block-entity-fieldnodefield-liens{
  284. order: 3;
  285. .field--name-field-liens{
  286. .field__item{
  287. margin: auto;
  288. height: fit-content;
  289. border: 2px solid $blue-light;
  290. min-height: 4rem;
  291. background: $white;
  292. color: $blue-light;
  293. padding-left: 1rem;
  294. padding-top: 1rem;
  295. margin-bottom: 1rem;
  296. padding: 1rem;
  297. }
  298. a{
  299. display: inline-flex;
  300. align-items: center;
  301. color: $blue-light;
  302. font-weight: 800;
  303. &::before{
  304. content: url("../images/pictos/external_link.png");
  305. min-width: 30px;
  306. height: auto;
  307. padding-right: 1rem;
  308. margin-right: 1rem;
  309. }
  310. svg.ext{
  311. display: none;
  312. }
  313. }
  314. }
  315. }
  316. .block-entity-fieldnodefield-ress{
  317. order: 4;
  318. margin-top: 3rem;
  319. .field--name-field-ress{
  320. .field__label{
  321. font-size: 0.8rem;
  322. color: $black;
  323. font-weight: 900;
  324. margin-bottom: 1rem;
  325. }
  326. .node-type-ressource{
  327. border: 2px solid $blue-light;
  328. padding: 1rem;
  329. height: fit-content;
  330. margin-bottom: 1rem;
  331. background-color: $white;
  332. display: flex;
  333. flex-direction: column;
  334. div{
  335. display: flex;
  336. flex-direction: column;
  337. .field--name-field-type-de-ressource{
  338. order: 2;
  339. text-transform: uppercase;
  340. color: $blue-light;
  341. font-weight: 900;
  342. font-size: 0.8rem;
  343. }
  344. .field--name-title{
  345. order: 3;
  346. h2{
  347. margin: 0;
  348. a{
  349. color: $black;
  350. font-size: 1rem;
  351. font-weight: 900;
  352. font-style: italic;
  353. }
  354. }
  355. }
  356. .field--name-field-sous-titre{
  357. order:4;
  358. }
  359. .field--name-field-auteur-s-{
  360. order: 5;
  361. font-weight: 800;
  362. p{
  363. margin: 0;
  364. }
  365. .field__label{
  366. display:none;
  367. }
  368. }
  369. .field--name-field-edition{
  370. p{
  371. margin: 0;
  372. }
  373. .field__label{
  374. display:none;
  375. }
  376. }
  377. .field--name-field-images{
  378. // display: none;
  379. order: 1;
  380. width: 25%;
  381. img{
  382. width: 100%;
  383. height: auto;
  384. }
  385. }
  386. .field--name-field-date-de-parution{
  387. order: 6;
  388. .field__label{
  389. display: none;
  390. }
  391. }
  392. .field--name-field-mots-clefs{
  393. order: 7;
  394. display: flex;
  395. margin-top: 0.8rem;
  396. flex-direction: row;
  397. flex-wrap: wrap;
  398. .field__label{
  399. display: none;
  400. }
  401. .field__items{
  402. display: flex;
  403. flex-direction: row;
  404. flex-wrap: wrap;
  405. }
  406. .field__item{
  407. padding-bottom: 0.5rem;
  408. margin-right: 0.5rem;
  409. padding-right: 0.3rem;
  410. font-size: 0.8rem;
  411. a{
  412. background: $blue-dark;
  413. color: $white;
  414. font-weight: 800;
  415. vertical-align: super;
  416. padding-left: 0.1rem;
  417. padding-right: 0.1rem;
  418. display: inline-flex;
  419. pointer-events: none !important;
  420. cursor: default;
  421. }
  422. }
  423. }
  424. ul.links.inline{
  425. display: none;
  426. }
  427. }
  428. }
  429. }
  430. }
  431. .block-entity-fieldnodefield-projets-liee{
  432. order: 1;
  433. margin-top: 3rem;
  434. @media(max-width:479px){
  435. margin-top: 2rem;
  436. }
  437. h2{
  438. display: none;
  439. font-size: 0.8rem;
  440. color: $black;
  441. font-weight: 900;
  442. }
  443. .field--name-field-projets-liee{
  444. display: flex;
  445. flex-direction: column;
  446. border-bottom: 1px solid $black;
  447. padding: 1rem;
  448. height: fit-content;
  449. margin-bottom: 3rem;
  450. background-color: $white;
  451. .field__label{ display: none;}
  452. .field__items{
  453. :before{
  454. content: url("../images/pictos/picto_lieu_blue.svg");
  455. display: inline-block;
  456. color: $blue-dark;
  457. margin-right: 1rem;
  458. }
  459. }
  460. .field__item{
  461. display: flex;
  462. flex-direction: row;
  463. :before{
  464. content: 'Voir le projet';
  465. display: block;
  466. color: $blue-dark;
  467. }
  468. a{
  469. color: $blue-dark;
  470. font-size: 1rem;
  471. font-weight: 900;
  472. // font-style: italic;
  473. }
  474. }
  475. }
  476. }
  477. }
  478. }
  479. // }
  480. }