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.

styles: Globally set font-size and a unitless line-height.

Anders Kaseorg5d64c21c3855
diff --git a/static/styles/drafts.css b/static/styles/drafts.css
index 0652d22b291..c4ac6cc4b12 100644
--- a/static/styles/drafts.css
+++ b/static/styles/drafts.css
@@ -39,9 +39,10 @@
.exit-sign {
position: relative;
- top: 3px;
+ top: 1px;
margin-left: 3px;
font-size: 1.5rem;
+ line-height: 1;
font-weight: 600;
cursor: pointer;
}
diff --git a/static/styles/informational_overlays.css b/static/styles/informational_overlays.css
index f23740c2a6f..f4e5a941c53 100644
--- a/static/styles/informational_overlays.css
+++ b/static/styles/informational_overlays.css
@@ -97,8 +97,9 @@
}
.arrow-key {
- font-size: 1.5em;
- padding: 0.1em 0.2em;
+ font-size: 1.36em;
+ line-height: 1;
+ padding: 0 0.2em 0.2em;
}
th {
diff --git a/static/styles/popovers.css b/static/styles/popovers.css
index d9854f5b1af..09d0deaa678 100644
--- a/static/styles/popovers.css
+++ b/static/styles/popovers.css
@@ -275,6 +275,7 @@ ul {
#exit-sign {
font-size: 1.5rem;
+ line-height: 1;
}
#avatar {
diff --git a/static/styles/settings.css b/static/styles/settings.css
index 28953587097..dcfcfd892cc 100644
--- a/static/styles/settings.css
+++ b/static/styles/settings.css
@@ -1439,9 +1439,10 @@ input[type="checkbox"] {
.exit-sign {
float: right;
position: relative;
- top: 3px;
+ top: 1px;
margin-left: 3px;
font-size: 1.5rem;
+ line-height: 1;
font-weight: 600;
cursor: pointer;
}
diff --git a/static/styles/subscriptions.css b/static/styles/subscriptions.css
index ba93b281c9a..68ad6d6cfc7 100644
--- a/static/styles/subscriptions.css
+++ b/static/styles/subscriptions.css
@@ -443,9 +443,10 @@
.exit-sign {
position: relative;
- top: 3px;
+ top: 1px;
margin-left: 3px;
font-size: 1.5rem;
+ line-height: 1;
font-weight: 600;
cursor: pointer;
}
diff --git a/static/styles/user_status.css b/static/styles/user_status.css
index 27c566a789a..05acd3e8d11 100644
--- a/static/styles/user_status.css
+++ b/static/styles/user_status.css
@@ -45,9 +45,10 @@
.user-status-header .exit-sign {
position: relative;
- top: 3px;
+ top: 1px;
margin-left: 3px;
font-size: 1.5rem;
+ line-height: 1;
font-weight: 600;
cursor: pointer;
}
diff --git a/static/styles/zulip.css b/static/styles/zulip.css
index 66361aa015e..6dbe45e2bad 100644
--- a/static/styles/zulip.css
+++ b/static/styles/zulip.css
@@ -37,6 +37,8 @@ html {
}
body {
+ font-size: 14px;
+ line-height: calc(20 / 14);
font-family: "Source Sans 3", sans-serif;
}