_lesprojets.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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: 2rem;
  108. margin-bottom: 1rem;
  109. // width: 160px;
  110. min-width: fit-content;
  111. @media (max-width: 479px){
  112. padding-bottom: 1rem;
  113. }
  114. }
  115. #views-exposed-form-projets-block-1{
  116. display: flex;
  117. flex-direction: row;
  118. flex-wrap: wrap;
  119. position: relative;
  120. align-content: center;
  121. .form-item{
  122. margin-right: 1rem;
  123. margin-bottom: 1rem;
  124. display: flex;
  125. align-content: center;
  126. @media (max-width: 550px) {
  127. width: 100%;
  128. margin: auto;
  129. }
  130. }
  131. select, input{
  132. padding: 0.3rem;
  133. margin:0.5rem;
  134. }
  135. input, label{
  136. margin: 0.5rem;
  137. }
  138. #edit-field-neuf-rehabilitation-value--wrapper{
  139. legend{display: none;}
  140. .js-form-item-field-neuf-rehabilitation-value:first-of-type{
  141. display: none;
  142. }
  143. @media (max-width: 479px){
  144. padding-bottom: 1rem;
  145. padding-top: 1rem;
  146. margin-inline-start: 0px;
  147. }
  148. }
  149. #edit-field-encours-fini-value--wrapper{
  150. legend{display: none;}
  151. .js-form-item-field-encours-fini-value:first-of-type{
  152. display: none;
  153. }
  154. @media (max-width: 479px){
  155. padding-bottom: 1rem;
  156. margin-inline-start: 0px;
  157. }
  158. }
  159. #edit-field-etape-du-projet-value{
  160. @media (max-width: 479px){
  161. max-width: 60vw;
  162. }
  163. }
  164. .js-form-type-textfield{
  165. label{display: none;}
  166. }
  167. input[type="radio"]{
  168. display: none;
  169. }
  170. input[type="radio"] + label::before{
  171. content:"";
  172. display:inline-block;
  173. width: 15px;
  174. height: 15px;
  175. background:#fff;
  176. border-radius:0px;
  177. border-color: rgba($color: #000000, $alpha: 1);
  178. border-style: solid;
  179. border-width: 1px;
  180. margin-right: 0.5rem;
  181. }
  182. input[type="radio"]:checked + label::before{
  183. background:$blue-light;
  184. }
  185. label{
  186. padding-right: 1rem;
  187. }
  188. #edit-submit-projets{
  189. // display: inline-block;
  190. background-color: $blue-light;
  191. color: white;
  192. text-transform: uppercase;
  193. border: none;
  194. padding: 0.3rem 0.7rem;
  195. // margin-left: 2rem;
  196. @media (max-width: 479px){
  197. margin-left: 0rem;
  198. margin-right: 2rem;
  199. }
  200. @media (min-width:1495px) {
  201. // margin-left: 0;
  202. // position: absolute;
  203. // right: 150px;
  204. // // justify-content: flex-end;
  205. // margin-left: auto;
  206. }
  207. }
  208. #edit-reset{
  209. background-color: $blue-light;
  210. color: white;
  211. text-transform: uppercase;
  212. border: none;
  213. padding: 0.3rem 0.7rem;
  214. margin-left: 1rem;
  215. @media (min-width:1495px) {
  216. position: absolute;
  217. right: 0px;
  218. }
  219. }
  220. input[type="checkbox"]{
  221. display: none;
  222. }
  223. input[type="checkbox"] + label::before{
  224. content:"";
  225. display:inline-block;
  226. width: 15px;
  227. height: 15px;
  228. background:#fff;
  229. border-radius:0px;
  230. border-color: rgba($color: #000000, $alpha: 1);
  231. border-style: solid;
  232. border-width: 1px;
  233. margin-right: 0.5rem;
  234. }
  235. input[type="checkbox"]:checked + label::before{
  236. background:$blue-light;
  237. }
  238. @media (max-width: 479px){
  239. flex-direction: column;
  240. #edit-actions{
  241. width: 100%;
  242. margin: auto;
  243. }
  244. }
  245. }
  246. }
  247. //grille de projets
  248. .view-content{
  249. margin-top: 2rem;
  250. display: flex;
  251. flex-direction: row;
  252. flex-wrap: wrap;
  253. @media (max-width: 810px){
  254. flex-direction: column;
  255. }
  256. .views-row{
  257. width: 25%;
  258. // flex: 0 0 25%;
  259. @media (max-width: 810px){
  260. width: 100%;
  261. }
  262. }
  263. }
  264. .node-type-projet{
  265. color: $blue-dark;
  266. line-height: 1.5rem;
  267. padding: 0.5rem;
  268. padding-right: 1rem;
  269. padding-left: 1rem;
  270. @media (max-width: 479px){
  271. padding-left: 0rem;
  272. padding-right: 0rem;
  273. padding-top: 2rem;
  274. }
  275. div:first-child{
  276. display: flex;
  277. flex-direction: column;
  278. a{
  279. color: $blue-dark;
  280. }
  281. .field--name-field-photo {
  282. order:1;
  283. .field__item{
  284. display:none;
  285. }
  286. .field__item:first-child{
  287. display:block;
  288. }
  289. img{
  290. width: 100%;
  291. max-height: 175px;
  292. object-fit: cover;
  293. }
  294. &::after{
  295. display: block;
  296. 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>');
  297. }
  298. }
  299. .field--name-field-adresse{
  300. order:2;
  301. display: flex;
  302. text-transform: uppercase;
  303. font-size: 0.9rem;
  304. font-weight: 800;
  305. margin-top: 0.8rem;
  306. line-height: 0.6rem;
  307. .address{
  308. display: flex;
  309. flex-direction: row;
  310. margin: 0;
  311. .locality{
  312. padding-top: 0 !important;
  313. padding-bottom: 0 !important;
  314. &::after{
  315. content:",";
  316. margin-right: 0.3rem;
  317. }
  318. }
  319. .country{
  320. padding-top: 0 !important;
  321. padding-bottom: 0 !important;
  322. } }
  323. }
  324. .field--name-field-sous-titre{
  325. margin-top: 0.5rem;
  326. font-size: 0.9rem;
  327. font-weight: 800;
  328. order: 4;
  329. }
  330. .field--name-title{
  331. order: 3;
  332. margin-top: 0.5rem;
  333. font-size: 0.9rem;
  334. font-weight: 800;
  335. h2{margin: 0;}
  336. }
  337. .field--name-field-incube{
  338. order:4;
  339. color: red;
  340. margin-top: 0.8rem;
  341. font-size: 0.7rem;
  342. }
  343. .field--name-field-region{
  344. display: none;
  345. }
  346. .field--name-field-type-de-moa{
  347. display: none;
  348. }
  349. .field--name-field-type-de-projet{
  350. display: none;
  351. }
  352. .field--name-field-etape-du-projet{
  353. display: none;
  354. }
  355. }
  356. }
  357. }
  358. }
  359. }
  360. }
  361. }
  362. }
  363. }