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.

settings-ui: Use relative sizes for stream and group rows.

Sahil Batrae79218692f34
diff --git a/web/styles/subscriptions.css b/web/styles/subscriptions.css
index df44f8d8635..0993dc6754f 100644
--- a/web/styles/subscriptions.css
+++ b/web/styles/subscriptions.css
@@ -703,16 +703,16 @@ h4.user_group_setting_subsection_title {
.stream-row,
.group-row {
- padding: 15px 10px 11px;
+ padding: 0.9375em 0.625em 0.6875em; /* 15px 10px 11px at 16px font size */
border-bottom: 1px solid var(--color-border-modal-bar);
cursor: pointer;
display: flex;
.check {
- width: 25px;
- height: 25px;
- margin-right: 12px;
- margin-top: 9px;
+ width: 1.5625em; /* 25px at 16px font size */
+ height: 1.5625em; /* 25px at 16px font size */
+ margin-right: 0.75em; /* 12px at 16px font size */
+ margin-top: 0.5625em; /* 9px at 16px font size */
background-size: 60% auto;
background-repeat: no-repeat;
background-position: center center;
@@ -766,10 +766,10 @@ h4.user_group_setting_subsection_title {
}
.icon {
- width: 35px;
- height: 35px;
- margin-right: 12px;
- margin-top: 4px;
+ width: 2.1875em; /* 35px at 16px font size */
+ height: 2.1875em; /* 35px at 16px font size */
+ margin-right: 0.75em; /* 12px at 16px font size */
+ margin-top: 0.25em; /* 4px at 16px font size */
background-color: hsl(300deg 100% 25%);
border-radius: 4px;
color: hsl(0deg 0% 100%);
@@ -786,18 +786,21 @@ h4.user_group_setting_subsection_title {
}
.sub-info-box {
- width: calc(100% - 90px);
+ /* 5.5em = width of checkmark (1.5625em) + right margin for checkmark (0.75em)
+ + width of privacy icon (2.1875em) + right margin for privacy icon (0.75em) +
+ right margin for this element (0.25em) */
+ width: calc(100% - 5.5em);
}
.group-info-box {
- /* 41px = width of checkmark (25px) + right margin for checkmark (12px)
- + right margin for this element (4px) */
- width: calc(100% - 41px);
+ /* 2.5625em = width of checkmark (1.5625em) + right margin for checkmark (0.75em)
+ + right margin for this element (0.25em) */
+ width: calc(100% - 2.5625em);
}
.sub-info-box,
.group-info-box {
- margin-right: 4px;
+ margin-right: 0.25em; /* 4px at 16px font size */
.top-bar,
.bottom-bar {
@@ -820,7 +823,7 @@ h4.user_group_setting_subsection_title {
.top-bar .stream-name,
.bottom-bar .description {
- margin-right: 12px;
+ margin-right: 0.75em; /* 12px at 16px font size */
}
.top-bar .subscriber-count,
@@ -832,7 +835,7 @@ h4.user_group_setting_subsection_title {
.top-bar .subscriber-count-text,
.top-bar .subscriber-count-lock,
.bottom-bar .stream-message-count-text {
- margin-right: 5px;
+ margin-right: 0.3125em; /* 5px at 16px font size */
}
.top-bar .stream-name {
@@ -840,7 +843,7 @@ h4.user_group_setting_subsection_title {
}
.bottom-bar {
- margin-top: 2px;
+ margin-top: 0.125em; /* 2px at 16px font size */
line-height: 1.5;
}
}