UX: theme setting highlight update (#18607)

This commit is contained in:
chapoi 2022-10-15 22:29:37 +02:00 committed by GitHub
parent 3bd94b2794
commit 7ed87979a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 1 deletions

View File

@ -282,6 +282,7 @@
{{#if this.hasSettings}}
<div class="control-unit">
<div class="mini-title">{{i18n "admin.customize.theme.theme_settings"}}</div>
<p><i>{{i18n "admin.customize.theme.overriden_settings_explanation"}}</i></p>
<DSection @class="form-horizontal theme settings control-unit">
{{#each this.settings as |setting|}}
<ThemeSettingEditor @setting={{setting}} @model={{this.model}} @class="theme-setting control-unit" />

View File

@ -109,8 +109,21 @@
}
}
.setting.overridden {
input {
background-color: var(--highlight-medium);
}
h3 {
color: var(--highlight-high);
position: relative;
&:before {
content: "";
position: absolute;
top: 0.5rem;
left: -1rem;
width: 0.5rem;
height: 0.5rem;
border-radius: 100%;
background-color: var(--highlight-high);
}
}
}
.setting.overridden.string {

View File

@ -4844,6 +4844,7 @@ en:
has_overwritten_history: "Current theme version no longer exists because the Git history has been overwritten by a force push."
add: "Add"
theme_settings: "Theme Settings"
overriden_settings_explanation: "Overridden settings are marked with a dot and have a highlighted color. To reset these settings to the default value, press the reset button next to them."
no_settings: "This theme has no settings."
theme_translations: "Theme Translations"
empty: "No items"