feat: 初步开发一些特性

This commit is contained in:
meishibiezb
2026-05-01 21:13:16 +08:00
parent a25145638f
commit a6b86934af
6 changed files with 527 additions and 107 deletions

View File

@@ -1,97 +1,128 @@
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;
color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}
a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}
body {
width: 360px;
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 13px;
color: #333;
}
.popup {
padding: 12px;
}
h2 {
margin: 0 0 10px;
font-size: 16px;
}
.actions {
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}
h1 {
font-size: 3.2em;
line-height: 1.1;
}
#app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #54bc4ae0);
}
.logo.vanilla:hover {
filter: drop-shadow(0 0 2em #3178c6aa);
}
.card {
padding: 2em;
}
.read-the-docs {
color: #888;
gap: 8px;
margin-bottom: 10px;
}
button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
flex: 1;
padding: 6px 0;
border: none;
border-radius: 4px;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
font-size: 13px;
font-weight: 500;
}
@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
#collectBtn {
background: #4caf50;
color: #fff;
}
#collectBtn:hover {
background: #43a047;
}
#clearBtn {
background: #eee;
color: #555;
}
#clearBtn:hover {
background: #ddd;
}
.status {
text-align: center;
padding: 4px 0;
margin-bottom: 8px;
border-radius: 4px;
font-size: 12px;
}
.status.success {
background: #e8f5e9;
color: #2e7d32;
}
.status.error {
background: #ffebee;
color: #c62828;
}
.status.info {
background: #e3f2fd;
color: #1565c0;
}
#pinList {
max-height: 400px;
overflow-y: auto;
}
.empty {
text-align: center;
color: #999;
padding: 20px 0;
}
.pin-item {
display: flex;
gap: 8px;
margin-bottom: 10px;
padding: 8px;
border: 1px solid #eee;
border-radius: 6px;
background: #fafafa;
}
.pin-item img {
width: 60px;
height: 60px;
object-fit: cover;
border-radius: 4px;
flex-shrink: 0;
}
.pin-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
justify-content: center;
gap: 3px;
}
.pin-author {
font-size: 12px;
color: #555;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.pin-tags {
font-size: 11px;
color: #888;
}
.pin-link {
font-size: 11px;
color: #1976d2;
text-decoration: none;
}
.pin-link:hover {
text-decoration: underline;
}