home-view-sites.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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.8rem;
  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.4rem;
  93. @media(max-width: 891px){
  94. font-size: 1rem;
  95. line-height: 0.6rem;
  96. padding-bottom: 0.3rem;
  97. }
  98. .field__item{
  99. display: flex;
  100. }
  101. .address{
  102. margin: 0;
  103. display: inline-flex;
  104. .postal-code{
  105. order: 2;
  106. }
  107. .locality{
  108. order: 1;
  109. text-transform: capitalize;
  110. margin-right: 0.5rem;
  111. }
  112. .country{
  113. display: none;
  114. }
  115. }
  116. }
  117. .field--name-field-architecte{
  118. order: 4;
  119. font-size: 1.4rem;
  120. padding-top: 0.5rem;
  121. .field__items{
  122. display: flex;
  123. flex-direction: row;
  124. flex-wrap: wrap;
  125. .field__item{
  126. display: inline;
  127. &::after{
  128. content:',';
  129. padding-right: 0.5rem;
  130. }
  131. }
  132. }
  133. .field__item:last-of-type::after {
  134. content: '';
  135. }
  136. }
  137. }
  138. }
  139. }
  140. }
  141. .block-block-content9e601647-144f-4e8e-b9e1-7d744f9141d7{
  142. width: fit-content;
  143. margin: auto;
  144. z-index: 99;
  145. position: relative;
  146. top: -20px;
  147. }
  148. }