_ressource.scss 21 KB

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