Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
popovers: Allow font-size-based lengths to scale.
Karl Stolleya2de1a5f985b
diff --git a/web/styles/popovers.css b/web/styles/popovers.cssindex b5396ac9691..36cd8d3dd6c 100644--- a/web/styles/popovers.css+++ b/web/styles/popovers.css@@ -225,6 +225,8 @@margin-right: 10px;.sp-container {+ /* The base-font size for the color container is 12px,+ inherited from the upstream spectrum.css file. */background-color: hsl(0deg 0% 100%);cursor: pointer;border: none;@@ -246,7 +248,8 @@border: 1px solid hsl(0deg 0% 80%);border-radius: 4px;color: hsl(0deg 0% 25%);- font-size: 12px;+ /* 12px at 12px/1em */+ font-size: 1em;padding: 6px;text-transform: capitalize;text-align: center;@@ -417,7 +420,8 @@ ul.popover-group-menu-member-list {}#exit-sign {- font-size: 1.5rem;+ /* 24px at 14px/1em */+ font-size: 1.7143em;line-height: 1;}@@ -457,11 +461,13 @@ ul.popover-group-menu-member-list {.user-profile-manage-own-edit-button,.user-profile-manage-others-edit-button {text-decoration: none;- font-size: 15px;+ /* 15px at 14px/1em */+ font-size: 1.0714em;}.user-profile-manage-own-copy-link-button {- font-size: 19px;+ /* 19px at 14px/1em */+ font-size: 1.3571em;text-decoration: none;}@@ -531,7 +537,8 @@ ul.popover-group-menu-member-list {margin: 0;display: inline-block;font-weight: inherit;- font-size: 21px;+ /* 21px at 14px/1em */+ font-size: 1.5em;}#user-profile-streams-tab {@@ -826,6 +833,7 @@ ul.popover-group-menu-member-list {}#move_topic_modal {+ /* Modals have a 16px/1em base font-size. */& form {margin: 0;}@@ -836,7 +844,8 @@ ul.popover-group-menu-member-list {.dropdown-widget-button {outline: none;- line-height: 24px;+ /* 24px at 16px/1em */+ line-height: 1.5em;width: auto;max-width: 206px;}@@ -848,9 +857,11 @@ ul.popover-group-menu-member-list {color: var(--color-text-default);.stream-privacy-type-icon {- font-size: 13px;- width: 13px;- height: 13px;+ /* 13px at 16px/1em */+ font-size: 0.8125em;+ /* 13px at 13px/1em */+ width: 1em;+ height: 1em;position: relative;top: 2px;}@@ -924,7 +935,8 @@ ul.popover-group-menu-member-list {.recipient-bar-topic-visibility-switcher {.tab-option-content {- font-size: 15px;+ /* 15px at 14px/1em */+ font-size: 1.0714em;color: var(--color-text-popover-menu);gap: 10px;justify-content: flex-start;@@ -1077,18 +1089,20 @@ ul.popover-group-menu-member-list {}.full-name {- font-size: 18px;+ /* 18px at 14px/1em */+ font-size: 1.2857;font-weight: 600;- line-height: 20px;+ /* 20px at 18px/1em */+ line-height: 1.1111em;color: var(--color-text-full-name) !important;max-width: 150px;word-break: break-word;}.user-type {- font-size: 14px;font-weight: 400;- line-height: 16px;+ /* 16px at 14px/1em */+ line-height: 1.1429em;color: var(--color-text-item) !important;}}@@ -1135,14 +1149,18 @@ ul.popover-group-menu-member-list {align-items: flex-start;gap: 5px;padding: 3px 10px;- font-size: 15px;- line-height: 16px;+ /* 15px at 15px/1em */+ font-size: 1em;+ /* 16px at 15px/1em */+ line-height: 1.0667em;min-height: 26px;.popover-menu-icon {- width: 16px;- height: 16px;- font-size: 16px;+ /* 16px at 15px/1em */+ font-size: 1.0667em;+ /* 16px at 16px/1em */+ width: 1em;+ height: 1em;text-align: center;}}@@ -1208,8 +1226,9 @@ ul.popover-group-menu-member-list {.status_emoji {align-self: flex-start;flex-shrink: 0;- width: 16px;- height: 16px;+ /* 16px at 15px/1em */+ width: 1.0667em;+ height: 1.0667em;}.zulip-icon {@@ -1303,10 +1322,12 @@ ul.popover-group-menu-member-list {.org-info {display: flex;justify-content: flex-start;- font-size: 15px;+ /* 15px at 14px/1em */+ font-size: 1.0714em;font-style: normal;font-weight: 400;- line-height: 16px; /* 114.286% */+ /* 16px at 15px/1em */+ line-height: 1.0667em;letter-spacing: 0.28px;&:focus-within {@@ -1347,14 +1368,17 @@ ul.popover-group-menu-member-list {}.org-name {- font-size: 17px;+ /* 17px at 15px/1em */+ font-size: 1.1333em;font-weight: 600;- line-height: 22px;+ /* 22px at 17px/1em */+ line-height: 1.2941em;padding: 0 10px;}.org-upgrade {- font-size: 14px;+ /* 14px at 15px/1em */+ font-size: 0.9333em;}.org-upgrade,@@ -1390,10 +1414,12 @@ ul.popover-menu-list {box-sizing: border-box;color: var(--color-popover-hotkey-hint);text-align: center;- font-size: 14px;+ /* 14px at 15px/1em */+ font-size: 0.9333em;font-style: normal;font-weight: 500;- line-height: 14px;+ /* 14px at 14px/1em */+ line-height: 1em;min-width: 1.25rem;padding: 2px 4px;border-radius: 3px;