mirror of
https://github.com/UNITRONIX/BetterDesk.git
synced 2026-10-26 14:30:19 +00:00
b73648651d
Admin page and Go /api/branding schema v1 with logo/contact fields, RustDesk-safe heartbeat projections, i18n, and handler tests. Thanks: INSOLVE (Honorary); Marco Jakobs (@jacotec); MyNameisStitch (@MyNameisStitch); Redspin (@playerumpknow)
116 lines
2.3 KiB
CSS
116 lines
2.3 KiB
CSS
/* Client Branding page */
|
|
|
|
.client-branding-layout {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
|
|
gap: 1.25rem;
|
|
align-items: start;
|
|
}
|
|
|
|
.client-branding-form .form-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 1rem 1.25rem;
|
|
}
|
|
|
|
.client-branding-form .form-field {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.35rem;
|
|
}
|
|
|
|
.client-branding-form .form-field-wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.client-branding-form .form-field input[type="text"],
|
|
.client-branding-form .form-field input[type="email"],
|
|
.client-branding-form .form-field input[type="url"],
|
|
.client-branding-form .form-field input[type="file"] {
|
|
width: 100%;
|
|
}
|
|
|
|
.client-branding-form .color-row {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.client-branding-form .color-row input[type="color"] {
|
|
width: 2.5rem;
|
|
height: 2.5rem;
|
|
padding: 0;
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.client-branding-form .field-hint,
|
|
.client-branding-form .settings-row-hint {
|
|
font-size: 0.85rem;
|
|
opacity: 0.75;
|
|
}
|
|
|
|
.client-branding-previews {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.cb-preview-pane {
|
|
border-radius: 8px;
|
|
padding: 1.25rem;
|
|
background: color-mix(in srgb, var(--cb-accent, #4f6ef7) 12%, var(--surface, #161b22));
|
|
border: 1px solid color-mix(in srgb, var(--cb-accent, #4f6ef7) 35%, transparent);
|
|
min-height: 160px;
|
|
}
|
|
|
|
.cb-preview-logo-wrap {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.cb-preview-logo-wrap img {
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.cb-preview-company {
|
|
font-size: 1.15rem;
|
|
font-weight: 600;
|
|
color: var(--cb-accent, #4f6ef7);
|
|
}
|
|
|
|
.cb-preview-contact {
|
|
margin-top: 0.5rem;
|
|
font-size: 0.9rem;
|
|
opacity: 0.85;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.cb-preview-code {
|
|
margin: 0;
|
|
padding: 0.75rem;
|
|
overflow: auto;
|
|
font-size: 0.8rem;
|
|
border-radius: 6px;
|
|
background: rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.client-branding-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.client-branding-form .form-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|