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: Use legacy color notations for older browser compatibility.

Anders Kaseorg20802787582f
diff --git a/static/styles/portico/integrations_dev_panel.css b/static/styles/portico/integrations_dev_panel.css
index aec327542b3..8468af9f3ed 100644
--- a/static/styles/portico/integrations_dev_panel.css
+++ b/static/styles/portico/integrations_dev_panel.css
@@ -8,8 +8,8 @@
margin-left: 3%;
margin-right: 3%;
padding: 20px 10px 15px;
- background-color: hsl(0deg 0% 100% / 48%);
- box-shadow: 0 0 40px hsl(0deg 0% 0% / 6%);
+ background-color: hsla(0, 0%, 100%, 0.48);
+ box-shadow: 0 0 40px hsla(0, 0%, 0%, 0.06);
}
#fixture_body {
diff --git a/static/styles/portico/landing_page.css b/static/styles/portico/landing_page.css
index e7b4b860f07..a472f813b15 100644
--- a/static/styles/portico/landing_page.css
+++ b/static/styles/portico/landing_page.css
@@ -932,11 +932,7 @@ nav {
/* -- compare css -- */
.compare,
.compare-education {
- background: linear-gradient(
- 198deg,
- hsl(170deg 34% 47%),
- hsl(146deg 31% 60%)
- );
+ background: linear-gradient(198deg, hsl(170, 34%, 47%), hsl(146, 31%, 60%));
color: hsl(0, 0%, 100%);
.table-container {
@@ -2444,7 +2440,7 @@ nav {
background-position: center;
.bg-dimmer {
- background-color: hsl(224, 52%, 12%, 75%);
+ background-color: hsl(224, 52%, 12%, 0.75);
}
}
@@ -4456,7 +4452,7 @@ nav {
.portico-landing.why-page.case-study-page {
.bg-dimmer {
- background-color: hsl(224, 52%, 12%, 86%);
+ background-color: hsl(224, 52%, 12%, 0.86);
}
.hero-text {
diff --git a/stylelint.config.js b/stylelint.config.js
index d17e807f124..ea32e122754 100644
--- a/stylelint.config.js
+++ b/stylelint.config.js
@@ -20,6 +20,11 @@ module.exports = {
// Additional stylistic rules
"font-family-name-quotes": "always-where-recommended",
+ // Compatibility with older browsers
+ "alpha-value-notation": "number",
+ "color-function-notation": "legacy",
+ "hue-degree-notation": "number",
+
// Limit language features
"color-no-hex": true,
"color-named": "never",