_node-ressource.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. .node-type-ressource{
  2. display: grid;
  3. grid-template-columns: 1fr repeat(3, 1fr) 1fr;
  4. grid-template-rows: repeat(2, auto);
  5. padding-top: 3rem;
  6. // #block-reha-titredepage{
  7. // display: block !important;
  8. // }
  9. @media (max-width:510px){
  10. display: flex;
  11. flex-direction: column;
  12. padding-top: 0;
  13. }
  14. .image-ressource{
  15. grid-row: 1;
  16. grid-column: 2;
  17. margin-right: 2rem;
  18. @media (max-width:510px){
  19. width: 100%;
  20. }
  21. .field__item{
  22. @media (max-width:510px){
  23. display: flex;
  24. width: 100%;
  25. }
  26. img{
  27. height: 400px;
  28. width: auto;
  29. @media (max-width:510px){
  30. margin: auto;
  31. }
  32. }
  33. }
  34. }
  35. .infos-content{
  36. grid-row: 1;
  37. grid-column: 3 /span 4;
  38. margin-left: 2rem;
  39. border: none;
  40. background-color:transparent;
  41. @media(max-width:510px){
  42. width: 85%;
  43. }
  44. .field--name-field-type-de-ressource{
  45. text-transform: uppercase;
  46. font-size: 1rem;
  47. order: 1;
  48. @media (max-width:510px){
  49. font-size: 0.8rem;
  50. }
  51. }
  52. h1{
  53. order: 2;
  54. font-size: 2rem;
  55. font-weight: 400;
  56. @media (max-width:510px){
  57. font-size: 1.5rem;
  58. line-height: 1.2;
  59. }
  60. }
  61. .field--name-field-sous-titre{
  62. font-size: 1.3rem;
  63. order: 3;
  64. @media (max-width:510px){
  65. font-size: 1.1rem;
  66. padding-top: 0.5rem;
  67. }
  68. }
  69. .field--name-field-auteur{
  70. font-weight: 800;
  71. font-size: 1.3rem;
  72. order: 4;
  73. padding-top: 1rem;
  74. @media (max-width:510px){
  75. font-size: 1.1rem;
  76. padding-top: 0.2rem;
  77. }
  78. }
  79. .field--name-field-site{
  80. background-color: rgb(153, 147, 174);
  81. border-radius: 50px;
  82. width: fit-content;
  83. padding: 0.2rem 0.9rem;
  84. margin-top: 1rem;
  85. order: 5;
  86. a{
  87. color: white;
  88. font-weight: 900;
  89. font-size: 0.8rem;
  90. vertical-align: top;
  91. }
  92. }
  93. }
  94. .body-content {
  95. grid-row: 2;
  96. grid-column: 2 /span 3;
  97. width: 100%;
  98. margin-top: 2rem;
  99. @media (max-width:510px){
  100. width: 80%;
  101. margin: auto;
  102. }
  103. .field--name-field-fichiers{
  104. width: fit-content;
  105. }
  106. .summary-content{
  107. }
  108. .links-content{
  109. margin-top: 2rem;
  110. position: relative;
  111. left: -10%;
  112. width: 25%;
  113. @media (max-width:890px){
  114. width: 80%;
  115. left: 0;
  116. }
  117. }
  118. }
  119. }