css: Use variable font when using Source Sans 3.

This is to overcome the limitations of previous static font,
which didn't allow us to use various font widths.
This commit is contained in:
Aman Agrawal 2023-03-27 10:47:59 +00:00 committed by Tim Abbott
parent 8cea85523b
commit 233b486618
13 changed files with 17 additions and 17 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -10,7 +10,7 @@ import "../../third/bootstrap/css/bootstrap-btn.css";
import "simplebar/dist/simplebar.css";
import "font-awesome/css/font-awesome.css";
import "../../images/icons/zulip-icons.font";
import "source-sans/source-sans-3.css";
import "source-sans/source-sans-3VF.css";
import "source-code-pro/source-code-pro.css";
import "../../styles/alerts.css";
import "../../styles/modal.css";

View File

@ -745,7 +745,7 @@ input.recipient_box {
.compose_draft_button {
font-size: 15px;
font-weight: 600;
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
padding: 0 5px;
position: relative;
top: 0.7px;

View File

@ -3,7 +3,7 @@
}
.billing-upgrade-page {
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
background-color: hsl(0deg 0% 98%);
height: 100vh;
@ -151,7 +151,7 @@
& span {
background: 0;
box-shadow: none;
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
line-height: 20px;
}
}

View File

@ -287,14 +287,14 @@
.tip::before {
display: inline;
content: "\f0eb Tip: ";
font-family: FontAwesome, "Source Sans 3", sans-serif;
font-family: FontAwesome, "Source Sans 3 VF", sans-serif;
font-weight: 600;
}
.keyboard_tip::before {
display: inline;
content: "\f11c Keyboard shortcut: ";
font-family: FontAwesome, "Source Sans 3", sans-serif;
font-family: FontAwesome, "Source Sans 3 VF", sans-serif;
font-weight: 600;
}

View File

@ -4,7 +4,7 @@
body {
background-color: hsl(0deg 0% 98%);
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
line-height: 150%;
height: 100%;
font-weight: 300;
@ -985,7 +985,7 @@ input.new-organization-button {
min-height: calc(100vh - 290px);
height: 100%;
background-color: hsl(163deg 42% 85%);
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
}
.error_page .container {

View File

@ -406,7 +406,7 @@ html {
vertical-align: top;
padding: 13px 22px;
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
font-size: 1.2rem;
font-weight: 400;
@ -517,7 +517,7 @@ html {
padding: 10px 32px 10px 12px;
margin: 25px 0 5px;
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
font-size: 1.2rem;
line-height: normal;
height: auto;

View File

@ -1,5 +1,5 @@
body {
font-family: "Source Sans 3", sans-serif !important;
font-family: "Source Sans 3 VF", sans-serif !important;
background-color: hsl(0deg 0% 98%);
}
@ -109,7 +109,7 @@ p {
}
.button {
font-family: "Source Sans 3", sans-serif !important;
font-family: "Source Sans 3 VF", sans-serif !important;
border: none;
border-radius: 4px;
outline: none;

View File

@ -70,7 +70,7 @@
padding-right: 40px;
border: none;
border-radius: 0;
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
font-weight: 300;
line-height: var(--header-height);
text-overflow: ellipsis;

View File

@ -3,7 +3,7 @@
* which have different font-family, we force font-family
* for tooltips here.
*/
font-family: "Source Sans 3", sans-serif !important;
font-family: "Source Sans 3 VF", sans-serif !important;
overflow-wrap: anywhere;
/* Contains stylistic variant of upper-case character "I" in Source Sans 3 */
font-feature-settings: "ss01" on;

View File

@ -24,7 +24,7 @@ body {
width: 100%;
font-size: 14px;
line-height: calc(20 / 14);
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
color: var(--color-text-default);
background-color: var(--color-background);
transition: background-color 200ms linear;
@ -236,7 +236,7 @@ input,
button,
select,
textarea {
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
/* Disable bootstrap size CSS; we want to use our default font size on
body for input elements. */
line-height: normal;
@ -720,7 +720,7 @@ body.has-overlay-scrollbar {
textarea,
input {
font-family: "Source Sans 3", sans-serif;
font-family: "Source Sans 3 VF", sans-serif;
}
/* Override Bootstrap's fixed sizes for various elements */