_actu.scss 6.4 KB

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