_actu.scss 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. .path-actus{
  2. .layout-content{
  3. padding-bottom: 0;
  4. }
  5. .content_container{
  6. &>div>h2:first-of-type{
  7. text-align: center;
  8. }
  9. .layout__region--content{
  10. .views-element-container{
  11. display: grid;
  12. grid-template-columns: 10% minmax(0, 1fr);
  13. h2{
  14. grid-column: 2 ;
  15. padding: 0 0 0 20px;
  16. @include breakpoint(small down) {
  17. grid-column: 1 / span 2;
  18. padding: 0 0 0 0px;
  19. text-align: center;
  20. }
  21. }
  22. div{
  23. grid-column: 2;
  24. h2{
  25. margin : 1rem 0;
  26. }
  27. }
  28. .views-row{
  29. h2{
  30. // color: white;
  31. padding: 0;
  32. a{
  33. text-decoration: none;
  34. &:hover{
  35. text-decoration: underline;
  36. }
  37. }
  38. }
  39. }
  40. footer{
  41. text-align: center;
  42. margin: 1.8rem 0;
  43. grid-column: 1 / span 2 ;
  44. background: transparent;
  45. a{
  46. display: inline-block;
  47. margin: 0 auto;
  48. background: black;
  49. color: white;
  50. font-family: "trueno";
  51. font-weight: 500;
  52. padding: .3rem .7rem;
  53. font-size: $font-small;
  54. text-decoration: none;
  55. text-transform: uppercase;
  56. &:hover{
  57. color:black;
  58. background: white;
  59. }
  60. }
  61. }
  62. }
  63. #actus_blocks-block_2{
  64. .programme-1{
  65. .views-field{
  66. background: $col-1;
  67. }
  68. .views-field-field-programme{
  69. color: $col-1 !important;
  70. }
  71. }
  72. .programme-2{
  73. .views-field{
  74. background: $col-2;
  75. }
  76. .views-field-field-programme{
  77. color: $col-2 !important;
  78. }
  79. }
  80. .programme-3{
  81. .views-field{
  82. background: $col-eur;
  83. }
  84. .views-field-field-programme{
  85. color: $col-eur !important;
  86. }
  87. }
  88. .programme-4{
  89. .views-field{
  90. background: $col-1;
  91. }
  92. .views-field-field-programme{
  93. color: $col-1 !important;
  94. }
  95. }
  96. .programme-5{
  97. .views-field{
  98. background: $col-mond;
  99. }
  100. .views-field-field-programme{
  101. color: $col-mond !important;
  102. }
  103. }
  104. .programme-6{
  105. .views-field{
  106. background: $col-ter;
  107. }
  108. .views-field-field-programme{
  109. color: $col-ter !important;
  110. }
  111. }
  112. .programme-7{
  113. .views-field{
  114. background: $col-met;
  115. }
  116. .views-field-field-programme{
  117. color: $col-met !important;
  118. }
  119. }
  120. .programme-883{
  121. .views-field{
  122. background: $col-transition;
  123. }
  124. .views-field-field-programme{
  125. color: $col-transition !important;
  126. }
  127. }
  128. .programme-878{
  129. .views-field{
  130. background: $col-exode;
  131. }
  132. .views-field-field-programme{
  133. color: $col-exode !important;
  134. }
  135. }
  136. .slick-slide{
  137. margin: 0 1rem;
  138. padding: 0;
  139. }
  140. .views-row{
  141. overflow: hidden;
  142. }
  143. }
  144. #actus_blocks-block_1{
  145. .slick-slide{
  146. margin: 0 1rem;
  147. padding: 0;
  148. }
  149. .programme-1{
  150. color: $col-1 !important;
  151. .views-field-field-programme{
  152. background: $col-1;
  153. }
  154. }
  155. .programme-2{
  156. color: $col-2 !important;
  157. .views-field-field-programme{
  158. background: $col-2;
  159. }
  160. }
  161. .programme-3{
  162. color: $col-eur !important;
  163. .views-field-field-programme{
  164. background: $col-eur;
  165. }
  166. }
  167. .programme-4{
  168. color: $col-1;
  169. .views-field-field-programme{
  170. background: $col-1;
  171. }
  172. }
  173. .programme-5{
  174. color: $col-mond !important;
  175. .views-field-field-programme{
  176. background: $col-mond;
  177. }
  178. }
  179. .programme-6{
  180. color: $col-ter !important;
  181. .views-field-field-programme{
  182. background: $col-ter;
  183. }
  184. }
  185. .programme-7{
  186. color: $col-met !important;
  187. .views-field-field-programme{
  188. background: $col-met;
  189. }
  190. }
  191. .programme-883{
  192. color: $col-transition !important;
  193. .views-field-field-programme{
  194. background: $col-transition;
  195. }
  196. }
  197. .programme-878{
  198. color: $col-exode !important;
  199. .views-field-field-programme{
  200. background: $col-exode;
  201. }
  202. }
  203. .views-field{
  204. background: white;
  205. }
  206. // article{
  207. // //
  208. // background: white;
  209. // &>div:first-of-type{
  210. // display: grid;
  211. // grid-column: 1 / span 2;
  212. // overflow: hidden;
  213. // div:not(.field_image){
  214. // // margin: 0 1rem;
  215. // }
  216. // .field_programme{
  217. // grid-row: 1;
  218. // z-index: 10;
  219. // }
  220. // .field_dates_actu{
  221. // grid-row: 3;
  222. // margin: .5rem 1rem;
  223. // }
  224. // .field_sous_titre{
  225. // grid-row: 4;
  226. // margin: 0rem 1rem;
  227. // }
  228. // }
  229. // // color:white;
  230. // h2{
  231. // // color: white;
  232. // margin: 0 1rem 1rem 1rem;
  233. // margin: .5rem 1rem !important;
  234. // }
  235. // .field_programme{
  236. // display: block;
  237. // a{
  238. // color: white;
  239. // display: inline-block;
  240. // width: auto;
  241. // text-decoration: none;
  242. // font-weight: 600;
  243. // text-transform: uppercase;
  244. // padding: .3rem .3rem 0 .3rem;
  245. // }
  246. // }
  247. // }
  248. }
  249. #actus_blocks-block_2{
  250. .views-row{
  251. color: white;
  252. }
  253. }
  254. #actus_blocks-block_1, #actus_blocks-block_2{
  255. .slick-slide > div{
  256. padding-bottom: 100%;
  257. position: relative;
  258. }
  259. .links.inline{
  260. display: none;
  261. }
  262. .views-row{
  263. text-transform: uppercase;
  264. display: grid !important;
  265. width: 100%;
  266. height: 100%;
  267. position: absolute;
  268. grid-template-columns: repeat( 2, minmax(0, 1fr));
  269. .views-field{
  270. grid-column: 1 / span 2;
  271. }
  272. .views-field-field-type-evenement{
  273. grid-column: 1 /span 2 ;
  274. padding: 0.5rem 0 0 1rem;
  275. }
  276. .views-field-field-date{
  277. grid-column: 1 /span 2 ;
  278. grid-row: 3;
  279. padding: 0.5rem 0 0 1rem;
  280. }
  281. .views-field-field-programme{
  282. margin-bottom: -.3rem;
  283. grid-row: 1;
  284. font-weight: 600;
  285. z-index: 10;
  286. background: transparent !important;
  287. .field-content{
  288. background:white;
  289. margin: 0 0 0 1rem ;
  290. padding: 0 0.2rem;
  291. display: inline-block;
  292. }
  293. background: transparent;
  294. }
  295. .views-field-field-image{
  296. grid-row: 2;
  297. max-height: 100%;
  298. overflow: hidden;
  299. img{
  300. width: 100%;
  301. height: 100%;
  302. object-fit: cover;
  303. }
  304. }
  305. .views-field-title{
  306. font-weight: 600;
  307. padding: .5rem 1rem 0.5rem 1rem;
  308. }
  309. .views-field-field-sous-titre{
  310. padding: 0 1rem 1rem 1rem;
  311. }
  312. a{
  313. display: inline-block;
  314. width: auto;
  315. text-decoration: none;
  316. text-transform: uppercase;
  317. }
  318. }
  319. }
  320. #home_blocks-block_3{
  321. .views-field-field-image{
  322. grid-column: 1;
  323. }
  324. .slick-slide{
  325. background-color:transparent;
  326. padding: 0;
  327. .views-row{
  328. padding: 0.4rem;
  329. }
  330. }
  331. }
  332. .block-region-content{
  333. >div:last-of-type{
  334. grid-column: 1 / span 3;
  335. background: $trame;
  336. text-align: center;
  337. padding: 1rem;
  338. }
  339. }
  340. }
  341. //carroussel
  342. .slick-arrow{
  343. position: absolute;
  344. height: 100%;
  345. cursor: pointer;
  346. z-index: 100;
  347. // background-color: white;
  348. opacity: 0.2;
  349. transition: opacity 250ms;
  350. width: 10%;
  351. &:hover{
  352. opacity: .5;
  353. }
  354. }
  355. .slick-next{
  356. right: 0;
  357. top: 0;
  358. }
  359. }
  360. }