2024-10-07 17:45:08 +08:00
|
|
|
// components
|
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';
|
2024-10-06 18:00:35 +08:00
|
|
|
@import '/src/component/IconButton/$IconButton';
|
2024-10-13 12:28:17 +08:00
|
|
|
@import '/src/component/IonIcon/$IonIcon';
|
2024-10-07 22:03:10 +08:00
|
|
|
@import '/src/component/Drawer/$Drawer';
|
2024-10-07 17:45:08 +08:00
|
|
|
// routes
|
2024-10-07 01:30:10 +08:00
|
|
|
@import '/src/route/post/$post_route';
|
2024-10-07 17:45:08 +08:00
|
|
|
@import '/src/route/login/$login_route';
|
2024-05-17 03:30:49 +08:00
|
|
|
|
2024-10-06 02:21:31 +08:00
|
|
|
:root {
|
|
|
|
--primary-color: #d1d1ee;
|
|
|
|
--primary-color-dark: #9696b3;
|
|
|
|
--primary-color-darker: #72728d;
|
2024-10-08 00:24:41 +08:00
|
|
|
--secondary-color-9: #aeaeec;
|
|
|
|
--secondary-color-8: #9a9ad6;
|
|
|
|
--secondary-color-7: #7c7cb8;
|
|
|
|
--secondary-color-6: #646497;
|
|
|
|
--secondary-color-5: #545486;
|
|
|
|
--secondary-color-4: #424268;
|
|
|
|
--secondary-color-3: #3b3b66;
|
|
|
|
--secondary-color-2: #24243b;
|
|
|
|
--secondary-color-1: #1e1e2c; // background color
|
|
|
|
--secondary-color-0: #07070c;
|
2024-10-07 22:03:10 +08:00
|
|
|
--shadow-color: #09090e50;
|
2024-10-06 02:21:31 +08:00
|
|
|
|
2024-10-07 17:45:08 +08:00
|
|
|
--border-radius-small: 0.4rem;
|
|
|
|
--border-radius-medium: 0.8rem;
|
|
|
|
--border-radius-large: 1.2rem;
|
2024-10-06 02:21:31 +08:00
|
|
|
--nav-height: 50px;
|
|
|
|
}
|
2024-05-19 02:00:55 +08:00
|
|
|
html {
|
|
|
|
overflow-x: hidden;
|
2024-05-17 03:30:49 +08:00
|
|
|
font-size: 14px;
|
2024-10-17 11:43:21 +08:00
|
|
|
scroll-behavior: smooth;
|
2024-10-06 02:21:31 +08:00
|
|
|
::-webkit-scrollbar {
|
2024-10-08 00:24:41 +08:00
|
|
|
background-color: var(--secondary-color-1);
|
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 {
|
2024-10-06 15:07:48 +08:00
|
|
|
overflow-x: hidden;
|
2024-10-08 00:24:41 +08:00
|
|
|
background-color: var(--secondary-color-1);
|
2024-10-06 02:21:31 +08:00
|
|
|
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;
|
2024-10-08 00:24:41 +08:00
|
|
|
background-color: color-mix(in srgb, var(--secondary-color-1) 70%, transparent);
|
2024-10-06 02:21:31 +08:00
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
padding-inline: 1rem;
|
|
|
|
box-sizing: border-box;
|
2024-10-06 16:39:33 +08:00
|
|
|
backdrop-filter: blur(3px);
|
2024-10-06 02:21:31 +08:00
|
|
|
|
2024-10-06 16:39:33 +08:00
|
|
|
a.title {
|
2024-10-06 02:21:31 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
gap: 0.4rem;
|
2024-10-06 16:39:33 +08:00
|
|
|
text-decoration: none;
|
|
|
|
.booru-name {
|
2024-10-08 00:24:41 +08:00
|
|
|
color: var(--secondary-color-9);
|
2024-10-06 16:39:33 +08:00
|
|
|
margin: 0;
|
2024-10-06 02:21:31 +08:00
|
|
|
}
|
2024-10-06 16:39:33 +08:00
|
|
|
|
|
|
|
.app {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-10-07 17:45:08 +08:00
|
|
|
border-radius: var(--border-radius-small);
|
2024-10-08 00:24:41 +08:00
|
|
|
// border: 1px solid var(--secondary-color-9);
|
2024-10-06 16:39:33 +08:00
|
|
|
// padding: 0.2rem 0.4rem;
|
|
|
|
margin: 0;
|
|
|
|
gap: 0.4rem;
|
|
|
|
.version {
|
2024-10-08 00:24:41 +08:00
|
|
|
color: var(--secondary-color-1);
|
|
|
|
background-color: var(--secondary-color-9);
|
2024-10-06 16:39:33 +08:00
|
|
|
padding: 0.2em 0.4em;
|
2024-10-07 17:45:08 +08:00
|
|
|
border-radius: var(--border-radius-small);
|
2024-10-06 16:39:33 +08:00
|
|
|
font-size: 0.8rem;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.app-name {
|
|
|
|
display: none;
|
|
|
|
font-size: 1rem;
|
2024-10-08 00:24:41 +08:00
|
|
|
color: var(--secondary-color-9);
|
2024-10-06 16:39:33 +08:00
|
|
|
}
|
2024-10-06 02:21:31 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
div.searchbar {
|
|
|
|
padding: 0.4rem 10%;
|
|
|
|
max-width: 500px;
|
2024-10-08 00:24:41 +08:00
|
|
|
background-color: color-mix(in srgb, var(--secondary-color-2) 30%, transparent);
|
2024-10-06 02:21:31 +08:00
|
|
|
border: 1px solid var(--primary-color-darker);
|
2024-10-07 17:45:08 +08:00
|
|
|
border-radius: var(--border-radius-small);
|
2024-10-06 02:21:31 +08:00
|
|
|
color: var(--primary-color-dark);
|
2024-10-06 16:39:33 +08:00
|
|
|
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 {
|
2024-10-08 00:24:41 +08:00
|
|
|
// background-color: var(--secondary-color-1);
|
2024-10-06 02:21:31 +08:00
|
|
|
transition: all 0.3s ease;
|
|
|
|
border-radius: 1rem;
|
|
|
|
padding: 0.4rem;
|
|
|
|
&:hover {
|
2024-10-08 00:24:41 +08:00
|
|
|
background-color: color-mix(in srgb, var(--secondary-color-3) 50%, transparent);
|
2024-10-06 02:21:31 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
ion-icon.search {
|
|
|
|
display: none;
|
|
|
|
}
|
2024-10-07 17:45:08 +08:00
|
|
|
|
2024-10-12 01:17:33 +08:00
|
|
|
a {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2024-10-07 17:45:08 +08:00
|
|
|
div.account {
|
|
|
|
height: 2rem;
|
|
|
|
width: 2rem;
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
border-radius: 2rem;
|
|
|
|
font-weight: bolder;
|
2024-10-08 00:24:41 +08:00
|
|
|
color: var(--secondary-color-9);
|
|
|
|
background-color: var(--secondary-color-4);
|
2024-10-07 17:45:08 +08:00
|
|
|
user-select: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2024-10-06 02:21:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
@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;
|
2024-10-07 22:03:10 +08:00
|
|
|
padding-inline: 1rem;
|
2024-10-06 16:39:33 +08:00
|
|
|
padding-top: var(--nav-height);
|
2024-10-06 02:21:31 +08:00
|
|
|
}
|
|
|
|
}
|
2024-05-17 03:30:49 +08:00
|
|
|
|
2024-10-08 00:24:41 +08:00
|
|
|
route#posts {
|
|
|
|
|
|
|
|
header {
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
h2 {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2024-10-09 16:15:21 +08:00
|
|
|
div.tags {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
gap: 0.5rem;
|
|
|
|
}
|
2024-10-08 00:24:41 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-06 02:21:31 +08:00
|
|
|
button {
|
2024-10-08 00:24:41 +08:00
|
|
|
background-color: var(--secondary-color-4);
|
|
|
|
color: var(--secondary-color-9);
|
2024-10-06 18:00:35 +08:00
|
|
|
padding: 0.8rem 1.2rem;
|
|
|
|
border-radius: 1rem;
|
2024-10-06 02:21:31 +08:00
|
|
|
border: none;
|
|
|
|
cursor: pointer;
|
2024-10-07 17:45:08 +08:00
|
|
|
|
|
|
|
&:hover {
|
2024-10-08 00:24:41 +08:00
|
|
|
background-color: var(--secondary-color-6);
|
2024-10-07 17:45:08 +08:00
|
|
|
color: var(--primary-color);
|
|
|
|
}
|
2024-10-06 02:21:31 +08:00
|
|
|
}
|
|
|
|
|
2024-10-06 23:12:53 +08:00
|
|
|
a {
|
|
|
|
text-decoration: none;
|
2024-10-08 00:24:41 +08:00
|
|
|
color: var(--secondary-color-9);
|
2024-10-07 17:45:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
input {
|
2024-10-08 00:24:41 +08:00
|
|
|
background-color: var(--secondary-color-2);
|
2024-10-07 17:45:08 +08:00
|
|
|
border-radius: var(--border-radius-small);
|
2024-10-08 00:24:41 +08:00
|
|
|
border: 1px solid var(--secondary-color-3);
|
2024-10-07 17:45:08 +08:00
|
|
|
font-size: 0.9rem;
|
|
|
|
padding: 0.8rem 1.2rem;
|
|
|
|
color: var(--primary-color);
|
|
|
|
outline: none;
|
|
|
|
&:focus {
|
2024-10-08 00:24:41 +08:00
|
|
|
border-color: var(--secondary-color-9);
|
2024-10-07 17:45:08 +08:00
|
|
|
}
|
2024-05-17 03:30:49 +08:00
|
|
|
}
|