mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
banners: Improve banner scaling with font size.
This commit converts the pixel values to em instead to make the banner scale better with the different font sizes.
This commit is contained in:
@@ -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 .";
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user