danbooru-viewer/index.scss

157 lines
3.7 KiB
SCSS
Raw Normal View History

2024-05-17 03:30:49 +08:00
@import '/src/component/PostGrid/$PostGrid';
@import '/src/component/PostTile/$PostTile';
2024-10-06 02:21:31 +08:00
@import '/src/component/Searchbar/$Searchbar';
@import '/src/route/post/$post';
@import '/src/route/gallery/$gallery';
2024-05-17 03:30:49 +08:00
2024-10-06 02:21:31 +08:00
:root {
--background-color: #1e1e2c;
--background-color-lighter: #3b3b66;
--background-color-light: #24243b;
--primary-color: #d1d1ee;
--primary-color-dark: #9696b3;
--primary-color-darker: #72728d;
--secondary-color: #aeaeec;
--secondary-color-dark: #424268;
--nav-height: 50px;
}
html {
overflow-x: hidden;
2024-05-17 03:30:49 +08:00
font-size: 14px;
2024-10-06 02:21:31 +08:00
::-webkit-scrollbar {
background-color: var(--background-color);
2024-05-17 03:30:49 +08:00
width: 8px;
}
2024-10-06 02:21:31 +08:00
::-webkit-scrollbar-thumb {
2024-05-17 03:30:49 +08:00
background-color: #aeaeec;
border-radius: 2px;
}
}
2024-10-06 02:21:31 +08:00
body {
overflow-x: hidden;
2024-10-06 02:21:31 +08:00
background-color: var(--background-color);
color: var(--primary-color);
margin: 0;
font-family: Microsoft Yahei;
}
nav {
display: flex;
width: 100%;
height: var(--nav-height);
position: fixed;
top: 0;
z-index: 100;
background-color: color-mix(in srgb, var(--background-color) 70%, transparent);
2024-10-06 02:21:31 +08:00
justify-content: space-between;
align-items: center;
padding-inline: 1rem;
box-sizing: border-box;
backdrop-filter: blur(3px);
2024-10-06 02:21:31 +08:00
a.title {
2024-10-06 02:21:31 +08:00
display: flex;
align-items: center;
gap: 0.4rem;
text-decoration: none;
.booru-name {
2024-10-06 02:21:31 +08:00
color: var(--secondary-color);
margin: 0;
2024-10-06 02:21:31 +08:00
}
.app {
display: flex;
align-items: center;
2024-10-06 02:21:31 +08:00
border-radius: 0.4rem;
// border: 1px solid var(--secondary-color);
// padding: 0.2rem 0.4rem;
margin: 0;
gap: 0.4rem;
.version {
color: var(--background-color);
background-color: var(--secondary-color);
padding: 0.2em 0.4em;
border-radius: 0.4rem;
font-size: 0.8rem;
font-weight: bold;
}
.app-name {
display: none;
font-size: 1rem;
color: var(--secondary-color);
}
2024-10-06 02:21:31 +08:00
}
}
div.searchbar {
padding: 0.4rem 10%;
max-width: 500px;
background-color: color-mix(in srgb, var(--background-color-light) 30%, transparent);
2024-10-06 02:21:31 +08:00
border: 1px solid var(--primary-color-darker);
border-radius: 0.4rem;
color: var(--primary-color-dark);
transition: 0.3s all ease;
2024-10-06 02:21:31 +08:00
cursor: pointer;
&:hover {
color: var(--primary-color);
}
}
div.buttons {
display: flex;
align-items: center;
gap: 1rem;
ion-icon {
// background-color: var(--background-color);
2024-10-06 02:21:31 +08:00
transition: all 0.3s ease;
border-radius: 1rem;
padding: 0.4rem;
&:hover {
background-color: color-mix(in srgb, var(--background-color-lighter) 50%, transparent);
2024-10-06 02:21:31 +08:00
}
}
ion-icon.search {
display: none;
}
}
@media (max-width: 800px) {
div.searchbar {
display: none;
}
div.buttons ion-icon.search {
display: inline-block;
}
}
}
2024-05-17 03:30:49 +08:00
2024-10-06 02:21:31 +08:00
router {
2024-05-17 03:30:49 +08:00
display: block;
2024-10-06 02:21:31 +08:00
position: relative;
route {
2024-05-17 03:30:49 +08:00
display: block;
2024-10-06 02:21:31 +08:00
position: relative;
padding-inline: 10px;
padding-top: var(--nav-height);
2024-10-06 02:21:31 +08:00
}
}
2024-05-17 03:30:49 +08:00
2024-10-06 02:21:31 +08:00
button {
background-color: #aeaeec;
padding: 2px 4px;
border-radius: 0.4rem;
border: none;
cursor: pointer;
}
ion-icon {
font-size: 24px;
color: var(--primary-color);
cursor: pointer;
&:hover {
color: var(--secondary-color);
2024-05-17 03:30:49 +08:00
}
}