Skip to content

Commit

Permalink
Update style.css
Browse files Browse the repository at this point in the history
  • Loading branch information
EMSMoreno authored Aug 11, 2024
1 parent 1da1ba2 commit 7f73318
Showing 1 changed file with 75 additions and 0 deletions.
75 changes: 75 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,81 @@ body {
font-family: "Roboto", sans-serif;
}

/* Definindo cores usando variáveis CSS */
:root {
--background-color: #ffffff;
--text-color: #000000;
--header-background: #f1f1f1;
}

.dark-mode {
--background-color: #121212;
--text-color: #ffffff;
--header-background: #1e1e1e;
}

/* Estilo global usando variáveis */
body {
background-color: var(--background-color);
color: var(--text-color);
font-family: Arial, sans-serif;
transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
background-color: var(--header-background);
padding: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}

/* Toggle switch for Dark Mode */
.switch {
position: relative;
display: inline-block;
width: 60px;
height: 34px;
}

.switch input {
opacity: 0;
width: 0;
height: 0;
}

.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
transition: .4s;
border-radius: 34px;
}

.slider:before {
position: absolute;
content: "";
height: 26px;
width: 26px;
left: 4px;
bottom: 4px;
background-color: white;
transition: .4s;
border-radius: 50%;
}

input:checked + .slider {
background-color: #2196F3;
}

input:checked + .slider:before {
transform: translateX(26px);
}

::selection {
background: #9f526430;
}
Expand Down

0 comments on commit 7f73318

Please sign in to comment.