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.

buttons: Express padding as a CSS variable.

Karl Stolley2996693dbbc7
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index cb89c46180a..6a46bf276dc 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -685,6 +685,9 @@
--length-user-status-circle-popover-menu: 8px;
--length-user-popover-menu-avatar: 64px;
+ /* Buttons */
+ --icon-button-padding: 0.375em;
+
/* Overlay heights for streams modal */
--overlay-container-height: 95vh;
--overlay-container-max-height: 1000px;
diff --git a/web/styles/buttons.css b/web/styles/buttons.css
index 6c5ce691cdd..cd3ea825ac0 100644
--- a/web/styles/buttons.css
+++ b/web/styles/buttons.css
@@ -424,7 +424,7 @@
aspect-ratio: 1;
font-size: var(--base-font-size-px);
background-color: transparent; /* Override button default background color */
- padding: 0.375em;
+ padding: var(--icon-button-padding);
cursor: pointer;
border: none;
border-radius: 4px;
diff --git a/web/styles/settings.css b/web/styles/settings.css
index 29fa7f206e8..c49592ec1d8 100644
--- a/web/styles/settings.css
+++ b/web/styles/settings.css
@@ -469,7 +469,7 @@ select.settings_select {
But here the buttons have bottom padding of 0.375em and thus there is
already some extra space between this and the section below it, so we
reduce the bottom margin by 0.375em. */
- margin-bottom: 0.875em;
+ margin-bottom: calc(1.25em - var(--icon-button-padding));
.modal-field-label {
margin-bottom: 0;