_ressource.scss 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  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. }
  14. .block-region-top{
  15. display: flex;
  16. flex-direction: column;
  17. @media screen and (min-width:1100px) {
  18. display: grid;
  19. grid-template-columns: 1fr 2fr; /* 1/3 pour l'image, 2/3 pour le contenu */
  20. gap: 0.5rem;
  21. }
  22. .block-entity-fieldnodefield-images {
  23. width: fit-content;
  24. padding-left: 25%;
  25. @media (min-width: 1100px) {
  26. grid-column: 1;
  27. grid-row: 1 / span 7;
  28. align-self: start;
  29. justify-self: end;
  30. margin-left: 2rem;
  31. }
  32. @media (max-width: 1100px) {
  33. padding-left: 13%;
  34. }
  35. @media (max-width: 550px) {
  36. width: 100vw;
  37. padding: 0;
  38. }
  39. img{
  40. border: solid 1px gray;
  41. }
  42. }
  43. .block-block-content4e5df355-e76c-4e44-bec0-e211d94f2640,
  44. .block-entity-fieldnodefield-type-de-ressource,
  45. .block-entity-fieldnodetitle,
  46. .block-entity-fieldnodefield-sous-titre,
  47. .block-entity-fieldnodefield-edition,
  48. .block-entity-fieldnodefield-auteur-s-,
  49. .block-entity-fieldnodefield-date-de-parution,
  50. .block-entity-fieldnodefield-mots-clefs {
  51. width: 100%;
  52. margin-left: 13%;
  53. @media (max-width: 1099px) {
  54. width: auto;
  55. margin-right: 15%;
  56. }
  57. @media screen and (min-width: 1100px) {
  58. width: auto;
  59. margin-left: 2rem;
  60. margin-right: 15%;
  61. grid-column: 2 / 4;
  62. align-self: start; /* S'assurer qu'il commence en haut */
  63. height: fit-content ;
  64. justify-self: start;
  65. p{margin: 0;}
  66. }
  67. @media (max-width: 810px) {
  68. margin-left: 9%;
  69. margin-right: 9%;
  70. }
  71. }
  72. .block-block-content4e5df355-e76c-4e44-bec0-e211d94f2640{
  73. width: 100%;
  74. font-family: 'Source Code Pro';
  75. font-size: 1.5rem;
  76. font-weight: 800;
  77. color: $white;
  78. background-color: $blue-light;
  79. text-transform: uppercase;
  80. padding-left: 13%;
  81. padding-top: 1rem;
  82. padding-bottom: 0.5rem;
  83. vertical-align: middle;
  84. }
  85. .block-entity-fieldnodefield-type-de-ressource{
  86. color: $blue-light;
  87. text-transform: uppercase;
  88. font-weight: 900;
  89. @media (max-width: 1099px) {
  90. margin-top: 2rem;
  91. }
  92. }
  93. .block-entity-fieldnodetitle{
  94. font-size: 2.5rem;
  95. font-weight: 600;
  96. line-height: 1.2;
  97. .field--name-title{
  98. @media (max-width: 550px) {
  99. font-size: 1.5rem;
  100. width: 80vw;
  101. }
  102. }
  103. }
  104. .block-entity-fieldnodefield-sous-titre{
  105. font-weight: 600;
  106. font-size: 2rem;
  107. .field--name-field-edition{
  108. font-weight: 600;
  109. font-size: 2rem;
  110. p{
  111. font-weight: 600;
  112. font-size: 2rem;
  113. margin-bottom: 0;
  114. }
  115. }
  116. }
  117. .block-entity-fieldnodefield-edition{
  118. .field--name-field-edition{
  119. p{
  120. margin-bottom: 0;
  121. }
  122. }
  123. }
  124. .block-entity-fieldnodefield-auteur-s-{
  125. .field--name-field-auteur-s-{
  126. font-size: 1.5rem;
  127. font-weight: 800;
  128. line-height: 0.8;
  129. margin-top: 1rem;
  130. p{
  131. margin: 0;
  132. }
  133. }
  134. }
  135. .block-entity-fieldnodefield-date-de-parution{
  136. }
  137. .block-entity-fieldnodefield-mots-clefs{
  138. .field--name-field-mots-clefs{
  139. display: inline-flex;
  140. margin-top: 0.5rem;
  141. .field__item{
  142. background: $blue-dark;
  143. margin-right: 1rem;
  144. padding-left: 0.3rem;
  145. padding-right: 0.3rem;
  146. color: $white;
  147. font-weight: 800;
  148. vertical-align: middle;
  149. }
  150. }
  151. @media (max-width: 810px){
  152. .field--name-field-mots-clefs{
  153. display: flex;
  154. flex-direction: row;
  155. flex-wrap: wrap;
  156. .field__item{
  157. margin-bottom: 0.5rem;
  158. }
  159. }
  160. }
  161. }
  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. }