summaryrefslogtreecommitdiff
path: root/src/components/SideBar.module.css
diff options
context:
space:
mode:
authorHaishan <[email protected]>2020-03-01 18:57:51 +0800
committerHaishan <[email protected]>2020-03-01 18:57:51 +0800
commit03a249c0324d6c37ff0b644c68867ba517d3fda6 (patch)
tree0894630d5add494a5860846de1715a9bc2421e92 /src/components/SideBar.module.css
parent21653c415602ddb0ebb59f800bf14b9f1310578d (diff)
chore: a11y and animation for the theme toggle
Diffstat (limited to 'src/components/SideBar.module.css')
-rw-r--r--src/components/SideBar.module.css21
1 files changed, 15 insertions, 6 deletions
diff --git a/src/components/SideBar.module.css b/src/components/SideBar.module.css
index 167ca2f..2d61c07 100644
--- a/src/components/SideBar.module.css
+++ b/src/components/SideBar.module.css
@@ -96,24 +96,33 @@
}
.themeSwitchContainer {
- --sz: 50px;
+ --sz: 40px;
@media (max-width: 768px) {
display: none;
}
position: absolute;
- bottom: 0;
+ bottom: 10px;
left: 50%;
transform: translateX(-50%);
width: var(--sz);
height: var(--sz);
- padding: 20px 0;
display: flex;
justify-content: center;
align-items: center;
- svg {
- display: block;
- color: var(--color-icon);
+
+ color: var(--color-text);
+
+ padding: 5px;
+ appearance: none;
+ outline: none;
+ user-select: none;
+ background: none;
+ cursor: pointer;
+ border: 1px solid transparent;
+ border-radius: 100%;
+ &:focus {
+ border-color: var(--color-focus-blue);
}
}