mirror of
https://git.sanhost.net/sanasol/hytale-f2p
synced 2026-02-26 19:51:47 -03:00
Adjust news card aspect ratio and add Play tab style
Set a default aspect ratio for .news-card and add a specific style for the LATEST NEWS section in the Play tab to override the aspect ratio and use full height.
This commit is contained in:
@@ -1016,7 +1016,7 @@ body {
|
|||||||
|
|
||||||
.news-card {
|
.news-card {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 100%;
|
aspect-ratio: 16/10;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -1025,6 +1025,12 @@ body {
|
|||||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Style spécifique pour LATEST NEWS (Play tab) */
|
||||||
|
.news-grid-horizontal .news-card {
|
||||||
|
aspect-ratio: unset;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.news-card:hover {
|
.news-card:hover {
|
||||||
box-shadow: 0 8px 40px rgba(147, 51, 234, 0.2);
|
box-shadow: 0 8px 40px rgba(147, 51, 234, 0.2);
|
||||||
border-color: rgba(147, 51, 234, 0.3);
|
border-color: rgba(147, 51, 234, 0.3);
|
||||||
|
|||||||
Reference in New Issue
Block a user