mirror of
https://github.com/amiayweb/Hytale-F2P.git
synced 2026-02-26 06:01:45 -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 {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
aspect-ratio: 16/10;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
@@ -1025,6 +1025,12 @@ body {
|
||||
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 {
|
||||
box-shadow: 0 8px 40px rgba(147, 51, 234, 0.2);
|
||||
border-color: rgba(147, 51, 234, 0.3);
|
||||
|
||||
Reference in New Issue
Block a user