_ressource.scss 21 KB

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