feat(ui): light mode and new theming system (#1468)
This commit is contained in:
+10
-10
@@ -23,7 +23,7 @@
|
||||
|
||||
<div class="section-body">
|
||||
<div class="auth-methods-list">
|
||||
<div class="auth-method-item is-active is-locked">
|
||||
<div class="auth-method-item is-active is-locked border-l-(--p-content-border-color) [&.is-active]:border-l-emerald-500 dark:[&.is-active]:border-l-emerald-300">
|
||||
<div class="auth-method-content">
|
||||
<div class="auth-method-header">
|
||||
<div class="auth-method-icon">
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<div class="auth-method-info">
|
||||
<span class="auth-method-label">{{ t('internal.label') }}</span>
|
||||
<span class="auth-method-status active">{{ t('internal.status') }}</span>
|
||||
<span class="auth-method-status active text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300">{{ t('internal.status') }}</span>
|
||||
</div>
|
||||
</div>
|
||||
<p class="auth-method-description">
|
||||
@@ -45,7 +45,7 @@
|
||||
</p-checkbox>
|
||||
</div>
|
||||
|
||||
<div class="auth-method-item" [class.is-active]="oidcEnabled">
|
||||
<div class="auth-method-item border-l-(--p-content-border-color) [&.is-active]:border-l-emerald-500 dark:[&.is-active]:border-l-emerald-300" [class.is-active]="oidcEnabled">
|
||||
<div class="auth-method-content">
|
||||
<div class="auth-method-header">
|
||||
<div class="auth-method-icon oidc">
|
||||
@@ -55,7 +55,7 @@
|
||||
<span class="auth-method-label">
|
||||
{{ t('oidc.label') }}
|
||||
</span>
|
||||
<span class="auth-method-status" [class.active]="oidcEnabled">
|
||||
<span class="auth-method-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="oidcEnabled">
|
||||
{{ oidcEnabled ? t('oidc.enabled') : t('oidc.disabled') }}
|
||||
</span>
|
||||
</div>
|
||||
@@ -258,7 +258,7 @@
|
||||
(click)="showTestDetails = !showTestDetails"
|
||||
(keydown.enter)="showTestDetails = !showTestDetails">
|
||||
@if (testConnectionResult.success) {
|
||||
<i class="pi pi-check-circle" style="color: var(--p-green-500);"></i>
|
||||
<i class="pi pi-check-circle text-emerald-700 dark:text-emerald-300"></i>
|
||||
<span>{{ t('testConnection.passed') }}</span>
|
||||
} @else {
|
||||
<i class="pi pi-times-circle" style="color: var(--p-red-500);"></i>
|
||||
@@ -298,7 +298,7 @@
|
||||
<div class="test-check-row">
|
||||
@switch (check.status) {
|
||||
@case ('PASS') {
|
||||
<i class="pi pi-check-circle" style="color: var(--p-green-500);"></i>
|
||||
<i class="pi pi-check-circle text-emerald-700 dark:text-emerald-300"></i>
|
||||
}
|
||||
@case ('FAIL') {
|
||||
<i class="pi pi-times-circle" style="color: var(--p-red-500);"></i>
|
||||
@@ -307,7 +307,7 @@
|
||||
<i class="pi pi-exclamation-triangle" style="color: var(--p-yellow-500);"></i>
|
||||
}
|
||||
@case ('SKIP') {
|
||||
<i class="pi pi-minus-circle" style="color: var(--p-surface-400);"></i>
|
||||
<i class="pi pi-minus-circle text-(--color-text-muted)"></i>
|
||||
}
|
||||
}
|
||||
<span class="check-name">{{ check.name }}</span>
|
||||
@@ -368,7 +368,7 @@
|
||||
<div class="toggle-content">
|
||||
<div class="toggle-info">
|
||||
<span class="toggle-label">{{ t('oidcOnly.label') }}</span>
|
||||
<span class="toggle-status" [class.active]="oidcForceOnlyMode">
|
||||
<span class="toggle-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="oidcForceOnlyMode">
|
||||
{{ oidcForceOnlyMode ? t('oidcOnly.enabled') : t('oidcOnly.disabled') }}
|
||||
</span>
|
||||
</div>
|
||||
@@ -410,7 +410,7 @@
|
||||
<div class="toggle-content">
|
||||
<div class="toggle-info">
|
||||
<span class="toggle-label">{{ t('provisioning.autoLabel') }}</span>
|
||||
<span class="toggle-status" [class.active]="autoUserProvisioningEnabled">
|
||||
<span class="toggle-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="autoUserProvisioningEnabled">
|
||||
{{ autoUserProvisioningEnabled ? t('provisioning.autoEnabled') : t('provisioning.autoDisabled') }}
|
||||
</span>
|
||||
</div>
|
||||
@@ -429,7 +429,7 @@
|
||||
<div class="toggle-content">
|
||||
<div class="toggle-info">
|
||||
<span class="toggle-label">{{ t('provisioning.linkLocalLabel') }}</span>
|
||||
<span class="toggle-status" [class.active]="allowLocalAccountLinking">
|
||||
<span class="toggle-status text-(--p-text-muted-color) [&.active]:text-emerald-700 dark:[&.active]:text-emerald-300" [class.active]="allowLocalAccountLinking">
|
||||
{{ allowLocalAccountLinking ? t('provisioning.autoEnabled') : t('provisioning.autoDisabled') }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
+9
-22
@@ -68,19 +68,16 @@
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
|
||||
background: var(--color-card);
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
border-left: 3px solid var(--p-content-border-color);
|
||||
border-left-width: 3px;
|
||||
border-left-style: solid;
|
||||
border-radius: 6px;
|
||||
padding: 1rem;
|
||||
transition: border-color 0.2s ease, background 0.2s ease;
|
||||
|
||||
&:hover:not(.is-locked) {
|
||||
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%);
|
||||
}
|
||||
|
||||
&.is-active {
|
||||
border-left-color: var(--p-green-500);
|
||||
background: var(--color-card);
|
||||
}
|
||||
|
||||
&.is-locked {
|
||||
@@ -145,11 +142,6 @@
|
||||
.auth-method-status {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--p-text-muted-color);
|
||||
|
||||
&.active {
|
||||
color: var(--p-green-400);
|
||||
}
|
||||
}
|
||||
|
||||
.auth-method-description {
|
||||
@@ -370,7 +362,7 @@
|
||||
gap: 0.5rem;
|
||||
padding: 0.625rem 0.875rem;
|
||||
border-radius: 6px;
|
||||
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
|
||||
background: var(--color-card);
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
@@ -380,7 +372,7 @@
|
||||
transition: background 0.15s ease;
|
||||
|
||||
&:hover {
|
||||
background: color-mix(in srgb, var(--ground-background) 40%, var(--p-surface-800) 60%);
|
||||
background: var(--color-card);
|
||||
}
|
||||
|
||||
.toggle-chevron {
|
||||
@@ -403,7 +395,7 @@
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
border-top: none;
|
||||
border-radius: 0 0 6px 6px;
|
||||
background: color-mix(in srgb, var(--ground-background) 60%, var(--p-surface-800) 40%);
|
||||
background: var(--color-card);
|
||||
}
|
||||
|
||||
.test-check-row {
|
||||
@@ -438,7 +430,7 @@
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
|
||||
background: var(--color-card);
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
border-left: 3px solid var(--p-primary-color);
|
||||
border-radius: 6px;
|
||||
@@ -471,11 +463,6 @@
|
||||
.toggle-status {
|
||||
font-size: 0.875rem;
|
||||
font-weight: 600;
|
||||
color: var(--p-text-muted-color);
|
||||
|
||||
&.active {
|
||||
color: var(--p-green-400);
|
||||
}
|
||||
}
|
||||
|
||||
.toggle-description {
|
||||
@@ -562,7 +549,7 @@
|
||||
flex: 1;
|
||||
font-size: 0.8125rem;
|
||||
padding: 0.375rem 0.625rem;
|
||||
background: color-mix(in srgb, var(--ground-background) 50%, var(--p-surface-800) 50%);
|
||||
background: var(--color-card);
|
||||
border: 1px solid var(--p-content-border-color);
|
||||
border-radius: 4px;
|
||||
color: var(--p-text-color);
|
||||
|
||||
Reference in New Issue
Block a user