diff --git a/css/basic.css b/css/basic.css index c495f02..a01d7b7 100644 --- a/css/basic.css +++ b/css/basic.css @@ -48,7 +48,7 @@ html { /** Header **/ -header { +body > header { background-color: hsl(199, 100%, 42%); font-size: 112%; font-weight: 700; @@ -221,6 +221,7 @@ footer .nav-horizontal li { -webkit-order: 0; -ms-flex-order: 0; order: 0; + max-width: 100%; } .layout-container aside:not(:empty) + main { diff --git a/css/slick-slider-custom.css b/css/slick-slider-custom.css new file mode 100644 index 0000000..212b881 --- /dev/null +++ b/css/slick-slider-custom.css @@ -0,0 +1,27 @@ +.slick-initialized .slick-track { + display: flex; + align-items: center; +} + +.slick-slide img { + max-width: 100%; + margin: 0 auto; + max-height: 300px; +} + +.slick-prev, +.slick-next { + z-index: 1; +} + +.slick-prev { + left: 5px; +} + +.slick-next { + right: 5px; +} + +.slick-slide { + padding: 0 5px; +} diff --git a/templates/partials/base.html.twig b/templates/partials/base.html.twig index d3f8e4e..2dd2408 100644 --- a/templates/partials/base.html.twig +++ b/templates/partials/base.html.twig @@ -20,11 +20,15 @@ {% do assets.addCss('theme://css/lato-latin-fonts.css', 70) %} {% do assets.addCss('theme://css/font-awesome.css', 60) %} {% do assets.addCss('theme://css/content.css', 50) %} + {% do assets.addCss('//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.css') %} + {% do assets.addCss('//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick-theme.css') %} + {% do assets.addCss('theme://css/slick-slider-custom.css') %} {% endblock %} {{ assets.css() }} {% block javascripts %} {% do assets.addJs('jquery', 100) %} + {% do assets.addJs('//cdn.jsdelivr.net/gh/kenwheeler/slick@1.8.1/slick/slick.min.js', {'group': 'bottom'}) %} {% endblock %} {{ assets.js() }} {% endblock head%} @@ -49,7 +53,13 @@ {% block body %}