_lesprojets.scss 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. .path-projets{
  2. .region-content{
  3. #block-contenudelapageprincipale{
  4. span{
  5. padding-top: 3rem;
  6. padding-bottom: 3rem;
  7. vertical-align: middle;
  8. h2{
  9. margin: 0;
  10. padding-top: 2rem;
  11. height: 4rem;
  12. color: $white;
  13. font-family: "Source Code Pro";
  14. text-transform: uppercase;
  15. background: $blue-light;
  16. padding-left: 13%;
  17. }
  18. }
  19. .layout--onecol{
  20. .block-region-content{
  21. display: grid;
  22. grid-template-columns: 1fr repeat(7, 1fr) 1fr;
  23. @media (max-width: 810px){
  24. display: flex;
  25. flex-direction: column;
  26. }
  27. /// carte
  28. .block-views-blockprojets-block-2{
  29. grid-column: 1 / span 10;
  30. }
  31. //texte de présentation
  32. .block-config-pages-block{
  33. grid-column: 3 / span 5;
  34. // width: 60%;
  35. margin: auto;
  36. span h2{
  37. display: none;
  38. }
  39. .config_pages--type--les-projets{
  40. .field--name-field-introduction{
  41. p:nth-of-type(1){
  42. font-size: 1.5rem;
  43. }
  44. }
  45. }
  46. @media (max-width: 810px){
  47. padding: 2rem;
  48. }
  49. }
  50. // bouton projets incubés
  51. .block-block-contentaffaf220-dd27-4c9d-ae02-8044c2662220{
  52. grid-column: 8 / span 9;
  53. margin-top: 4rem;
  54. background-color: $blue-light;
  55. height: fit-content;
  56. width: 60%;
  57. margin-left: 2rem;
  58. grid-row: 2;
  59. .display{
  60. display: block;
  61. }
  62. .field--name-field-lien{
  63. display: flex;
  64. flex-direction: column;
  65. margin-top: 2rem;
  66. margin-bottom: 2rem;
  67. margin-left: 1.5rem;
  68. margin-right: 1.5rem;
  69. text-align: center;
  70. a{
  71. font-weight: 800;
  72. color: $white;
  73. font-size: 1.3rem;
  74. }
  75. &:after{
  76. margin-left: auto;
  77. padding-top: 1rem;
  78. display: block;
  79. content:url("../images/pictos/noun_Arrow_3771902.svg")
  80. }
  81. }
  82. @media (max-width: 810px){
  83. margin: auto;
  84. }
  85. }
  86. //partie projets
  87. .block-views-blockprojets-block-1{
  88. grid-column: 2 / span 7;
  89. // width: 80%;
  90. @media (max-width: 810px){
  91. padding: 2rem;
  92. }
  93. .view-projets{
  94. // width: 80%;
  95. margin: auto;
  96. //filtres
  97. .view-filters{
  98. margin-top: 4rem;
  99. display: flex;
  100. flex-direction: row;
  101. @media (max-width: 479px){
  102. flex-direction: column;
  103. padding-bottom: 3rem;
  104. }
  105. &::before{
  106. content: 'Filtrer par :';
  107. margin-right: 1rem;
  108. @media (max-width: 479px){
  109. padding-bottom: 1rem;
  110. }
  111. }
  112. #views-exposed-form-projets-block-1{
  113. display: flex;
  114. flex-direction: row;
  115. #edit-field-neuf-rehabilitation-value--wrapper{
  116. legend{display: none;}
  117. .js-form-item-field-neuf-rehabilitation-value:first-of-type{
  118. display: none;
  119. }
  120. @media (max-width: 479px){
  121. padding-bottom: 1rem;
  122. padding-top: 1rem;
  123. margin-inline-start: 0px;
  124. }
  125. }
  126. #edit-field-encours-fini-value--wrapper{
  127. legend{display: none;}
  128. .js-form-item-field-encours-fini-value:first-of-type{
  129. display: none;
  130. }
  131. @media (max-width: 479px){
  132. padding-bottom: 1rem;
  133. margin-inline-start: 0px;
  134. }
  135. }
  136. .js-form-type-textfield{
  137. label{display: none;}
  138. }
  139. input[type="radio"]{
  140. display: none;
  141. }
  142. input[type="radio"] + label::before{
  143. content:"";
  144. display:inline-block;
  145. width: 15px;
  146. height: 15px;
  147. background:#fff;
  148. border-radius:0px;
  149. border-color: rgba($color: #000000, $alpha: 1);
  150. border-style: solid;
  151. border-width: 1px;
  152. margin-right: 0.5rem;
  153. }
  154. input[type="radio"]:checked + label::before{
  155. background:$blue-light;
  156. }
  157. label{
  158. padding-right: 1rem;
  159. }
  160. #edit-submit-projets{
  161. background-color: $blue-light;
  162. color: white;
  163. text-transform: uppercase;
  164. border: none;
  165. padding: 0.1rem 0.7rem;
  166. margin-left: 2rem;
  167. @media (max-width: 479px){
  168. margin-left: 0rem;
  169. margin-right: 2rem;
  170. }
  171. }
  172. #edit-reset{
  173. background-color: $blue-light;
  174. color: white;
  175. text-transform: uppercase;
  176. border: none;
  177. padding: 0.1rem 0.7rem;
  178. margin-left: 1rem;
  179. }
  180. input[type="checkbox"]{
  181. display: none;
  182. }
  183. input[type="checkbox"] + label::before{
  184. content:"";
  185. display:inline-block;
  186. width: 15px;
  187. height: 15px;
  188. background:#fff;
  189. border-radius:0px;
  190. border-color: rgba($color: #000000, $alpha: 1);
  191. border-style: solid;
  192. border-width: 1px;
  193. margin-right: 0.5rem;
  194. }
  195. input[type="checkbox"]:checked + label::before{
  196. background:$blue-light;
  197. }
  198. @media (max-width: 479px){
  199. flex-direction: column;
  200. #edit-actions{
  201. width: 100%;
  202. }
  203. }
  204. }
  205. }
  206. //grille de projets
  207. .view-content{
  208. margin-top: 2rem;
  209. display: flex;
  210. flex-direction: row;
  211. flex-wrap: wrap;
  212. @media (max-width: 810px){
  213. flex-direction: column;
  214. }
  215. .views-row{
  216. width: 25%;
  217. // flex: 0 0 25%;
  218. @media (max-width: 810px){
  219. width: 100%;
  220. }
  221. }
  222. }
  223. .node-type-projet{
  224. color: $blue-dark;
  225. line-height: 1.5rem;
  226. padding: 0.5rem;
  227. padding-right: 1rem;
  228. padding-left: 1rem;
  229. @media (max-width: 479px){
  230. padding-left: 0rem;
  231. padding-right: 0rem;
  232. padding-top: 2rem;
  233. }
  234. div:first-child{
  235. display: flex;
  236. flex-direction: column;
  237. a{
  238. color: $blue-dark;
  239. }
  240. .field--name-field-photo {
  241. order:1;
  242. .field__item{
  243. display:none;
  244. }
  245. .field__item:first-child{
  246. display:block;
  247. }
  248. img{
  249. width: 100%;
  250. max-height: 175px;
  251. object-fit: cover;
  252. }
  253. &::after{
  254. display: block;
  255. 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>');
  256. }
  257. }
  258. .field--name-field-adresse{
  259. order:2;
  260. display: flex;
  261. text-transform: uppercase;
  262. font-size: 0.9rem;
  263. font-weight: 800;
  264. margin-top: 0.8rem;
  265. line-height: 0.6rem;
  266. .address{
  267. display: flex;
  268. flex-direction: row;
  269. margin: 0;
  270. .locality{
  271. padding-top: 0 !important;
  272. padding-bottom: 0 !important;
  273. &::after{
  274. content:",";
  275. margin-right: 0.3rem;
  276. }
  277. }
  278. .country{
  279. padding-top: 0 !important;
  280. padding-bottom: 0 !important;
  281. } }
  282. }
  283. .field--name-field-sous-titre{
  284. margin-top: 0.5rem;
  285. font-size: 0.9rem;
  286. font-weight: 800;
  287. order: 4;
  288. }
  289. .field--name-title{
  290. order: 3;
  291. margin-top: 0.5rem;
  292. font-size: 0.9rem;
  293. font-weight: 800;
  294. h2{margin: 0;}
  295. }
  296. .field--name-field-incube{
  297. order:4;
  298. color: red;
  299. margin-top: 0.8rem;
  300. font-size: 0.7rem;
  301. }
  302. .field--name-field-region{
  303. display: none;
  304. }
  305. .field--name-field-type-de-moa{
  306. display: none;
  307. }
  308. .field--name-field-type-de-projet{
  309. display: none;
  310. }
  311. .field--name-field-etape-du-projet{
  312. display: none;
  313. }
  314. }
  315. }
  316. }
  317. }
  318. }
  319. }
  320. }
  321. }
  322. }