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: Enable stylelint font-family-name-quotes rule.

Anders Kaseorg18ce4aed8bd1
diff --git a/static/styles/alerts.scss b/static/styles/alerts.scss
index 3592c218519..91bd97ffd92 100644
--- a/static/styles/alerts.scss
+++ b/static/styles/alerts.scss
@@ -175,7 +175,7 @@ $alert-error-red: hsl(0, 80%, 40%);
top: 10px;
left: 12px;
- font-family: "FontAwesome";
+ font-family: FontAwesome;
font-size: 1.3em;
content: "\f071";
diff --git a/static/styles/app_components.scss b/static/styles/app_components.scss
index 86888e44d0e..9a00aa2b84a 100644
--- a/static/styles/app_components.scss
+++ b/static/styles/app_components.scss
@@ -473,7 +473,7 @@
display: inline;
margin-right: 8px;
- font-family: FontAwesome, "Yantramanav", Source Sans Pro;
+ font-family: FontAwesome, Yantramanav, "Source Sans Pro";
font-weight: 600;
}
}
diff --git a/static/styles/portico/billing.scss b/static/styles/portico/billing.scss
index 3510421fc09..cb6bd3bbc42 100644
--- a/static/styles/portico/billing.scss
+++ b/static/styles/portico/billing.scss
@@ -1,5 +1,5 @@
.billing-upgrade-page {
- font-family: Source Sans Pro, Helvetica, Arial, sans-serif;
+ font-family: "Source Sans Pro", Helvetica, Arial, sans-serif;
background-color: hsl(0, 0%, 98%);
height: 100vh;
diff --git a/static/styles/portico/markdown.scss b/static/styles/portico/markdown.scss
index e32210b64ae..b83a6175517 100644
--- a/static/styles/portico/markdown.scss
+++ b/static/styles/portico/markdown.scss
@@ -241,14 +241,14 @@
.tip::before {
display: inline;
content: "\f0eb Tip: ";
- font-family: FontAwesome, "Yantramanav", Source Sans Pro;
+ font-family: FontAwesome, Yantramanav, "Source Sans Pro";
font-weight: 600;
}
.keyboard_tip::before {
display: inline;
content: "\f11c Keyboard Shortcut: ";
- font-family: FontAwesome, "Yantramanav", Source Sans Pro;
+ font-family: FontAwesome, Yantramanav, "Source Sans Pro";
font-weight: 600;
}
diff --git a/static/styles/settings.scss b/static/styles/settings.scss
index 6b4b8f297e6..06e95e146bf 100644
--- a/static/styles/settings.scss
+++ b/static/styles/settings.scss
@@ -896,7 +896,7 @@ input[type="checkbox"] {
}
.api_key .api-key-value-and-button {
- font-family: "Inconsolata", Menlo, monospace;
+ font-family: Inconsolata, Menlo, monospace;
font-size: 0.85em;
display: flex;
}
diff --git a/static/styles/subscriptions.scss b/static/styles/subscriptions.scss
index 4eb16690b89..2f17557e93c 100644
--- a/static/styles/subscriptions.scss
+++ b/static/styles/subscriptions.scss
@@ -943,7 +943,7 @@ form#add_new_subscription {
&:empty::before {
content: "\f040";
- font-family: "FontAwesome";
+ font-family: FontAwesome;
font-size: 0.8rem;
font-weight: normal;
}
diff --git a/stylelint.config.js b/stylelint.config.js
index 64c1cb176ca..6d85f1417c0 100644
--- a/stylelint.config.js
+++ b/stylelint.config.js
@@ -19,6 +19,9 @@ module.exports = {
"declaration-empty-line-before": null,
"length-zero-no-unit": null,
+ // Additional stylistic rules
+ "font-family-name-quotes": "always-where-recommended",
+
// Limit language features
"color-no-hex": true,
"color-named": "never",