Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
css: Refactor theme colors for `.demo-organization-warning`.
sanchi-t72971cda8e25
diff --git a/web/styles/app_components.css b/web/styles/app_components.cssindex 50ae89fffb2..e3f900afddf 100644--- a/web/styles/app_components.css+++ b/web/styles/app_components.css@@ -586,14 +586,16 @@ input.settings_text_input {.demo-organization-warning {position: relative;display: block;- background-color: hsl(4deg 35% 90%);- border: 1px solid hsl(3deg 57% 33% / 40%);+ background-color: var(+ --color-background-settings-demo-organization-warning+ );+ border: 1px solid var(--color-border-settings-demo-organization-warning);border-radius: 4px;padding: 10px;margin: 10px 0;font-size: 1rem;line-height: 1.5;- color: hsl(4deg 58% 33%);+ color: var(--color-text-settings-demo-organization-warning);a {text-decoration: none;@@ -601,7 +603,8 @@ input.settings_text_input {.convert-demo-organization-button {&:focus {- outline: 1px solid hsl(200deg 100% 25%);+ outline: 1px solid+ var(--color-focus-outline-settings-convert-demo-organization);outline-offset: 0;}}diff --git a/web/styles/app_variables.css b/web/styles/app_variables.cssindex 7073f8f66ab..c2710614b17 100644--- a/web/styles/app_variables.css+++ b/web/styles/app_variables.css@@ -723,6 +723,14 @@--color-text-url-hover: hsl(200deg 100% 25%);--color-text-settings-field-hint: hsl(0deg 0% 57%);+ /* Demo Organization colors */+ --color-text-settings-demo-organization-warning: hsl(4deg 58% 33%);+ --color-background-settings-demo-organization-warning: hsl(4deg 35% 90%);+ --color-border-settings-demo-organization-warning: hsl(3deg 57% 33% / 40%);+ --color-focus-outline-settings-convert-demo-organization: hsl(+ 200deg 100% 25%+ );+/* Markdown colors */--color-background-rendered-markdown-thead: hsl(0deg 0% 93%);--color-border-rendered-markdown-table: hsl(0deg 0% 80%);@@ -1204,6 +1212,15 @@--color-text-url-hover: hsl(200deg 79% 66%);--color-text-settings-field-hint: hsl(0deg 0% 52%);+ /* Demo Organization colors */+ --color-text-settings-demo-organization-warning: hsl(3deg 73% 80%);+ --color-background-settings-demo-organization-warning: hsl(0deg 60% 19%);+ --color-border-settings-demo-organization-warning: hsl(3deg 73% 74% / 40%);+ --color-focus-text-settings-convert-demo-organization: hsl(200deg 79% 66%);+ --color-focus-outline-settings-convert-demo-organization: hsl(+ 200deg 79% 66%+ );+/* Markdown colors */--color-background-rendered-markdown-thead: hsl(0deg 0% 0% / 50%);--color-border-rendered-markdown-table: hsl(0deg 0% 33%);diff --git a/web/styles/dark_theme.css b/web/styles/dark_theme.cssindex 89cfb0dfce4..d73116f08d7 100644--- a/web/styles/dark_theme.css+++ b/web/styles/dark_theme.css@@ -13,19 +13,6 @@@extend .placeholder;}- .demo-organization-warning {- background-color: hsl(0deg 60% 19%);- border-color: hsl(3deg 73% 74% / 40%);- color: hsl(3deg 73% 80%);-- .convert-demo-organization-button {- &:focus {- color: hsl(200deg 79% 66%);- outline-color: hsl(200deg 79% 66%);- }- }- }-&a:not(.button,