_lesprojets.scss 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. .path-projets{
  2. span{
  3. padding-top: 3rem;
  4. padding-bottom: 3rem;
  5. vertical-align: middle;
  6. h2{
  7. margin: 0;
  8. padding-top: 2rem;
  9. height: 4rem;
  10. color: $white;
  11. font-family: "Source Code Pro";
  12. text-transform: uppercase;
  13. background: $blue-light;
  14. padding-left: 13%;
  15. }
  16. }
  17. .layout--onecol{
  18. .block-region-content{
  19. //texte de présentation
  20. .block-config-pages-block{
  21. width: 60%;
  22. margin: auto;
  23. span h2{
  24. display: none;
  25. }
  26. .config_pages--type--les-projets{
  27. .field--name-field-introduction{
  28. p:nth-of-type(1){
  29. font-size: 1.5rem;
  30. }
  31. }
  32. }
  33. }
  34. //partie projets
  35. .block-views-blockprojets-block-1{
  36. .view-projets{
  37. width: 80%;
  38. margin: auto;
  39. .view-filters{
  40. margin-top: 4rem;
  41. display: flex;
  42. flex-direction: row;
  43. &::before{
  44. content: 'Filtrer par:';
  45. }
  46. #views-exposed-form-projets-block-1{
  47. display: flex;
  48. flex-direction: row;
  49. #edit-field-neuf-rehabilitation-value--wrapper{
  50. legend{display: none;}
  51. }
  52. #edit-field-encours-fini-value--wrapper{
  53. legend{display: none;}
  54. }
  55. .js-form-type-textfield{
  56. label{display: none;}
  57. }
  58. }
  59. }
  60. //grille de projets
  61. .view-content{
  62. margin-top: 2rem;
  63. display: flex;
  64. flex-direction: row;
  65. .views-row{
  66. width: 25%;
  67. flex: 0 0 25%;
  68. }
  69. }
  70. .node-type-projet{
  71. color: $blue-dark;
  72. line-height: 1.5rem;
  73. padding: 0.5rem;
  74. padding-right: 1rem;
  75. padding-left: 1rem;
  76. div:first-child{
  77. display: flex;
  78. flex-direction: column;
  79. a{
  80. color: $blue-dark;
  81. }
  82. .field--name-field-photo {
  83. order:1;
  84. img{
  85. width: 100%;
  86. max-height: 175px;
  87. object-fit: cover;
  88. }
  89. &::after{
  90. display: block;
  91. content:url('data:image/svg+xml,<svg width="160" height="25" xmlns="http://www.w3.org/2000/svg" version="1.1"> <line x1="0" x2="80" y1="20" y2="20" stroke-linecap="cube" stroke="rgb(9,57,139)" stroke-width="2.5"/></svg>');
  92. }
  93. }
  94. .field--name-field-adresse{
  95. order:2;
  96. display: flex;
  97. text-transform: uppercase;
  98. font-size: 0.9rem;
  99. font-weight: 800;
  100. margin-top: 0.8rem;
  101. line-height: 0.6rem;
  102. .address{
  103. display: flex;
  104. flex-direction: row;
  105. margin: 0;
  106. .locality::after{
  107. content:",";
  108. margin-right: 0.3rem;
  109. }
  110. }
  111. }
  112. .field--name-field-sous-titre{
  113. margin-top: 0.5rem;
  114. font-size: 0.9rem;
  115. font-weight: 800;
  116. order: 4;
  117. }
  118. .field--name-title{
  119. order: 3;
  120. margin-top: 0.5rem;
  121. font-size: 1rem;
  122. font-weight: 800;
  123. h2{margin: 0;}
  124. }
  125. .field--name-field-incube{
  126. order:4;
  127. color: red;
  128. margin-top: 0.8rem;
  129. }
  130. }
  131. }
  132. }
  133. }
  134. }
  135. }
  136. }