forked from deepStateMirrors/tabi
🎨 refactor: improve code format; set tabs = 4 spaces
This commit is contained in:
parent
50280e65a9
commit
7a1bb1d04c
11 changed files with 536 additions and 513 deletions
|
@ -1,41 +1,47 @@
|
|||
.theme-switcher {
|
||||
align-self: center;
|
||||
margin-left: 0.5rem;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
.switch {
|
||||
align-self: center;
|
||||
margin-left: 0.5rem;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
border: none;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
.switch {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.sun {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.moon {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
.sun {
|
||||
opacity: 0;
|
||||
|
||||
input {
|
||||
display: none;
|
||||
|
||||
&:checked + .switch {
|
||||
.sun {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.moon {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.moon {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
input {
|
||||
display: none;
|
||||
&:checked + .switch {
|
||||
.sun {
|
||||
opacity: 1;
|
||||
}
|
||||
.moon {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue