Initial upload to Gitea

This commit is contained in:
antonn committed 2026-11-30 16:32:37 +00:00
1 parent 78193254ad
commit 8478998cae
1485 files changed
+461025 -42348

No files matched your search

+943
View File
@@ -0,0 +1,943 @@
/*
* Create-server wizard styles.
* Ported verbatim from public/dashboard.css (the "Create server" popup used on /status),
* with every "enterprise-" class and keyframe namespaced to "csw-" so the wizard is
* fully self-contained and never collides with settings.css's own .enterprise-* modals.
* Source: public/dashboard.css lines 2029-2937.
*/
.csw-modal-overlay {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(24px) saturate(180%);
-webkit-backdrop-filter: blur(24px) saturate(180%);
display: none;
align-items: center;
justify-content: center;
z-index: 10000;
padding: 16px;
}
.csw-modal-overlay.show {
display: flex;
animation: cswOverlayReveal 0.35s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}
@keyframes cswOverlayReveal {
0% {
opacity: 0;
backdrop-filter: blur(0) saturate(100%);
}
100% {
opacity: 1;
backdrop-filter: blur(24px) saturate(180%);
}
}
.csw-modal {
position: relative;
width: min(680px, 96vw);
max-height: 90vh;
display: flex;
flex-direction: column;
background: #3F3F3F;
backdrop-filter: blur(40px) saturate(180%);
-webkit-backdrop-filter: blur(40px) saturate(180%);
border-radius: 24px;
overflow: hidden;
animation: cswModalReveal 0.5s cubic-bezier(0.32, 0.72, 0, 1) forwards;
box-shadow:
0 0 0 1px rgba(255, 255, 255, 0.06),
0 25px 80px -12px rgba(0, 0, 0, 0.5),
0 0 100px rgba(0, 0, 0, 0.3);
}
@keyframes cswModalReveal {
0% {
opacity: 0;
transform: scale(0.96);
filter: blur(8px);
}
100% {
opacity: 1;
transform: scale(1);
filter: blur(0);
}
}
.csw-modal-header {
display: flex;
align-items: center;
gap: 16px;
padding: 24px 28px 20px;
background: #3F3F3F;
flex-shrink: 0;
}
.csw-modal-icon {
width: 56px;
height: 56px;
border-radius: 16px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
font-size: 22px;
color: #fff;
}
.csw-modal-icon.icon-rocket {
background: #333333;
}
.csw-modal-icon.icon-cube {
background: #333333;
}
.csw-modal-icon.icon-ethernet {
background: #333333;
}
.csw-modal-icon.icon-chip {
background: #333333;
}
.csw-modal-icon.icon-terminal {
background: #333333;
}
.csw-modal-titles {
flex: 1;
min-width: 0;
}
.csw-modal-eyebrow {
font-size: 11px;
letter-spacing: 0.12em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.4);
margin-bottom: 4px;
}
.csw-modal-title {
margin: 0;
font-size: 20px;
font-weight: 700;
color: rgba(255, 255, 255, 0.95);
letter-spacing: -0.02em;
}
.csw-modal-subtitle {
margin: 6px 0 0;
font-size: 14px;
color: rgba(255, 255, 255, 0.5);
}
.csw-modal-close {
width: 36px;
height: 36px;
border-radius: 10px;
border: none;
background: rgba(255, 255, 255, 0.06);
color: rgba(255, 255, 255, 0.5);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
flex-shrink: 0;
}
.csw-modal-close:hover {
background: rgba(239, 68, 68, 0.2);
color: rgba(255, 255, 255, 0.9);
}
.csw-modal-body {
flex: 1;
padding: 4px 28px 20px;
overflow-y: auto;
min-height: 0;
background: #3F3F3F;
}
.csw-modal-body::-webkit-scrollbar {
width: 6px;
}
.csw-modal-body::-webkit-scrollbar-track {
background: transparent;
}
.csw-modal-body::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
}
.csw-modal-body--split {
display: grid;
grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
gap: 20px;
align-items: flex-start;
}
@media (max-width: 720px) {
.csw-modal-body--split {
grid-template-columns: 1fr;
}
}
.csw-modal-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
padding: 16px 28px 24px;
background: #3F3F3F;
flex-shrink: 0;
}
.csw-btn-primary {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 20px;
border-radius: 12px;
border: none;
background: #055DA6;
color: #fff;
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}
.csw-btn-primary:hover {
background: #0669b8;
filter: none;
transform: none;
}
.csw-btn-secondary {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 12px 20px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.7);
font-weight: 600;
font-size: 14px;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}
.csw-btn-secondary:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.15);
color: rgba(255, 255, 255, 0.9);
}
.csw-modal-icon.icon-download {
background: #333333;
}
.csw-import-progress {
background: rgba(255, 255, 255, 0.03);
border-radius: 14px;
padding: 16px;
margin-top: 16px;
border: 1px solid rgba(255, 255, 255, 0.06);
}
.csw-import-progress-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
}
.csw-import-progress-label {
font-size: 13px;
font-weight: 600;
color: rgba(255, 255, 255, 0.8);
}
.csw-import-progress-percent {
font-size: 13px;
font-weight: 700;
color: #10b981;
}
.csw-import-progress-bar {
width: 100%;
height: 8px;
background: rgba(255, 255, 255, 0.1);
border-radius: 4px;
overflow: hidden;
}
.csw-import-progress-fill {
height: 100%;
background: linear-gradient(90deg, #10b981, #34d399);
border-radius: 4px;
transition: width 0.3s ease;
}
.csw-import-progress-info {
margin-top: 8px;
font-size: 12px;
color: rgba(255, 255, 255, 0.5);
text-align: center;
}
.csw-btn-primary:disabled,
.csw-btn-secondary:disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
}
.csw-field {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 16px;
}
.csw-field label {
font-size: 13px;
font-weight: 600;
color: rgba(255, 255, 255, 0.8);
}
.csw-field label .hint {
font-weight: 400;
color: rgba(255, 255, 255, 0.4);
font-size: 12px;
}
.csw-field input,
.csw-field select,
.csw-field textarea {
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
color: rgba(255, 255, 255, 0.9);
padding: 12px 14px;
outline: none;
font-family: inherit;
font-size: 14px;
transition: all 0.2s ease;
}
.csw-field input:focus,
.csw-field select:focus,
.csw-field textarea:focus {
background: rgba(255, 255, 255, 0.06);
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}
.csw-field input::placeholder {
color: rgba(255, 255, 255, 0.3);
}
.csw-hint {
font-size: 12px;
color: rgba(255, 255, 255, 0.4);
line-height: 1.5;
margin-top: 4px;
}
.csw-hint--spacious {
margin-top: 16px;
}
#serverCreateInlineView .panelinfo-card-main,
.server-category-pane .panelinfo-card-main {
overflow: visible !important;
}
.csw-field-tooltip {
display: inline-flex;
align-items: center;
margin-left: 6px;
cursor: help;
position: relative;
vertical-align: middle;
}
.csw-field-tooltip i {
font-size: 12px;
color: rgba(255, 255, 255, 0.4);
transition: color 0.2s ease;
}
.csw-field-tooltip:hover i {
color: rgba(255, 255, 255, 0.85);
}
.csw-field-tooltip-card {
display: none;
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%);
background: rgba(24, 24, 28, 0.98);
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 10px;
padding: 8px 12px;
min-width: 180px;
max-width: 280px;
width: max-content;
z-index: 99999;
backdrop-filter: blur(20px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
pointer-events: none;
}
.csw-field-tooltip-card::after {
content: '';
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 6px solid transparent;
border-top-color: rgba(24, 24, 28, 0.98);
}
.csw-field-tooltip:hover .csw-field-tooltip-card {
display: block;
}
.csw-field-tooltip-card p {
margin: 0;
font-size: 12px;
font-weight: 400;
color: rgba(255, 255, 255, 0.9);
line-height: 1.45;
text-align: left;
white-space: normal;
}
.csw-modal-body--spacious {
gap: 20px;
}
.csw-variables-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 8px;
}
.csw-variables-grid--spacious {
gap: 12px;
}
.csw-variable-chip {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 8px;
font-size: 12px;
}
.csw-variable-chip code {
font-size: 11px;
color: rgba(255, 255, 255, 0.7);
}
.csw-resources-fields--spacious {
gap: 20px;
}
.csw-resources-section-title {
grid-column: 1 / -1;
display: flex;
align-items: center;
gap: 10px;
min-height: 34px;
padding: 10px 14px;
font-size: 13px;
font-weight: 800;
color: rgba(255, 255, 255, 0.86);
letter-spacing: 0;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
margin-top: 4px;
}
.csw-resources-section-title--spaced {
margin-top: 12px;
}
.csw-resources-section-title i {
width: 26px;
height: 26px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 8px;
background: rgba(99, 102, 241, 0.14);
color: rgba(165, 180, 252, 0.95);
font-size: 12px;
}
.csw-resources-section-title .csw-field-tooltip i {
width: auto;
height: auto;
border-radius: 0;
background: transparent;
color: rgba(255, 255, 255, 0.42);
}
.csw-input-with-suffix {
position: relative;
display: flex;
align-items: center;
}
.csw-input-with-suffix input {
padding-right: 54px;
width: 100%;
box-sizing: border-box;
}
.csw-input-with-suffix span {
position: absolute;
right: 14px;
font-size: 12px;
font-weight: 700;
color: rgba(255, 255, 255, 0.42);
pointer-events: none;
white-space: nowrap;
}
.csw-hint.csw-hint-error {
color: rgba(248, 113, 113, 0.96);
}
.csw-template-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
gap: 12px;
margin-top: 4px;
}
.csw-template-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
padding: 14px 10px;
border-radius: 12px;
border: none;
outline: none;
background: rgba(45, 45, 45, 0.55);
cursor: pointer;
transition: background 0.18s ease, color 0.18s ease;
}
.csw-template-item:hover {
background: rgba(255, 255, 255, 0.08);
border: none;
transform: none;
}
.csw-template-item.selected {
background: rgba(255, 255, 255, 0.14) !important;
border: none !important;
box-shadow: none !important;
outline: none !important;
}
.csw-template-icon {
width: 42px;
height: 42px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
background: rgba(255, 255, 255, 0.06);
border: none;
color: rgba(255, 255, 255, 0.85);
overflow: hidden;
}
.csw-template-icon img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 10px;
}
.csw-template-name {
font-size: 12.5px;
font-weight: 500;
color: rgba(255, 255, 255, 0.85);
text-align: center;
line-height: 1.3;
}
.csw-node-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 10px;
margin-top: 4px;
}
.csw-node-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
border-radius: 12px;
background: rgba(45, 45, 45, 0.55);
border: none;
cursor: pointer;
transition: background 0.18s ease, color 0.18s ease;
}
.csw-node-item:hover {
background: rgba(255, 255, 255, 0.08);
border: none;
}
.csw-node-item.selected {
background: rgba(255, 255, 255, 0.14) !important;
border: none !important;
box-shadow: none !important;
outline: none !important;
}
.csw-node-icon {
width: 36px;
height: 36px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
background: rgba(255, 255, 255, 0.06);
border: none;
color: rgba(255, 255, 255, 0.8);
flex-shrink: 0;
}
.csw-node-info {
flex: 1;
min-width: 0;
}
.csw-node-name {
font-size: 13px;
font-weight: 500;
color: rgba(255, 255, 255, 0.9);
}
.csw-node-meta {
font-size: 11.5px;
color: rgba(255, 255, 255, 0.45);
margin-top: 2px;
}
.csw-summary {
border-radius: 14px;
background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
border: 1px solid rgba(255, 255, 255, 0.06);
padding: 16px;
}
.csw-summary-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
padding-bottom: 10px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.csw-summary-title {
font-size: 13px;
font-weight: 700;
color: rgba(255, 255, 255, 0.9);
}
.csw-summary-badge {
font-size: 10px;
padding: 4px 8px;
border-radius: 6px;
background: rgba(74, 222, 128, 0.15);
color: #4ade80;
font-weight: 600;
letter-spacing: 0.02em;
}
.csw-summary-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
}
.csw-summary-row:not(:last-child) {
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.csw-summary-label {
font-size: 12px;
color: rgba(255, 255, 255, 0.5);
}
.csw-summary-value {
font-size: 13px;
font-weight: 600;
color: rgba(255, 255, 255, 0.9);
}
.csw-summary-footer {
margin-top: 12px;
font-size: 11px;
color: rgba(255, 255, 255, 0.35);
text-align: center;
}
.csw-fork-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 12px;
}
.csw-fork-grid--spacious {
gap: 16px;
}
.csw-fork-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
padding: 16px 14px;
border-radius: 14px;
background: rgba(45, 45, 45, 0.55);
border: none;
cursor: pointer;
transition: background 0.18s ease, color 0.18s ease;
text-align: center;
}
.csw-fork-item:hover {
background: rgba(255, 255, 255, 0.08);
border: none;
outline: none;
}
.csw-fork-item.selected {
background: rgba(255, 255, 255, 0.14) !important;
border: none !important;
box-shadow: none !important;
outline: none !important;
}
.csw-fork-icon {
width: 44px;
height: 44px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
background: rgba(255, 255, 255, 0.06);
border: none;
color: rgba(255, 255, 255, 0.85);
overflow: hidden;
}
.csw-fork-icon img {
width: 100%;
height: 100%;
object-fit: cover;
}
.csw-fork-name {
font-size: 13px;
font-weight: 700;
color: rgba(255, 255, 255, 0.9);
}
.csw-fork-desc {
font-size: 11px;
color: rgba(255, 255, 255, 0.4);
line-height: 1.4;
}
.csw-port-layout {
display: grid;
gap: 20px;
}
.csw-connection-chip {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
border-radius: 12px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}
.csw-connection-chip i {
color: rgba(74, 222, 128, 0.8);
}
.csw-connection-chip code {
color: rgba(255, 255, 255, 0.9);
font-size: 14px;
background: transparent;
padding: 0;
}
.csw-connection-chip__divider {
color: rgba(255, 255, 255, 0.3);
}
.csw-resources-layout {
display: grid;
gap: 20px;
}
.csw-resources-info {
padding: 16px;
border-radius: 14px;
background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.04));
}
.csw-resources-info__header {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 14px;
font-size: 13px;
font-weight: 600;
color: rgba(255, 255, 255, 0.9);
}
.csw-resources-info__header i {
color: rgba(99, 102, 241, 0.8);
}
.csw-resources-info__grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.csw-resources-info__item {
display: flex;
flex-direction: column;
gap: 4px;
}
.csw-resources-info__label {
font-size: 10px;
color: rgba(255, 255, 255, 0.4);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.csw-resources-info__value {
font-size: 14px;
font-weight: 600;
color: rgba(255, 255, 255, 0.9);
}
.csw-resources-fields {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
}
@media (max-width: 640px) {
.csw-resources-fields {
grid-template-columns: 1fr;
}
.csw-resources-info__grid {
grid-template-columns: 1fr;
}
}
.csw-spinner {
width: 18px;
height: 18px;
border: 2px solid rgba(255, 255, 255, 0.1);
border-top-color: rgba(99, 102, 241, 0.8);
border-radius: 50%;
animation: cswSpin 0.8s linear infinite;
display: none;
}
.csw-spinner.visible {
display: inline-block;
}
@keyframes cswSpin {
to {
transform: rotate(360deg);
}
}
.csw-variables-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 8px;
margin-top: 8px;
}
.csw-variable-chip {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 12px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
font-size: 12px;
color: rgba(255, 255, 255, 0.7);
line-height: 1.4;
}
.csw-variable-chip code {
font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
font-size: 11px;
font-weight: 600;
color: var(--color-accent, #7c5cff);
background: rgba(124, 92, 255, 0.15);
padding: 2px 6px;
border-radius: 4px;
white-space: nowrap;
}
@media (max-width: 640px) {
.csw-variables-grid {
grid-template-columns: 1fr;
}
}
/* Layout helper for the trigger button + search field in the Servers settings header. */
.servers-header-actions {
display: flex;
align-items: center;
gap: 10px;
}