Skip to content

Commit

Permalink
Add dark mode to style.css
Browse files Browse the repository at this point in the history
(cherry picked from commit 8efbf7f)
  • Loading branch information
Pomaranczowek authored and Steve0Greatness committed Jan 27, 2025
1 parent a156557 commit cb43494
Showing 1 changed file with 93 additions and 1 deletion.
94 changes: 93 additions & 1 deletion static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,96 @@ header .tools li {
align-items: center;
overflow: hidden;
}

@media (prefers-color-scheme: dark) {
.container {
margin: auto;
background-color: #244257;
border-radius: 25px;
padding: 20px;
max-width: max(1000px, 70%);
display: flex;
gap: 60px;
}
.navbar {
background-color: #152936;
border-radius: 25px;
padding: 10px;
font-size: 16px;
width: 160px;
flex: 0;
height: fit-content;
color: #ffff;
}
.navbar :is(li a:is(:link,:visited,:active), .menu-dropdown summary) {
display: block;
border-radius: 25px;
color: white;
padding: 8px 16px;
background-color: #1f384a;
text-decoration: none !important;
margin-bottom: 5px;
}
.logo {
background-color: #1f384a;
border-radius: 25px;
width: 160px;
height: 150px;
margin-bottom: 15px;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
.navbar :is(li a, .menu-dropdown summary, .navbar .menu-dropdown-body button):hover {
background-color: #28465c;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
color: white;
}
.main {
flex: 1;
border-radius: 25px;
overflow: scroll;
padding: 10px;
width: 100%;
height: calc(100vh - 76px);
background:
#152936;
background-repeat: no-repeat;
background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
background-attachment: local, local, scroll, scroll;
color: white;
}
.main a:link {
color: white;
}
.navbar .menu-dropdown-body {
background-color: #1f384a;
position: absolute;
box-shadow: 1px 1px 5px 1px black;
border-radius: 5px;
padding: 8px 0;
color: white;
}
.navbar .menu-dropdown-body button {
display: block;
background-color: #1f384a;
width: 100%;
border: none;
color: white;
}
a:visited,
a:active {
color: white;
text-decoration: none;
}
body {
background-image: url(/background-dark.png);
}
}

0 comments on commit cb43494

Please sign in to comment.