Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

settings_css: Refactor a --view-only-field-horizontal-padding.

PieterCKc24c1f6b2771
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 97834c5ab56..8bb5147f20b 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -700,6 +700,8 @@
--margin-bottom-field-description: 3px;
/* Gap between tabs in the tab picker */
--grid-gap-tab-picker: 2px;
+ /* 10px at 16px */
+ --view-only-field-horizontal-padding: 0.625em;
/*
The tippy arrow which matches the color of the popover's border,
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 5fe33c40c63..a672dee4247 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -1989,8 +1989,8 @@ label.preferences-radio-choice-label {
rendered realm and channel descriptions. */
.settings-view-only-textarea {
margin: 0;
- /* 5px at 16px and 10px at 16px */
- padding: 0.3125em 0.625em;
+ /* 5px at 16px */
+ padding: 0.3125em var(--view-only-field-horizontal-padding);
background-color: var(--background-color-view-only-textarea);
border: var(--input-border-width) solid var(--border-color-textarea);
border-radius: 4px;