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.

inbox: Use em for more spacing measurements.

evykassirer454803ea4d9f
diff --git a/web/styles/inbox.css b/web/styles/inbox.css
index be14a2ed043..beb0ad14249 100644
--- a/web/styles/inbox.css
+++ b/web/styles/inbox.css
@@ -142,7 +142,7 @@
.inbox-focus-border {
display: flex;
- min-height: 30px;
+ min-height: 1.875em; /* 30px at 16px em */
border: 2px solid transparent;
border-radius: 3px;
box-sizing: border-box;
@@ -152,10 +152,10 @@
.inbox-header {
user-select: none;
display: block;
- height: 30px;
+ height: 1.875em; /* 30px at 16px em */
.inbox-focus-border {
- height: 30px;
+ height: 1.875em; /* 30px at 16px em */
}
.inbox-left-part {
@@ -212,7 +212,6 @@
.zulip-icon-user,
.stream-privacy.filter-icon {
- font-size: 16px;
margin: 0;
margin-right: 1px;
}
@@ -229,9 +228,8 @@
}
.zulip-icon-arrow-down {
- font-size: 16px;
- padding: 5px 4px;
- margin-right: 9px;
+ padding: 0.3125em 0.25em; /* 5px 4px at 16px em */
+ margin-right: 0.5625em; /* 9px at 16px em */
opacity: 0.5;
}
@@ -350,10 +348,9 @@
margin-left: 17px;
.zulip-icon {
- line-height: 14px;
- font-size: 16px;
- height: 16px;
- width: 16px;
+ line-height: 0.875em; /* 14px at 16px em */
+ height: 1em;
+ width: 1em;
}
}
@@ -385,8 +382,8 @@
#inbox-direct-messages-container .inbox-left-part,
.inbox-topic-container .inbox-left-part {
- /* 50px - space occupied by user circle icon */
- padding-left: 37px;
+ /* 37px (50px - space occupied by user circle icon) at 16px */
+ padding-left: 2.3125em;
}
.inbox-left-part {
@@ -468,8 +465,7 @@
}
& i {
- padding: 5px;
- font-size: 16px;
+ padding: 0.3125em; /* 5px at 16px em */
opacity: 0.3;
color: var(--color-vdots-hover);