Add mobile styling

This commit is contained in:
Jorit Tijsen
2024-03-20 12:31:55 +01:00
parent 04b4a3b3e5
commit 5b9dc7c7f3
26 changed files with 828 additions and 128 deletions

View File

@@ -2,6 +2,28 @@
@use "../abstracts/variables" as *;
.blog_grid {
@media (max-width: 768px) {
overflow-x: auto;
overflow-y: hidden;
&::-webkit-scrollbar {
height: 8px;
}
/* Track */
&::-webkit-scrollbar-track {
border-radius: 100vw;
background: #eee;
}
/* Handle */
&::-webkit-scrollbar-thumb {
border-radius: 4px;
background: linear-gradient(to right, #10229c, #64a9f2);
}
.grid_view {
width: 300%;
}
}
.row, .row > * {
padding: 0;
margin: 0;
@@ -12,6 +34,9 @@
.post {
position: relative;
height: 100%;
@media (max-width: 768px) {
height: 50%;
}
img {
width: 100%;
@@ -64,6 +89,12 @@
font-size: 16px;
line-height: 1.17;
}
@media (max-width: 768px) {
h2 a, h5 a {
font-size: 16px;
line-height: 1.17;
}
}
.post_date {
@include post_date;
color: $news-banner-text-color;