misc mobile adjustments
This commit is contained in:
@ -41,14 +41,15 @@
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
column-gap: 1rem;
|
||||
--item-height: 19rem;
|
||||
}
|
||||
.image {
|
||||
width: 10rem;
|
||||
height: 10rem;
|
||||
width: var(--item-height);
|
||||
height: var(--item-height);
|
||||
}
|
||||
.text {
|
||||
padding-top: 0;
|
||||
max-height: 10rem;
|
||||
max-height: var(--item-height);
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
&:after {
|
||||
@ -62,4 +63,10 @@
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 500px) {
|
||||
.newsItem {
|
||||
--item-height: 8rem;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user