后台布局
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.05); }
|
||||
.custom-scrollbar:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); }
|
||||
|
||||
/* Glass & Utils */
|
||||
/* Glass & Utils - Keep for Frontend */
|
||||
.glass-nav { background: rgba(5, 5, 5, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.03); }
|
||||
.art-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.03); transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); position: relative; overflow: hidden; }
|
||||
.art-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.02) 100%); opacity: 0; transition: opacity 0.5s ease; }
|
||||
@@ -35,10 +35,61 @@
|
||||
|
||||
/* Form Error */
|
||||
.input-error { border-bottom-color: #ef4444 !important; }
|
||||
.error-msg { color: #ef4444; font-family: 'JetBrains Mono', monospace; font-size: 0.65rem; margin-top: 0.4rem; display: block; position: absolute; bottom: -1.2rem; left: 0; opacity: 0; letter-spacing: 0.05em; animation: fadeIn 0.3s forwards; background: rgba(239, 68, 68, 0.1); padding: 0.1rem 0.3rem; border-radius: 0.2rem; }
|
||||
.error-msg { color: #ef4444; font-family: 'Inter', sans-serif; font-size: 0.75rem; margin-top: 0.4rem; display: block; animation: fadeIn 0.3s forwards; }
|
||||
@keyframes fadeIn { to { opacity: 1; } }
|
||||
|
||||
/* Code Block */
|
||||
/* Admin UI System - New */
|
||||
@layer components {
|
||||
.admin-page-container {
|
||||
@apply w-full h-full p-0;
|
||||
}
|
||||
|
||||
.admin-card {
|
||||
@apply bg-art-admin-card border border-white/5 rounded-lg shadow-sm transition-all duration-300;
|
||||
}
|
||||
|
||||
.admin-card:hover {
|
||||
@apply border-white/10;
|
||||
}
|
||||
|
||||
.admin-input {
|
||||
@apply w-full bg-art-admin-bg border border-white/10 rounded-md px-4 py-3 text-white placeholder-white/30 transition-all duration-200 font-sans text-sm;
|
||||
}
|
||||
|
||||
.admin-input:focus {
|
||||
@apply border-art-accent ring-1 ring-art-accent outline-none bg-art-surface;
|
||||
}
|
||||
|
||||
.admin-btn-primary {
|
||||
@apply bg-art-accent text-black font-medium px-5 py-2.5 rounded-md hover:opacity-90 active:scale-95 transition-all text-sm tracking-wide;
|
||||
}
|
||||
|
||||
.admin-btn-secondary {
|
||||
@apply bg-transparent text-white border border-white/10 px-5 py-2.5 rounded-md hover:bg-white/5 active:scale-95 transition-all text-sm;
|
||||
}
|
||||
|
||||
.admin-btn-danger {
|
||||
@apply bg-art-error/10 text-art-error border border-art-error/20 px-5 py-2.5 rounded-md hover:bg-art-error/20 active:scale-95 transition-all text-sm;
|
||||
}
|
||||
|
||||
.admin-table {
|
||||
@apply w-full border-collapse text-left;
|
||||
}
|
||||
|
||||
.admin-table th {
|
||||
@apply font-medium text-art-muted text-xs uppercase tracking-wider p-4 border-b border-white/5;
|
||||
}
|
||||
|
||||
.admin-table td {
|
||||
@apply p-4 border-b border-white/5 text-sm text-gray-300;
|
||||
}
|
||||
|
||||
.admin-table tr:hover td {
|
||||
@apply bg-white/[0.02];
|
||||
}
|
||||
}
|
||||
|
||||
/* Code Block - Keep for Frontend, Admin Editor uses its own */
|
||||
.mac-code-block { background: #1e1e1e; padding: 3rem 1.5rem 1.5rem 1.5rem; border-radius: 0.75rem; overflow-x: auto; margin-bottom: 0; border: 1px solid rgba(255,255,255,0.1); position: relative; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5); }
|
||||
.mac-code-block::before { content: ''; position: absolute; top: 1rem; left: 1.5rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: #ff5f56; box-shadow: 1.25rem 0 0 #ffbd2e, 2.5rem 0 0 #27c93f; }
|
||||
.code-keyword { color: #c678dd; } .code-func { color: #61afef; } .code-string { color: #98c379; } .code-comment { color: #5c6370; font-style: italic; }
|
||||
|
||||
Reference in New Issue
Block a user