_lesprojets.scss 5.0 KB

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