Skip to content

Commit 3961f32

Browse files
committed
adicionando a media queries
1 parent 079eff5 commit 3961f32

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

style.css

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ body {
3232
/* backgound: color image repeat position/size */
3333

3434
background: var(--background-image) no-repeat top center/cover;
35+
height: 100vh;
3536
}
3637
body *{
3738
font-family: 'Inter', sans-serif;
@@ -78,7 +79,6 @@ body *{
7879
left: 0;
7980
z-index: 1;
8081
transform: translateY(-50%);
81-
transition: all 0.5s;
8282
}
8383
.light #switch button{
8484
right: 0;
@@ -151,4 +151,13 @@ footer{
151151
text-align: center;
152152
color: rgba(255, 255, 255, 0.9);
153153
font-size: 14px;
154+
}
155+
156+
@media (min-width: 700px) {
157+
:root{
158+
--background-image: url(assets/bg-desktop.jpg);
159+
}
160+
.light{
161+
--background-image: url(assets/bg-desktop-light.jpg);
162+
}
154163
}

0 commit comments

Comments
 (0)