码桶

发现社区成员的开源项目

飞扬 / LB_Down 公开
main
LB_Down/admin/option.css
option.css14.6 KB


:root {
    --lb-primary: #2563eb;
    --lb-primary-hover: #1d4ed8;
    --lb-primary-light: #dbeafe;
    --lb-primary-bg: #eff6ff;

    --lb-success: #10b981;
    --lb-danger: #ef4444;

    --lb-text-900: #0f172a;
    --lb-text-700: #334155;
    --lb-text-500: #64748b;
    --lb-text-400: #94a3b8;

    --lb-border: #e2e8f0;
    --lb-border-light: #f1f5f9;
    --lb-bg: #f1f5f9;
    --lb-bg-white: #ffffff;

    --lb-radius: 10px;
    --lb-radius-sm: 7px;
    --lb-radius-lg: 14px;

    --lb-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --lb-shadow-md: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --lb-shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.col-mb-12.col-tb-8.col-tb-offset-2 {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.typecho-page-title,
.typecho-option-submit {
    display: none !important;
}

.typecho-option {
    display: none !important;
}

.lb-wrap {
    margin: 16px 0 32px;
    max-width: 960px;
    background: var(--lb-bg-white);
    border-radius: var(--lb-radius-lg);
    box-shadow: var(--lb-shadow-lg);
    overflow: hidden;
}

.lb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    position: relative;
}

.lb-topbar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.lb-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lb-logo {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.lb-logo::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 3px;
}

.lb-logo::after {
    content: '';
    position: absolute;
    width: 7px;
    height: 8px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    top: 14px;
}

.lb-brand-text h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.lb-brand-text p {
    margin: 3px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
}

.lb-version {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    font-weight: 500;
}

.lb-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--lb-border);
}

.lb-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--lb-text-500);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.lb-tab:hover {
    color: var(--lb-text-700);
    background: rgba(37, 99, 235, 0.04);
}

.lb-tab.active {
    color: var(--lb-primary);
    font-weight: 600;
}

.lb-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--lb-primary);
    border-radius: 3px 3px 0 0;
}

.lb-tab-icon {
    width: 16px;
    height: 16px;
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.lb-tab-icon[data-icon="basic"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.lb-tab-icon[data-icon="basic"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 3px;
    background: currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.lb-tab-icon[data-icon="display"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 1px;
    width: 14px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 2px;
}
.lb-tab-icon[data-icon="display"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 4px;
    border: 2px solid currentColor;
    border-top: none;
    border-radius: 0 0 2px 2px;
    transform: translateX(-50%);
}

.lb-tab-icon[data-icon="function"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 5px;
    transform: translateY(-50%);
}
.lb-tab-icon[data-icon="function"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 3px;
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
    transform: translateY(-50%);
}

.lb-tab-icon[data-icon="mail"]::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 1px;
    width: 14px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: linear-gradient(to bottom, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%);
}

.lb-tab-icon[data-icon="beian"]::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    width: 12px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 7px 7px 3px 3px;
    background: linear-gradient(to bottom, transparent 62%, currentColor 62%, currentColor 72%, transparent 72%);
}

.lb-tab-icon[data-icon="other"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 3px;
    transform: translateY(-50%);
    background:
        radial-gradient(circle, currentColor 1.5px, transparent 1.5px) 0 50% / 5px 3px repeat-x;
}

.lb-tab-icon[data-icon="save"]::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    width: 9px;
    height: 5px;
    border: 2px solid currentColor;
    border-top: none;
    border-right: none;
    transform: translateX(-60%) rotate(-45deg);
}

.lb-tab-save {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: none;
    border-radius: var(--lb-radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.lb-tab-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.45);
}

.lb-tab-save:active {
    transform: translateY(0);
}

.lb-panels {
    position: relative;
    padding: 28px;
}

.lb-panel {
    display: none;
}

.lb-panel.active {
    display: block;
}

.lb-panel .typecho-option {
    display: block !important;
    padding: 20px 22px !important;
    margin: 0 0 14px !important;
    background: var(--lb-bg-white) !important;
    border: 1px solid var(--lb-border) !important;
    border-radius: var(--lb-radius) !important;
    box-shadow: var(--lb-shadow-sm) !important;
    transition: all 0.2s ease !important;
}

.lb-panel .typecho-option:hover {
    border-color: #cbd5e1 !important;
    box-shadow: var(--lb-shadow-md) !important;
}

.lb-panel .typecho-option label.typecho-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--lb-text-900);
    margin-bottom: 10px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.lb-panel .typecho-option .description {
    display: block;
    font-size: 12px;
    color: var(--lb-text-500);
    margin-top: 10px;
    line-height: 1.7;
}

