home-view-sites.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. .home-page-layout-content {
  2. .block-block-content3bb825b3-ab84-4861-a4f2-2a5e5eed74de{
  3. border: solid $yellow-puca 1px;
  4. background-color: $white-button;
  5. font-weight: 800;
  6. padding: 2rem;
  7. margin-right: 1rem;
  8. width: 20vw;
  9. margin-left: 12%;
  10. padding-top: 0.5rem;
  11. padding-left: 0.8rem;
  12. padding-bottom: 5rem;
  13. @media(max-width: 891px){
  14. margin-bottom: 1rem;
  15. margin-top: 2rem;
  16. width: 50%;
  17. // margin: auto;
  18. }
  19. p{
  20. margin: 0;
  21. font-size: 1.3rem;
  22. }
  23. strong{
  24. font-size: 1.5rem;
  25. }
  26. }
  27. .block-views-blocksites-block-1 {
  28. top: -60px;
  29. position: relative;
  30. height: 550px;
  31. .views-row{
  32. @media(max-width: 891px){
  33. margin-left: 1.8rem;
  34. margin-right: 1.8rem;
  35. }
  36. .node-type-site{
  37. width: 70%;
  38. margin: auto;
  39. display: grid;
  40. grid-template-rows: repeat(12, 1fr);
  41. grid-template-columns: repeat(12, 1fr);
  42. @media(max-width: 891px){
  43. width: 100%;
  44. display: flex;
  45. flex-direction: column;
  46. }
  47. .image-site{
  48. order: 1;
  49. grid-row: 1/span 10;
  50. grid-column: 2/span 10;
  51. width: 100%;
  52. img {
  53. // width: 70%;
  54. // // object-fit: cover;
  55. // height: auto;
  56. max-height: 500px;
  57. width: 100%;
  58. object-fit: cover;
  59. }
  60. }
  61. .infos-content-site{
  62. // border: solid $yellow-puca 1px;
  63. background-color: $white-button;
  64. width: 20vw;
  65. order: 2;
  66. display: flex;
  67. flex-direction: column;
  68. grid-row: 7/span 5;
  69. grid-column: 10/span 10;
  70. padding: 1rem;
  71. z-index: 99;
  72. @media(max-width: 891px){
  73. width: auto;
  74. }
  75. h1{display: none;}
  76. h2{
  77. order: 2;
  78. margin: 0;
  79. font-size: 1.9rem;
  80. font-weight: 1000;
  81. @media(max-width: 891px){
  82. font-size: 1.2rem;
  83. line-height: 1.3rem;
  84. }
  85. }
  86. .field--name-field-numero-site {
  87. order: 1;
  88. text-transform: uppercase;
  89. font-size: 1.5rem;
  90. @media(max-width: 891px){
  91. font-size: 1.5rem;
  92. }
  93. }
  94. .field--name-field-adresse-site{
  95. order: 3;
  96. font-size: 1.5rem;
  97. @media(max-width: 891px){
  98. font-size: 1rem;
  99. line-height: 0.6rem;
  100. padding-bottom: 0.3rem;
  101. }
  102. .address{
  103. margin: 0;
  104. display: inline-flex;
  105. .postal-code{
  106. order: 2;
  107. }
  108. .locality{
  109. order: 1;
  110. text-transform: capitalize;
  111. margin-right: 0.5rem;
  112. }
  113. .country{
  114. display: none;
  115. }
  116. }
  117. }
  118. .field--name-field-architecte{
  119. order: 4;
  120. font-size: 1.5rem;
  121. }
  122. }
  123. }
  124. }
  125. }
  126. .block-block-content9e601647-144f-4e8e-b9e1-7d744f9141d7{
  127. width: fit-content;
  128. margin: auto;
  129. z-index: 99;
  130. position: relative;
  131. top: -20px;
  132. }
  133. }