_ressource.scss 18 KB

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