Skip to content

Commit 404e27e

Browse files
committed
testing for smaller screens
1 parent dbbfa35 commit 404e27e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

assets/sass/layout.scss

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ aside {
6969
@include border-radius(5px);
7070

7171
.video-grid {
72-
padding: 1rem 0;
72+
padding: 1rem;
7373

7474
.video-thumbnails {
7575
display: grid;
76-
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
77-
gap: 2rem;
76+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
77+
gap: 1rem;
7878
list-style: none;
7979
padding: 0;
8080
margin: 0;
@@ -87,6 +87,10 @@ aside {
8787
color: inherit;
8888
height: 100%;
8989
transition: transform 0.2s ease;
90+
background: #fff;
91+
border-radius: 8px;
92+
overflow: hidden;
93+
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
9094

9195
&:hover {
9296
transform: translateY(-3px);
@@ -95,6 +99,7 @@ aside {
9599
img {
96100
width: 100%;
97101
height: auto;
102+
aspect-ratio: 16/9;
98103
object-fit: cover;
99104
}
100105

0 commit comments

Comments
 (0)