_ressource.scss 18 KB

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