_ressource.scss 21 KB

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