_ressource.scss 20 KB

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