_ressource.scss 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  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. padding: 1rem;
  249. span:nth-of-type(2){
  250. display: none;
  251. }
  252. .file--mime-application-pdf{
  253. height: inherit;
  254. margin: auto;
  255. ::before{
  256. content: url("../images/pictos/noun_Download_file_307900.svg");
  257. min-width:30px;
  258. height: auto;
  259. padding-right: 1rem;
  260. }
  261. a{
  262. hyphens: auto;
  263. display: inline-flex;
  264. align-items: center;
  265. color: $blue-light;
  266. font-weight: 800;
  267. // max-width: 80px ;
  268. }
  269. }
  270. }
  271. .block-entity-fieldnodefield-liens{
  272. .field--name-field-liens{
  273. .field__item{
  274. margin: auto;
  275. height: fit-content;
  276. border: 2px solid $blue-light;
  277. min-height: 4rem;
  278. background: $white;
  279. color: $blue-light;
  280. padding-left: 1rem;
  281. padding-top: 1rem;
  282. margin-bottom: 1rem;
  283. padding: 1rem
  284. }
  285. a{
  286. display: inline-flex;
  287. align-items: center;
  288. color: $blue-light;
  289. font-weight: 800;
  290. &::before{
  291. content: url("../images/pictos/noun_External Link_674151.svg");
  292. min-width: 30px;
  293. height: auto;
  294. padding-right: 1rem;
  295. }
  296. svg.ext{
  297. display: none;
  298. }
  299. }
  300. }
  301. }
  302. .block-entity-fieldnodefield-ress{
  303. margin-top: 3rem;
  304. .field--name-field-ress{
  305. .field__label{
  306. font-size: 0.8rem;
  307. color: $black;
  308. font-weight: 900;
  309. margin-bottom: 1rem;
  310. }
  311. .node-type-ressource{
  312. border: 2px solid $blue-light;
  313. padding: 1rem;
  314. height: fit-content;
  315. margin-bottom: 1rem;
  316. background-color: $white;
  317. display: flex;
  318. flex-direction: column;
  319. div{
  320. display: flex;
  321. flex-direction: column;
  322. .field--name-field-type-de-ressource{
  323. order: 2;
  324. text-transform: uppercase;
  325. color: $blue-light;
  326. font-weight: 900;
  327. font-size: 0.8rem;
  328. }
  329. .field--name-title{
  330. order: 3;
  331. h2{
  332. margin: 0;
  333. a{
  334. color: $black;
  335. font-size: 1rem;
  336. font-weight: 900;
  337. font-style: italic;
  338. }
  339. }
  340. }
  341. .field--name-field-sous-titre{
  342. order:4;
  343. }
  344. .field--name-field-auteur-s-{
  345. order: 5;
  346. font-weight: 800;
  347. p{
  348. margin: 0;
  349. }
  350. .field__label{
  351. display:none;
  352. }
  353. }
  354. .field--name-field-edition{
  355. p{
  356. margin: 0;
  357. }
  358. .field__label{
  359. display:none;
  360. }
  361. }
  362. .field--name-field-images{
  363. // display: none;
  364. order: 1;
  365. width: 25%;
  366. img{
  367. width: 100%;
  368. height: auto;
  369. }
  370. }
  371. .field--name-field-date-de-parution{
  372. order: 6;
  373. .field__label{
  374. display: none;
  375. }
  376. }
  377. .field--name-field-mots-clefs{
  378. order: 7;
  379. display: flex;
  380. margin-top: 0.8rem;
  381. flex-direction: row;
  382. flex-wrap: wrap;
  383. .field__label{
  384. display: none;
  385. }
  386. .field__items{
  387. display: flex;
  388. flex-direction: row;
  389. flex-wrap: wrap;
  390. }
  391. .field__item{
  392. padding-bottom: 0.5rem;
  393. margin-right: 0.5rem;
  394. padding-right: 0.3rem;
  395. font-size: 0.8rem;
  396. a{
  397. background: $blue-dark;
  398. color: $white;
  399. font-weight: 800;
  400. vertical-align: super;
  401. padding-left: 0.1rem;
  402. padding-right: 0.1rem;
  403. display: inline-flex;
  404. pointer-events: none !important;
  405. cursor: default;
  406. }
  407. }
  408. }
  409. ul.links.inline{
  410. display: none;
  411. }
  412. }
  413. }
  414. }
  415. }
  416. .block-entity-fieldnodefield-projets-liee{
  417. margin-top: 3rem;
  418. @media(max-width:479px){
  419. margin-top: 2rem;
  420. }
  421. h2{
  422. font-size: 0.8rem;
  423. color: $black;
  424. font-weight: 900;
  425. }
  426. .field--name-field-projets-liee{
  427. display: flex;
  428. flex-direction: column;
  429. border: 2px solid $blue-light;
  430. padding: 1rem;
  431. height: fit-content;
  432. margin-bottom: 1rem;
  433. background-color: $white;
  434. .field__label{ display: none;}
  435. .field__item{
  436. a{
  437. color: $black;
  438. font-size: 1rem;
  439. font-weight: 900;
  440. font-style: italic;
  441. }
  442. }
  443. }
  444. }
  445. }
  446. }
  447. // }
  448. }