_sass/home.scss in jekyll-theme-isotc211-0.3 vs _sass/home.scss in jekyll-theme-isotc211-0.3.1

- old
+ new

@@ -21,11 +21,11 @@ .items { display: flex; flex-flow: row nowrap; justify-content: flex-start; align-items: stretch; - overflow-y: auto; + overflow-x: auto; padding-top: 1em; padding-bottom: 1em; } .news-item-card { @@ -53,26 +53,20 @@ position: absolute; top: 0; left: 0; bottom: 0; display: block; width: 155px; overflow: hidden; - - img { - display: block; - width: 300px; - height: auto; - position: absolute; - top: 50%; - left: 50%; - transform: translateY(-50%) translateX(-50%); - } + background-size: cover; + background-position: center center; } } .title { font-weight: normal; margin-top: .75em; margin-bottom: .4em; + font-size: 110%; + line-height: 1.3; a { text-decoration: none; } }