_ressource.scss 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  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. }
  170. }
  171. @media (max-width: 810px){
  172. .field--name-field-mots-clefs{
  173. display: flex;
  174. flex-direction: row;
  175. flex-wrap: wrap;
  176. .field__item{
  177. margin-bottom: 0.5rem;
  178. }
  179. }
  180. }
  181. }
  182. }
  183. /* Hide empty blocks */
  184. .block-block-content4e5df355-e76c-4e44-bec0-e211d94f2640:empty,
  185. .block-entity-fieldnodefield-type-de-ressource:empty,
  186. .block-entity-fieldnodetitle:empty,
  187. .block-entity-fieldnodefield-sous-titre:empty,
  188. .block-entity-fieldnodefield-edition:empty,
  189. .block-entity-fieldnodefield-auteur-s-:empty,
  190. .block-entity-fieldnodefield-date-de-parution:empty,
  191. .block-entity-fieldnodefield-mots-clefs:empty {
  192. display: none;
  193. }
  194. }
  195. .layout__region--first{ // menu ancres a gauche
  196. margin-top: 3rem;
  197. position: relative;
  198. @media (max-width: 810px){
  199. display: none;
  200. }
  201. .block-region-first{
  202. display: flex;
  203. justify-content: flex-end;
  204. position: sticky;
  205. top: 13rem;
  206. .block-entity-fieldnodefield-textes{
  207. display: flex;
  208. width: 50%;
  209. background-color: $white;
  210. padding-right: 2rem;
  211. .field--name-field-titre{
  212. display: flex;
  213. font-size: 1rem;
  214. font-weight: 1000;
  215. color: $blue-dark;
  216. border-bottom: 1px solid $blue-light;
  217. padding-bottom: 0.5rem;
  218. padding-right: 1rem;
  219. &:hover{
  220. text-decoration: underline;
  221. }
  222. }
  223. }
  224. }
  225. }
  226. .layout__region--second{ // paragraphe texte
  227. margin-top: 3rem;
  228. .block-entity-fieldnodefield-textes{
  229. background-color: $white;
  230. .field--name-field-titre{
  231. font-size: 1.5rem;
  232. font-weight: 1000;
  233. font-family: 'Source Code Pro';
  234. color: $blue-dark;
  235. text-transform: uppercase;
  236. }
  237. h4{
  238. text-transform: none !important;
  239. img{
  240. width: 100%;
  241. height: auto;
  242. }
  243. }
  244. .field--type-text-long{
  245. padding-right: 2rem;
  246. @media (max-width: 550px){
  247. padding-right: 0;
  248. }
  249. }
  250. p{
  251. margin-top: 0;
  252. }
  253. }
  254. @media (max-width: 810px){
  255. flex: 0 1 80%;
  256. margin: auto;
  257. margin-top: 2rem;
  258. }
  259. }
  260. .layout__region--third{ // colone de droite fichiers et ressources liées
  261. margin-top: 3rem;
  262. @media (max-width: 810px){
  263. flex: 0 1 80%;
  264. margin-left: 10%;
  265. }
  266. .block-region-third{
  267. display: flex;
  268. flex-direction: column;
  269. width: 70%;
  270. @media (max-width: 810px){
  271. width: 100%;
  272. }
  273. .block-entity-fieldnodefield-fichiers{
  274. height: fit-content;
  275. border: 2px solid $blue-light;
  276. background-color: $white;
  277. order: 2;
  278. }
  279. .field--name-field-fichiers{
  280. min-height: 4rem;
  281. background: $white;
  282. color: $blue-light;
  283. padding-left: 1rem;
  284. padding-top: 1rem;
  285. // margin-bottom: 1rem;
  286. padding: 1rem;
  287. span:nth-of-type(2){
  288. display: none;
  289. }
  290. .file--mime-application-pdf{
  291. height: inherit;
  292. margin: auto;
  293. width: fit-content;
  294. ::before{
  295. content: url("../images/pictos/download.png");
  296. min-width:30px;
  297. height: auto;
  298. padding-right: 1rem;
  299. margin-right: 1rem;
  300. }
  301. a{
  302. hyphens: auto;
  303. display: inline-flex;
  304. align-items: center;
  305. color: $blue-light;
  306. font-weight: 800;
  307. // max-width: 80px ;
  308. }
  309. }
  310. }
  311. .block-entity-fieldnodefield-liens{
  312. order: 3;
  313. .field--name-field-liens{
  314. .field__item{
  315. margin: auto;
  316. height: fit-content;
  317. border: 2px solid $blue-light;
  318. min-height: 4rem;
  319. background: $white;
  320. color: $blue-light;
  321. padding-left: 1rem;
  322. padding-top: 1rem;
  323. margin-bottom: 1rem;
  324. padding: 1rem;
  325. }
  326. a{
  327. display: inline-flex;
  328. align-items: center;
  329. color: $blue-light;
  330. font-weight: 800;
  331. &::before{
  332. content: url("../images/pictos/external_link.png");
  333. min-width: 30px;
  334. height: auto;
  335. padding-right: 1rem;
  336. margin-right: 1rem;
  337. }
  338. svg.ext{
  339. display: none;
  340. }
  341. }
  342. }
  343. }
  344. .block-entity-fieldnodefield-ress{
  345. order: 4;
  346. margin-top: 3rem;
  347. .field--name-field-ress{
  348. .field__label{
  349. font-size: 0.8rem;
  350. color: $black;
  351. font-weight: 900;
  352. margin-bottom: 1rem;
  353. }
  354. .node-type-ressource{
  355. border: 2px solid $blue-light;
  356. padding: 1rem;
  357. height: fit-content;
  358. margin-bottom: 1rem;
  359. background-color: $white;
  360. display: flex;
  361. flex-direction: column;
  362. div{
  363. display: flex;
  364. flex-direction: column;
  365. .field--name-field-type-de-ressource{
  366. order: 2;
  367. text-transform: uppercase;
  368. color: $blue-light;
  369. font-weight: 900;
  370. font-size: 0.8rem;
  371. }
  372. .field--name-title{
  373. order: 3;
  374. h2{
  375. margin: 0;
  376. a{
  377. color: $black;
  378. font-size: 1rem;
  379. font-weight: 900;
  380. font-style: italic;
  381. }
  382. }
  383. }
  384. .field--name-field-sous-titre{
  385. order:4;
  386. }
  387. .field--name-field-auteur-s-{
  388. order: 5;
  389. font-weight: 800;
  390. p{
  391. margin: 0;
  392. }
  393. .field__label{
  394. display:none;
  395. }
  396. }
  397. .field--name-field-edition{
  398. p{
  399. margin: 0;
  400. }
  401. .field__label{
  402. display:none;
  403. }
  404. }
  405. .field--name-field-images{
  406. // display: none;
  407. order: 1;
  408. width: 25%;
  409. img{
  410. width: 100%;
  411. height: auto;
  412. }
  413. }
  414. .field--name-field-date-de-parution{
  415. order: 6;
  416. .field__label{
  417. display: none;
  418. }
  419. }
  420. .field--name-field-mots-clefs{
  421. order: 7;
  422. display: flex;
  423. margin-top: 0.8rem;
  424. flex-direction: row;
  425. flex-wrap: wrap;
  426. .field__label{
  427. display: none;
  428. }
  429. .field__items{
  430. display: flex;
  431. flex-direction: row;
  432. flex-wrap: wrap;
  433. }
  434. .field__item{
  435. padding-bottom: 0.5rem;
  436. margin-right: 0.5rem;
  437. padding-right: 0.3rem;
  438. font-size: 0.8rem;
  439. a{
  440. background: $blue-dark;
  441. color: $white;
  442. font-weight: 800;
  443. vertical-align: super;
  444. padding-left: 0.1rem;
  445. padding-right: 0.1rem;
  446. display: inline-flex;
  447. pointer-events: none !important;
  448. cursor: default;
  449. }
  450. }
  451. }
  452. ul.links.inline{
  453. display: none;
  454. }
  455. }
  456. }
  457. .node-type-ressource.type-les-projets-en-images{
  458. .field--name-field-images{
  459. // display: none;
  460. order: 1;
  461. width: 100%;
  462. .field__item:not(:first-of-type){
  463. display: none;
  464. }
  465. img{
  466. width: 100%;
  467. height: auto;
  468. }
  469. }
  470. }
  471. }
  472. }
  473. .block-entity-fieldnodefield-projets-liee{
  474. order: 1;
  475. // margin-top: 3rem;
  476. @media(max-width:479px){
  477. margin-top: 2rem;
  478. }
  479. h2{
  480. display: none;
  481. font-size: 0.8rem;
  482. color: $black;
  483. font-weight: 900;
  484. }
  485. .field--name-field-projets-liee{
  486. display: flex;
  487. flex-direction: column;
  488. border-bottom: 1px solid $black;
  489. padding: 1rem;
  490. height: fit-content;
  491. margin-bottom: 3rem;
  492. background-color: $white;
  493. .field__label{ display: none;}
  494. .field__items{
  495. :before{
  496. content: url("../images/pictos/picto_lieu_blue.svg");
  497. display: inline-block;
  498. color: $blue-dark;
  499. margin-right: 1rem;
  500. }
  501. }
  502. .field__item{
  503. display: flex;
  504. flex-direction: row;
  505. margin-bottom: 1.5rem;
  506. :before{
  507. content: 'Voir le projet';
  508. display: block;
  509. color: $blue-dark;
  510. }
  511. a{
  512. color: $blue-dark;
  513. font-size: 1rem;
  514. font-weight: 900;
  515. // font-style: italic;
  516. }
  517. }
  518. }
  519. }
  520. }
  521. }
  522. // }
  523. }