_actu.scss 6.0 KB

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