_ressource.scss 21 KB

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