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.

banners: Improve banner scaling with font size.

Sayam Samalbf88426cd174
diff --git a/web/styles/app_variables.css b/web/styles/app_variables.css
index 29016e10bc2..d0008247323 100644
--- a/web/styles/app_variables.css
+++ b/web/styles/app_variables.css
@@ -633,20 +633,20 @@
);
/* Banner grid layout variables */
- --banner-horizontal-padding: 13px;
- --banner-vertical-padding: 5px;
+ --banner-horizontal-padding: 0.8125em; /* 13px at 16px/1em */
+ --banner-vertical-padding: 0.3125em; /* 5px at 16px/1em */
--banner-grid-template-areas-lg: ". . . . . . banner-close-button banner-close-button"
". . banner-label . banner-action-buttons . banner-close-button banner-close-button"
". . . . . . banner-close-button banner-close-button";
--banner-grid-template-columns-lg: var(--banner-horizontal-padding) 0 auto
minmax(0, 1fr) auto 0 minmax(0, auto) var(--banner-horizontal-padding);
- --banner-grid-template-rows-lg: 5px auto 5px;
+ --banner-grid-template-rows-lg: 0.3125em auto 0.3125em; /* 5px at 16px/1em */
--banner-grid-template-areas-md: ". . . . banner-close-button banner-close-button"
". . banner-label banner-label banner-close-button banner-close-button"
". banner-action-buttons banner-action-buttons banner-action-buttons . .";
--banner-grid-template-columns-md: var(--banner-horizontal-padding) 0
minmax(auto, 1fr) 0 minmax(0, auto) var(--banner-horizontal-padding);
- --banner-grid-template-rows-md: 5px auto auto 5px;
+ --banner-grid-template-rows-md: 0.3125em auto auto 0.3125em; /* 5px at 16px/1em */
--banner-grid-template-areas-sm: ". . . . banner-close-button banner-close-button"
". . banner-label banner-label banner-close-button banner-close-button"
". banner-action-buttons banner-action-buttons banner-action-buttons banner-action-buttons .";
diff --git a/web/styles/banners.css b/web/styles/banners.css
index 06b7c1349c4..6c3175afedb 100644
--- a/web/styles/banners.css
+++ b/web/styles/banners.css
@@ -39,15 +39,15 @@
.banner-action-buttons {
grid-area: banner-action-buttons;
display: flex;
- gap: 8px;
- margin-left: 10px;
+ gap: 0.5em; /* 8px at 16px/1em */
+ margin-left: 0.625em; /* 10px at 16px/1em */
}
.banner-close-button {
display: flex;
grid-area: banner-close-button;
padding: 0.6875em;
- margin-left: 5px;
+ margin-left: 0.3125em; /* 5px at 16px/1em */
&:focus-visible {
outline-offset: -2px;