_actu.scss 5.9 KB

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