_ressource.scss 20 KB

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