home-view-sites.scss 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 9;
  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: 7/span 9;
  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. @media(max-width: 891px){
  80. font-size: 1.2rem;
  81. line-height: 1.3rem;
  82. }
  83. }
  84. .field--name-field-numero-site {
  85. order: 1;
  86. text-transform: uppercase;
  87. font-size: 2rem;
  88. @media(max-width: 891px){
  89. font-size: 1.5rem;
  90. }
  91. }
  92. .field--name-field-adresse-site{
  93. order: 3;
  94. font-size: 1.5rem;
  95. @media(max-width: 891px){
  96. font-size: 1rem;
  97. line-height: 0.6rem;
  98. padding-bottom: 0.3rem;
  99. }
  100. .address{
  101. margin: 0;
  102. display: inline-flex;
  103. .postal-code{
  104. order: 2;
  105. }
  106. .locality{
  107. order: 1;
  108. text-transform: capitalize;
  109. margin-right: 0.5rem;
  110. }
  111. .country{
  112. display: none;
  113. }
  114. }
  115. }
  116. .field--name-field-architecte{
  117. order: 4;
  118. }
  119. }
  120. }
  121. }
  122. }
  123. .block-block-content9e601647-144f-4e8e-b9e1-7d744f9141d7{
  124. width: fit-content;
  125. margin: auto;
  126. z-index: 99;
  127. position: relative;
  128. top: -20px;
  129. }
  130. }