mirror of
https://github.com/Alexander-D-Karpov/about.git
synced 2026-03-16 22:06:08 +03:00
775 lines
14 KiB
CSS
775 lines
14 KiB
CSS
:root {
|
|
--gap: clamp(12px, 1.2vw, 20px);
|
|
--bg:#05070a;
|
|
--bg-2:#080b10;
|
|
--bg-3:#0b0f14;
|
|
--paper:#070b10;
|
|
--ink:#e6edf3;
|
|
--ink-2:#c5ccd4;
|
|
--muted:#8a94a2;
|
|
--accent:#7aa2ff;
|
|
--accent-2:#b692ff;
|
|
--good:#3ad38b;
|
|
--warn:#ffd166;
|
|
--bad:#ff6b6b;
|
|
--edge-0: rgba(255,255,255,.016);
|
|
--edge-1: rgba(255,255,255,.024);
|
|
--edge-2: rgba(255,255,255,.04);
|
|
--shadow:0 10px 30px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.4);
|
|
--radius:16px;
|
|
--radius-lg:22px;
|
|
--left-col:380px;
|
|
--col-min:280px;
|
|
--font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Inter, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
|
|
--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
--btn-red:#ff5f57;
|
|
--btn-yellow:#febc2e;
|
|
--btn-green:#28c840;
|
|
}
|
|
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font);
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.header {
|
|
background: var(--bg-2);
|
|
border-bottom: 1px solid var(--border);
|
|
padding: 20px;
|
|
text-align: center;
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header h1 {
|
|
margin: 0 0 8px 0;
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.header-subtitle {
|
|
color: var(--muted);
|
|
font-size: 14px;
|
|
margin: 0;
|
|
}
|
|
|
|
.container {
|
|
max-width: none;
|
|
margin: 0;
|
|
padding: 20px;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
gap: 20px;
|
|
background: var(--paper);
|
|
padding: 15px 20px;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.controls-left, .controls-right {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--paper);
|
|
color: var(--ink);
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn:hover {
|
|
background: var(--bg-3);
|
|
border-color: var(--accent);
|
|
color: var(--accent);
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: white;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: #4493f8;
|
|
border-color: #4493f8;
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-3);
|
|
border-color: var(--border-2);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-2);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--bad);
|
|
border-color: var(--bad);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #dc2626;
|
|
border-color: #dc2626;
|
|
color: white;
|
|
}
|
|
|
|
.search-input {
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
font-size: 14px;
|
|
width: 250px;
|
|
}
|
|
|
|
.search-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
background: var(--paper);
|
|
}
|
|
|
|
.plugins-grid {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.plugin {
|
|
background: var(--paper);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.plugin-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 16px 20px;
|
|
background: var(--bg-2);
|
|
border-right: 1px solid var(--border);
|
|
cursor: grab;
|
|
min-width: 250px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.plugin-header:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.plugin-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.plugin-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
margin: 0 0 4px 0;
|
|
color: var(--ink);
|
|
text-transform: capitalize;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.plugin-title::before {
|
|
content: '';
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--good);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.plugin[data-enabled="false"] .plugin-title::before {
|
|
background: var(--muted);
|
|
}
|
|
|
|
.plugin-description {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
margin: 0;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.plugin-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 15px;
|
|
padding: 0 15px;
|
|
}
|
|
|
|
.order-control {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.order-label {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.order-input {
|
|
width: 50px;
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--bg);
|
|
color: var(--ink);
|
|
text-align: center;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.order-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.toggle-switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 40px;
|
|
height: 22px;
|
|
}
|
|
|
|
.toggle-switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--border-2);
|
|
border-radius: 22px;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 18px;
|
|
width: 18px;
|
|
left: 2px;
|
|
bottom: 2px;
|
|
background-color: white;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background: var(--accent);
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(18px);
|
|
}
|
|
|
|
.plugin-form {
|
|
flex: 1;
|
|
padding: 16px 20px;
|
|
background: var(--bg);
|
|
border-left: 1px solid var(--border);
|
|
}
|
|
|
|
.form-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.form-section-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
margin-bottom: 12px;
|
|
color: var(--ink);
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.plugin-settings-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.settings-field {
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
background: var(--bg-2);
|
|
}
|
|
|
|
.field-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
background: var(--bg-3);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.field-label {
|
|
font-weight: 500;
|
|
color: var(--ink);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.field-type {
|
|
font-size: 10px;
|
|
color: var(--muted);
|
|
background: var(--bg);
|
|
padding: 2px 6px;
|
|
border-radius: 10px;
|
|
font-family: var(--mono);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.field-input {
|
|
width: 100%;
|
|
padding: 8px 12px;
|
|
border: none;
|
|
background: var(--paper);
|
|
color: var(--ink);
|
|
font-size: 12px;
|
|
resize: vertical;
|
|
}
|
|
|
|
.field-input:focus {
|
|
outline: none;
|
|
background: var(--bg);
|
|
}
|
|
|
|
.field-textarea {
|
|
min-height: 60px;
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.field-checkbox {
|
|
padding: 10px 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--paper);
|
|
}
|
|
|
|
.field-checkbox input[type="checkbox"] {
|
|
width: 14px;
|
|
height: 14px;
|
|
accent-color: var(--accent);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.field-checkbox label {
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
color: var(--ink);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.object-container {
|
|
padding: 12px;
|
|
background: var(--bg-3);
|
|
border-radius: var(--radius);
|
|
margin-top: 8px;
|
|
border: 1px solid var(--border-2);
|
|
}
|
|
|
|
.managed-array-container {
|
|
background: var(--bg-3);
|
|
border: 1px solid var(--border-2);
|
|
border-radius: var(--radius);
|
|
padding: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.managed-array-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.managed-array-header h4 {
|
|
margin: 0;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: var(--ink);
|
|
}
|
|
|
|
.managed-array-items {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.managed-array-item {
|
|
background: var(--paper);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.managed-array-item-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 8px 12px;
|
|
background: var(--bg-2);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.item-number {
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.managed-array-item-content {
|
|
padding: 12px;
|
|
display: grid;
|
|
gap: 10px;
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
}
|
|
|
|
.schema-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.schema-field-label {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--ink);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.schema-field .field-input {
|
|
padding: 6px 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--bg);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.schema-field .field-input:focus {
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.array-container {
|
|
padding: 12px;
|
|
background: var(--bg-3);
|
|
border-radius: var(--radius);
|
|
margin-top: 8px;
|
|
border: 1px solid var(--border-2);
|
|
}
|
|
|
|
.array-header {
|
|
margin-bottom: 10px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.array-title {
|
|
font-weight: 500;
|
|
color: var(--ink);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.array-item {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
margin-bottom: 8px;
|
|
padding: 10px;
|
|
background: var(--paper);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.array-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.array-item-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.array-item-controls {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.add-btn, .remove-btn {
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--bg-2);
|
|
color: var(--ink);
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.add-btn:hover {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
.remove-btn {
|
|
background: var(--bad);
|
|
border-color: var(--bad);
|
|
color: white;
|
|
}
|
|
|
|
.remove-btn:hover {
|
|
background: #dc2626;
|
|
border-color: #dc2626;
|
|
}
|
|
|
|
.add-array-item {
|
|
background: var(--accent);
|
|
border: none;
|
|
color: white;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.add-array-item:hover {
|
|
background: #4493f8;
|
|
color: white;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border);
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.empty-settings-message {
|
|
text-align: center;
|
|
padding: 30px 20px;
|
|
border: 1px dashed var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--bg-3);
|
|
color: var(--muted);
|
|
}
|
|
|
|
.empty-settings-message p {
|
|
margin: 0 0 16px 0;
|
|
font-size: 13px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.empty-array-section {
|
|
text-align: center;
|
|
padding: 20px;
|
|
border: 1px dashed var(--border);
|
|
border-radius: var(--radius);
|
|
background: var(--bg-3);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.empty-array-section h4 {
|
|
margin: 0 0 10px 0;
|
|
color: var(--muted);
|
|
font-weight: 500;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.loading {
|
|
display: inline-block;
|
|
width: 12px;
|
|
height: 12px;
|
|
border: 2px solid transparent;
|
|
border-top: 2px solid currentColor;
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% { transform: rotate(0deg); }
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
.notification {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius);
|
|
color: white;
|
|
font-weight: 500;
|
|
z-index: 10000;
|
|
transform: translateX(400px);
|
|
max-width: 300px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.notification.show {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.notification.success {
|
|
background: var(--good);
|
|
}
|
|
|
|
.notification.error {
|
|
background: var(--bad);
|
|
}
|
|
|
|
.notification.info {
|
|
background: var(--accent);
|
|
}
|
|
|
|
.sortable-ghost {
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.export-btn, .reset-btn {
|
|
background: var(--bg-3);
|
|
border-color: var(--border-2);
|
|
}
|
|
|
|
.export-btn:hover, .reset-btn:hover {
|
|
background: var(--bg-2);
|
|
border-color: var(--muted);
|
|
}
|
|
|
|
.add-setting-btn {
|
|
margin-top: 12px;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
@media (max-width: 1400px) {
|
|
.plugin {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.plugin-header {
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--border);
|
|
min-width: auto;
|
|
}
|
|
|
|
.plugin-form {
|
|
border-left: none;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.managed-array-item-content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.container {
|
|
padding: 10px;
|
|
}
|
|
|
|
.header {
|
|
padding: 15px;
|
|
}
|
|
|
|
.controls {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 10px;
|
|
}
|
|
|
|
.controls-left, .controls-right {
|
|
justify-content: center;
|
|
}
|
|
|
|
.search-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.plugin-header {
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.plugin-controls {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.actions {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
}
|
|
|
|
.managed-array-footer {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
margin-top: 12px;
|
|
padding-top: 8px;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
|
|
.icon-default-hint {
|
|
color: var(--ink-2);
|
|
margin-top: 2px;
|
|
}
|
|
|