home-view-sites.scss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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: 15%;
  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. max-height: 500px;
  54. width: 100%;
  55. object-fit: cover;
  56. }
  57. }
  58. .infos-content-site{
  59. background-color: $white-button;
  60. width: 20vw;
  61. order: 2;
  62. display: flex;
  63. flex-direction: column;
  64. grid-row: 7/span 5;
  65. grid-column: 10/span 10;
  66. padding: 1rem;
  67. z-index: 99;
  68. @media(max-width: 891px){
  69. width: auto;
  70. }
  71. h1{display: none;}
  72. h2{
  73. order: 2;
  74. margin: 0;
  75. font-size: 1.9rem;
  76. font-weight: 1000;
  77. @media(max-width: 891px){
  78. font-size: 1.2rem;
  79. line-height: 1.3rem;
  80. }
  81. }
  82. .field--name-field-numero-site {
  83. order: 1;
  84. text-transform: uppercase;
  85. font-size: 1.5rem;
  86. @media(max-width: 891px){
  87. font-size: 1.5rem;
  88. }
  89. }
  90. .field--name-field-adresse-site{
  91. order: 3;
  92. font-size: 1.5rem;
  93. @media(max-width: 891px){
  94. font-size: 1rem;
  95. line-height: 0.6rem;
  96. padding-bottom: 0.3rem;
  97. }
  98. .address{
  99. margin: 0;
  100. display: inline-flex;
  101. .postal-code{
  102. order: 2;
  103. }
  104. .locality{
  105. order: 1;
  106. text-transform: capitalize;
  107. margin-right: 0.5rem;
  108. }
  109. .country{
  110. display: none;
  111. }
  112. }
  113. }
  114. .field--name-field-architecte{
  115. order: 4;
  116. font-size: 1.5rem;
  117. .field__items{
  118. display: flex;
  119. flex-direction: row;
  120. flex-wrap: wrap;
  121. .field__item{
  122. display: inline;
  123. &::after{
  124. content:',';
  125. padding-right: 0.5rem;
  126. }
  127. }
  128. }
  129. .field__item:last-of-type::after {
  130. content: '';
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }
  137. .block-block-content9e601647-144f-4e8e-b9e1-7d744f9141d7{
  138. width: fit-content;
  139. margin: auto;
  140. z-index: 99;
  141. position: relative;
  142. top: -20px;
  143. }
  144. }