From f1b155e9a05af2d0b989155312a8a14a5879861a Mon Sep 17 00:00:00 2001 From: dmh Date: Thu, 15 Feb 2018 15:07:06 +0200 Subject: [PATCH] [BUGFIX] revert news-carousel accessibility improvements (#352) --- .../News/Partials/List/NewsCarousel.html | 34 +++++++------------ .../main/plugins/news/newsCarousel.less | 21 ++---------- 2 files changed, 16 insertions(+), 39 deletions(-) diff --git a/Resources/Private/Extensions/News/Partials/List/NewsCarousel.html b/Resources/Private/Extensions/News/Partials/List/NewsCarousel.html index 3f8ad9d1..88c14635 100644 --- a/Resources/Private/Extensions/News/Partials/List/NewsCarousel.html +++ b/Resources/Private/Extensions/News/Partials/List/NewsCarousel.html @@ -1,13 +1,12 @@ {namespace n=GeorgRinger\News\ViewHelpers} + - + + diff --git a/felayout_t3kit/dev/styles/main/plugins/news/newsCarousel.less b/felayout_t3kit/dev/styles/main/plugins/news/newsCarousel.less index 2a708a65..3965d31a 100644 --- a/felayout_t3kit/dev/styles/main/plugins/news/newsCarousel.less +++ b/felayout_t3kit/dev/styles/main/plugins/news/newsCarousel.less @@ -17,31 +17,19 @@ .news-carousel__wrapper { padding-bottom: 40px; - list-style-type: none; } .news-carousel__media-preview { + min-height: 180px; background-size: cover; background-repeat: no-repeat; background-position: 50% 50%; margin-bottom: 20px; - overflow: hidden; - position: relative; - - img { - top: 50%; - left: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - position: absolute; - max-width: none; - } } .news-carousel__img-wrap { position: relative; } - //header .news-carousel__slide .news-article-header h3 { font-size: 18px; @@ -100,7 +88,6 @@ .news-carousel__btn-next, .news-carousel__btn-prev { display: none; - border: none; } @media (min-width: @screen-md-min) { @@ -112,8 +99,7 @@ color: @main-color; -moz-osx-font-smoothing: grayscale; - height: 100%; - top: 0; + height: auto; font-size: 30px; } } @@ -173,8 +159,7 @@ transition: opacity 0.5s ease, visibility 0.5s ease; } -.news-carousel__img-wrap a:hover:after, -.news-carousel__img-wrap a:focus:after { +.news-carousel__img-wrap a:hover:after { opacity: 0.7; visibility: visible; }