.lb-panel input[type="text"],
.lb-panel input[type="url"],
.lb-panel input[type="email"],
.lb-panel input[type="number"],
.lb-panel input[type="password"] {
    width: 100%;
    max-width: 100%;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
    color: var(--lb-text-700);
    background: #fafbfc;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 40px;
    box-sizing: border-box;
}

.lb-panel input[type="text"]:hover,
.lb-panel input[type="url"]:hover,
.lb-panel input[type="email"]:hover,
.lb-panel input[type="number"]:hover,
.lb-panel input[type="password"]:hover {
    border-color: #cbd5e1;
    background: var(--lb-bg-white);
}

.lb-panel textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--lb-text-700);
    background: #fafbfc;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.6;
    box-sizing: border-box;
}

.lb-panel textarea:hover {
    border-color: #cbd5e1;
    background: var(--lb-bg-white);
}

.lb-panel input[type="text"]:focus,
.lb-panel input[type="url"]:focus,
.lb-panel input[type="email"]:focus,
.lb-panel input[type="number"]:focus,
.lb-panel input[type="password"]:focus,
.lb-panel textarea:focus {
    border-color: var(--lb-primary);
    background: var(--lb-bg-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lb-panel textarea {
    min-height: 90px;
    resize: vertical;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}

.lb-panel input[type="number"] {
    max-width: 180px;
}

.lb-panel select {
    height: 40px;
    padding: 0 44px 0 14px;
    font-size: 13px;
    line-height: 40px;
    color: var(--lb-text-700);
    background: #fafbfc;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 200px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
}

.lb-panel select:hover {
    border-color: #cbd5e1;
    background-color: var(--lb-bg-white);
}

.lb-panel select:focus {
    border-color: var(--lb-primary);
    background: var(--lb-bg-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.lb-panel .typecho-option ul,
.lb-panel .typecho-option ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lb-panel .typecho-option li {
    padding: 0;
    margin: 0;
}

.lb-panel .typecho-option li label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #f8fafc;
    border: 1px solid var(--lb-border);
    border-radius: var(--lb-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    color: var(--lb-text-700);
    font-weight: 500;
}

.lb-panel .typecho-option li label:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.lb-panel .typecho-option li input[type="radio"]:checked + label,
.lb-panel .typecho-option li label:has(input[type="radio"]:checked) {
    background: var(--lb-primary);
    border-color: var(--lb-primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.lb-panel .typecho-option li input[type="radio"] {
    display: none;
}

.lb-panel input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--lb-primary);
    cursor: pointer;
}

.lb-success-tip {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--lb-success);
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    z-index: 99999;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
    opacity: 1;
    transition: all 0.3s ease;
}

.typecho-option.typecho-option-submit {
    display: none !important;
}

@media (max-width: 768px) {
    .lb-topbar {
        padding: 16px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .lb-panels {
        padding: 20px;
    }

    .lb-tabs {
        flex-wrap: wrap;
        padding: 0 12px;
    }

    .lb-tab {
        flex: 1 1 45%;
        padding: 12px 14px;
        font-size: 12px;
    }

    .lb-tab-save {
        flex: 1 1 100%;
        margin-left: 0;
        margin-top: 8px;
        justify-content: center;
    }
}

.lb-test-actions {
    padding: 22px 20px;
    border-top: 1px dashed #e5e7eb;
    margin-top: 10px;
}
.lb-test-hint {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 14px;
}
.lb-test-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    border: none;
    border-radius: 9px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    line-height: 1.4;
}
.lb-test-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
}
.lb-test-btn:active { transform: translateY(0); }
.lb-test-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.lb-test-btn[data-channel="mail"] {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.lb-test-btn[data-channel="feishu"] {
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
}
.lb-test-btn[data-channel="wecom"] {
    background: linear-gradient(135deg, #07c160 0%, #05a34e 100%);
    color: #fff;
}
.lb-test-btn[data-channel="wecom"]:hover {
    box-shadow: 0 5px 16px rgba(7, 193, 96, .35);
}
.lb-test-btn[data-channel="dingtalk"] {
    background: linear-gradient(135deg, #1489ff 0%, #0a6ae0 100%);
}
.lb-test-btn[data-channel="dingtalk"] svg {
    width: 22px;
    height: 22px;
}
.lb-test-btn[data-channel="pushplus"] {
    background: linear-gradient(135deg, #ff8a3d 0%, #f56c1f 100%);
}
.lb-test-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.lb-test-result {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 12px;
    background: #f3f4f6;
    color: #6b7280;
    transition: all .2s ease;
}
.lb-test-result.ok {
    background: #ecfdf5;
    color: #059669;
}
.lb-test-result.err {
    background: #fef2f2;
    color: #dc2626;
}