_ressource.scss 18 KB

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