_ressource.scss 22 KB

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