_actu.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  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. article{
  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. article{
  58. background: $col-1 !important;
  59. .field_programme{
  60. color: $col-1;
  61. }
  62. }
  63. }
  64. .programme-2{
  65. article{
  66. background: $col-2 !important;
  67. .field_programme{
  68. color: $col-2;
  69. }
  70. }
  71. }
  72. .programme-3{
  73. article{
  74. background: $col-eur !important;
  75. .field_programme{
  76. color: $col-eur;
  77. }
  78. }
  79. }
  80. .programme-4{
  81. article{
  82. background: black;
  83. .field_programme{
  84. color: black;
  85. }
  86. }
  87. }
  88. .programme-5{
  89. article{
  90. background: $col-mond !important;
  91. .field_programme{
  92. color: $col-mond;
  93. }
  94. }
  95. }
  96. .programme-6{
  97. article{
  98. background: $col-ter !important;
  99. .field_programme{
  100. color: $col-ter;
  101. }
  102. }
  103. }
  104. .programme-7{
  105. article{
  106. background: $col-met !important;
  107. .field_programme{
  108. color: $col-met;
  109. }
  110. }
  111. }
  112. .slick-slide{
  113. margin: 0 1rem;
  114. padding: 0;
  115. }
  116. article{
  117. //
  118. &>div{
  119. overflow: hidden;
  120. display: grid;
  121. grid-column: 1 / span 2;
  122. .field_programme{
  123. grid-row: 1;
  124. z-index: 10;
  125. }
  126. .field_sous_titre{
  127. grid-row: 3;
  128. margin: .5rem 1rem !important;
  129. }
  130. }
  131. color:white;
  132. h2{
  133. color: white;
  134. margin: 0 1rem 1rem 1rem;
  135. }
  136. .field_programme{
  137. display: block;
  138. a{
  139. background: white;
  140. display: inline-block;
  141. width: auto;
  142. text-decoration: none;
  143. font-weight: 600;
  144. text-transform: uppercase;
  145. padding: .3rem .3rem 0 .3rem;
  146. }
  147. }
  148. }
  149. }
  150. #actus_blocks-block_1{
  151. .slick-slide{
  152. margin: 0 1rem;
  153. padding: 0;
  154. }
  155. .slick-slide{
  156. // background: white;
  157. }
  158. .programme-1{
  159. article, h2{
  160. color: $col-1 !important;
  161. }
  162. .field_programme{
  163. a{
  164. background: $col-1;
  165. }
  166. }
  167. }
  168. .programme-2{
  169. article, h2{
  170. color: $col-2 !important;
  171. }
  172. .field_programme{
  173. a{
  174. background: $col-2;
  175. }
  176. }
  177. }
  178. .programme-3{
  179. article, h2{
  180. color: $col-eur !important;
  181. }
  182. .field_programme{
  183. a{
  184. background: $col-eur;
  185. }
  186. }
  187. }
  188. .programme-4{
  189. article, h2{
  190. color: black;
  191. }
  192. .field_programme{
  193. a{
  194. background: black;
  195. }
  196. }
  197. }
  198. .programme-5{
  199. article, h2{
  200. color: $col-mond !important;
  201. }
  202. .field_programme{
  203. a{
  204. background: $col-mond;
  205. }
  206. }
  207. }
  208. .programme-6{
  209. article, h2{
  210. color: $col-ter !important;
  211. }
  212. .field_programme{
  213. a{
  214. background: $col-ter;
  215. }
  216. }
  217. }
  218. .programme-7{
  219. article, h2{
  220. color: $col-met !important;
  221. }
  222. .field_programme{
  223. a{
  224. background: $col-met;
  225. }
  226. }
  227. }
  228. article{
  229. //
  230. background: white;
  231. &>div:first-of-type{
  232. display: grid;
  233. grid-column: 1 / span 2;
  234. overflow: hidden;
  235. div:not(.field_image){
  236. // margin: 0 1rem;
  237. }
  238. .field_programme{
  239. grid-row: 1;
  240. z-index: 10;
  241. }
  242. .field_dates_actu{
  243. grid-row: 3;
  244. margin: .5rem 1rem;
  245. }
  246. .field_sous_titre{
  247. grid-row: 4;
  248. margin: 0rem 1rem;
  249. }
  250. }
  251. // color:white;
  252. h2{
  253. // color: white;
  254. margin: 0 1rem 1rem 1rem;
  255. margin: .5rem 1rem !important;
  256. }
  257. .field_programme{
  258. display: block;
  259. a{
  260. color: white;
  261. display: inline-block;
  262. width: auto;
  263. text-decoration: none;
  264. font-weight: 600;
  265. text-transform: uppercase;
  266. padding: .3rem .3rem 0 .3rem;
  267. }
  268. }
  269. }
  270. }
  271. #actus_blocks-block_1, #actus_blocks-block_2{
  272. article{
  273. width: 100%;
  274. height: 100%;
  275. position: absolute;
  276. }
  277. .views-row{
  278. padding-bottom: 100%;
  279. position: relative;
  280. }
  281. .links.inline{
  282. display: none;
  283. }
  284. .views-row article{
  285. display: grid;
  286. grid-template-columns: repeat( 2, minmax(0, 1fr));
  287. grid-template-rows: 60% 40%;
  288. // position: relative;
  289. // height: auto;
  290. .field_programme{
  291. margin: 0 0 0 1rem ;
  292. display: inline-block;
  293. }
  294. .field_image{
  295. /* grid-row: 2; */
  296. grid-row: 2;
  297. margin-top: -.5rem;
  298. max-height: 100%;
  299. overflow: hidden;
  300. img{
  301. width: 100%;
  302. height: 100%;
  303. object-fit: cover;
  304. }
  305. }
  306. h2{
  307. grid-row: 2;
  308. grid-column: 1 / span 2;
  309. }
  310. div:first{
  311. grid-row: 1;
  312. grid-column: 1 / span 2;
  313. }
  314. }
  315. }
  316. #home_blocks-block_3{
  317. .views-field-field-image{
  318. grid-column: 1;
  319. }
  320. .slick-slide{
  321. background-color:transparent;
  322. padding: 0;
  323. .views-row{
  324. padding: 0.4rem;
  325. }
  326. }
  327. }
  328. }
  329. //carroussel
  330. .slick-arrow{
  331. position: absolute;
  332. height: 100%;
  333. cursor: pointer;
  334. z-index: 100;
  335. // background-color: white;
  336. opacity: 0.2;
  337. transition: opacity 250ms;
  338. width: 10%;
  339. &:hover{
  340. opacity: .5;
  341. }
  342. }
  343. .slick-next{
  344. right: 0;
  345. top: 0;
  346. }
  347. }
  348. }