_ressource.scss 19 KB

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