_node-ressource.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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. }
  49. h1{
  50. order: 2;
  51. font-size: 2rem;
  52. font-weight: 400;
  53. }
  54. .field--name-field-sous-titre{
  55. font-size: 1.3rem;
  56. order: 3;
  57. }
  58. .field--name-field-auteur{
  59. font-weight: 800;
  60. font-size: 1.3rem;
  61. order: 4;
  62. padding-top: 1rem;
  63. }
  64. .field--name-field-site{
  65. background-color: rgb(153, 147, 174);
  66. border-radius: 50px;
  67. width: fit-content;
  68. padding: 0.2rem 0.9rem;
  69. margin-top: 1rem;
  70. order: 5;
  71. a{
  72. color: white;
  73. font-weight: 900;
  74. font-size: 0.8rem;
  75. vertical-align: top;
  76. }
  77. }
  78. }
  79. .body-content {
  80. grid-row: 2;
  81. grid-column: 2 /span 3;
  82. width: 100%;
  83. margin-top: 2rem;
  84. @media (max-width:510px){
  85. width: 80%;
  86. margin: auto;
  87. }
  88. .field--name-field-fichiers{
  89. width: fit-content;
  90. }
  91. .summary-content{
  92. }
  93. .links-content{
  94. margin-top: 2rem;
  95. position: relative;
  96. left: -10%;
  97. width: 25%;
  98. }
  99. }
  100. }