Skip to content

Commit

Permalink
change background based on media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
kellyrodrigues1993 committed Aug 23, 2024
1 parent c4914c4 commit 50ec801
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ body {
background: var(--bg-url) no-repeat top center/cover;
color: var(--text-color); /* Define a cor do texto globalmente */
font-family: 'Inter', sans-serif; /* Define a fonte globalmente */
height: 100vh;
}

/* Fonte específica */
Expand Down Expand Up @@ -158,3 +159,12 @@ footer {
text-align: center;
font-size: 14px;
}

@media (min-widht: 700px) {
:root {
--bg-url: url(./assets/assets/bg-desktop.jpg);
}

.light {
--bg-url: url(./assets/assets/bg-desktop-light);
}}

0 comments on commit 50ec801

Please sign in to comment.