refactor css

This commit is contained in:
Late Night Defender 2024-07-02 02:25:46 +07:00
parent 05e4606733
commit 2bea14b81d

View file

@ -4,11 +4,7 @@
align-items: center; align-items: center;
} }
@media (prefers-color-scheme: light) {
.headerbutton { .headerbutton {
color: black;
border: none; border: none;
border-radius: 8px; border-radius: 8px;
justify-content: center; justify-content: center;
@ -24,19 +20,28 @@
transition-duration: 0.2s; transition-duration: 0.2s;
} }
.headerbutton:hover {
background-color: #fafafa;
}
.topbar { .topbar {
position: fixed; position: fixed;
width: 100%; width: 100%;
top: 0px; top: 0px;
left: 0px; left: 0px;
z-index: 10;
}
@media (prefers-color-scheme: light) {
.headerbutton {
color: black;
}
.headerbutton:hover {
background-color: #fafafa;
}
.topbar {
background-color: rgba(255, 255, 255, 1); background-color: rgba(255, 255, 255, 1);
border: 1px solid rgba(224, 224, 224, 1); border: 1px solid rgba(224, 224, 224, 1);
color: #000000; color: #000000;
z-index: 10;
} }
} }
@ -45,19 +50,6 @@
.headerbutton { .headerbutton {
color: #ffffff; color: #ffffff;
border: none;
border-radius: 8px;
justify-content: center;
align-items: center;
text-decoration: none;
display: flex;
font-size: 16px;
margin: 4px 2px;
padding-left: 0.3cm;
padding-right: 0.3cm;
cursor: pointer;
height: 35px;
transition-duration: 0.2s;
} }
.headerbutton:hover { .headerbutton:hover {
@ -65,13 +57,8 @@
} }
.topbar { .topbar {
position: fixed;
width: 100%;
top: 0px;
left: 0px;
background-color: #303030; background-color: #303030;
border: 1px solid #1f1f1f; border: 1px solid #1f1f1f;
color: #ffffff; color: #ffffff;
z-index: 10;
} }
} }