styles: Consistently use generic fallback font families.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-04-02 18:37:00 -07:00 committed by Anders Kaseorg
parent 1a83112cf9
commit 236e114870
9 changed files with 21 additions and 18 deletions

View File

@ -469,7 +469,7 @@
display: inline;
margin-right: 8px;
font-family: FontAwesome, Yantramanav, "Source Sans 3";
font-family: FontAwesome;
font-weight: 600;
}
}

View File

@ -1,5 +1,5 @@
body {
font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-family: "Source Sans 3", sans-serif;
font-size: 14px;
}

View File

@ -1,5 +1,5 @@
.billing-upgrade-page {
font-family: "Source Sans 3", Helvetica, Arial, sans-serif;
font-family: "Source Sans 3", sans-serif;
background-color: hsl(0, 0%, 98%);
height: 100vh;
@ -131,7 +131,7 @@
span {
background: 0;
box-shadow: none;
font-family: "Source Sans 3", Helvetica, Arial;
font-family: "Source Sans 3", sans-serif;
font-size: 1.4em;
line-height: 20px;
}

View File

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

View File

@ -1,6 +1,6 @@
body {
background-color: hsl(0, 0%, 98%);
font-family: "Source Sans 3", Helvetica, Arial, sans-serif;
font-family: "Source Sans 3", sans-serif;
line-height: 150%;
height: 100%;
font-weight: 300;
@ -274,7 +274,7 @@ html {
}
.title {
font-family: Helvetica;
font-family: Helvetica, sans-serif;
font-size: 100px;
font-weight: bold;
margin-top: 50px;
@ -1299,7 +1299,7 @@ input.new-organization-button {
min-height: calc(100vh - 290px);
height: 100%;
background-color: hsl(163, 42%, 85%);
font-family: "Source Sans 3", Helvetica, Arial, sans-serif;
font-family: "Source Sans 3", sans-serif;
}
.error_page .container {

View File

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

View File

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

View File

@ -33,7 +33,7 @@ html {
}
body {
font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-family: "Source Sans 3", sans-serif;
}
/* Common background color */
@ -47,7 +47,7 @@ input,
button,
select,
textarea {
font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
font-family: "Source Sans 3", sans-serif;
line-height: normal;
}
@ -379,7 +379,7 @@ p.n-margin {
textarea,
input {
font-family: "Source Sans 3", Helvetica, Arial, sans-serif;
font-family: "Source Sans 3", sans-serif;
}
/* Override Bootstrap's fixed sizes for various elements */
@ -1800,7 +1800,7 @@ div.focused_table {
padding-right: 20px;
border: none;
border-radius: 0;
font-family: "Source Sans 3";
font-family: "Source Sans 3", sans-serif;
font-weight: 300;
line-height: $header_height;
}

View File

@ -5,9 +5,12 @@ module.exports = {
rules: {
// Add some exceptions for recommended rules
"at-rule-no-unknown": [true, {ignoreAtRules: ["extend"]}],
"font-family-no-missing-generic-family-keyword": [
true,
{ignoreFontFamilies: ["FontAwesome"]},
],
// Disable recommended rules we don't comply with yet
"font-family-no-missing-generic-family-keyword": null,
"no-descending-specificity": null,
// Disable standard rules we don't comply with yet