_ressource.scss 20 KB

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