mirror of https://github.com/zulip/zulip.git
stylelint: Enable stylelint-high-performance-animation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
f023fa6fc0
commit
2671a5c32c
|
@ -79,6 +79,7 @@
|
||||||
"stackframe": "^1.3.4",
|
"stackframe": "^1.3.4",
|
||||||
"stacktrace-gps": "^3.0.4",
|
"stacktrace-gps": "^3.0.4",
|
||||||
"style-loader": "^4.0.0",
|
"style-loader": "^4.0.0",
|
||||||
|
"stylelint-high-performance-animation": "^1.10.0",
|
||||||
"text-field-edit": "^4.0.0",
|
"text-field-edit": "^4.0.0",
|
||||||
"textarea-caret": "^3.1.0",
|
"textarea-caret": "^3.1.0",
|
||||||
"tippy.js": "^6.3.7",
|
"tippy.js": "^6.3.7",
|
||||||
|
|
|
@ -253,6 +253,9 @@ importers:
|
||||||
style-loader:
|
style-loader:
|
||||||
specifier: ^4.0.0
|
specifier: ^4.0.0
|
||||||
version: 4.0.0(webpack@5.95.0)
|
version: 4.0.0(webpack@5.95.0)
|
||||||
|
stylelint-high-performance-animation:
|
||||||
|
specifier: ^1.10.0
|
||||||
|
version: 1.10.0(stylelint@16.10.0(typescript@5.6.3))
|
||||||
text-field-edit:
|
text-field-edit:
|
||||||
specifier: ^4.0.0
|
specifier: ^4.0.0
|
||||||
version: 4.1.1
|
version: 4.1.1
|
||||||
|
@ -8051,6 +8054,11 @@ packages:
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
stylelint: ^16.1.0
|
stylelint: ^16.1.0
|
||||||
|
|
||||||
|
stylelint-high-performance-animation@1.10.0:
|
||||||
|
resolution: {integrity: sha512-YzNI+E6taN8pwgaM0INazRg4tw23VA17KNMKUVdOeohpnpSyJLBnLVT9NkRcaCFLodK/67smS5VZK+Qe4Ohrvw==}
|
||||||
|
peerDependencies:
|
||||||
|
stylelint: ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0
|
||||||
|
|
||||||
stylelint@16.10.0:
|
stylelint@16.10.0:
|
||||||
resolution: {integrity: sha512-z/8X2rZ52dt2c0stVwI9QL2AFJhLhbPkyfpDFcizs200V/g7v+UYY6SNcB9hKOLcDDX/yGLDsY/pX08sLkz9xQ==}
|
resolution: {integrity: sha512-z/8X2rZ52dt2c0stVwI9QL2AFJhLhbPkyfpDFcizs200V/g7v+UYY6SNcB9hKOLcDDX/yGLDsY/pX08sLkz9xQ==}
|
||||||
engines: {node: '>=18.12.0'}
|
engines: {node: '>=18.12.0'}
|
||||||
|
@ -18380,6 +18388,11 @@ snapshots:
|
||||||
stylelint: 16.10.0(typescript@5.6.3)
|
stylelint: 16.10.0(typescript@5.6.3)
|
||||||
stylelint-config-recommended: 14.0.1(stylelint@16.10.0(typescript@5.6.3))
|
stylelint-config-recommended: 14.0.1(stylelint@16.10.0(typescript@5.6.3))
|
||||||
|
|
||||||
|
stylelint-high-performance-animation@1.10.0(stylelint@16.10.0(typescript@5.6.3)):
|
||||||
|
dependencies:
|
||||||
|
postcss-value-parser: 4.2.0
|
||||||
|
stylelint: 16.10.0(typescript@5.6.3)
|
||||||
|
|
||||||
stylelint@16.10.0(typescript@5.6.3):
|
stylelint@16.10.0(typescript@5.6.3):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@csstools/css-parser-algorithms': 3.0.2(@csstools/css-tokenizer@3.0.2)
|
'@csstools/css-parser-algorithms': 3.0.2(@csstools/css-tokenizer@3.0.2)
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
extends: ["stylelint-config-standard"],
|
extends: ["stylelint-config-standard"],
|
||||||
|
plugins: ["stylelint-high-performance-animation"],
|
||||||
rules: {
|
rules: {
|
||||||
// Add some exceptions for recommended rules
|
// Add some exceptions for recommended rules
|
||||||
"at-rule-no-unknown": [true, {ignoreAtRules: ["extend"]}],
|
"at-rule-no-unknown": [true, {ignoreAtRules: ["extend"]}],
|
||||||
|
@ -37,6 +38,7 @@ module.exports = {
|
||||||
// We use hsl instead of rgb
|
// We use hsl instead of rgb
|
||||||
"rgb",
|
"rgb",
|
||||||
],
|
],
|
||||||
|
"plugin/no-low-performance-animation-properties": [true, {ignore: "paint-properties"}],
|
||||||
|
|
||||||
// Zulip CSS should have no dependencies on external resources
|
// Zulip CSS should have no dependencies on external resources
|
||||||
"function-url-no-scheme-relative": true,
|
"function-url-no-scheme-relative": true,
|
||||||
|
|
|
@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 313 # Last bumped for adding `new_email` to /users/{user_id
|
||||||
# historical commits sharing the same major version, in which case a
|
# historical commits sharing the same major version, in which case a
|
||||||
# minor version bump suffices.
|
# minor version bump suffices.
|
||||||
|
|
||||||
PROVISION_VERSION = (295, 0) # bumped 2024-10-20 to upgrade Python requirements
|
PROVISION_VERSION = (295, 1) # bumped 2024-10-23 for stylelint-high-performance-animation
|
||||||
|
|
|
@ -79,20 +79,20 @@ a.no-underline:hover {
|
||||||
}
|
}
|
||||||
|
|
||||||
&.simplebar-vertical {
|
&.simplebar-vertical {
|
||||||
transition: width 0.2s ease 1s;
|
transition: width 0.2s ease 1s; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
|
|
||||||
&.simplebar-hover {
|
&.simplebar-hover {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
transition: width 0.2s ease;
|
transition: width 0.2s ease; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.simplebar-horizontal {
|
&.simplebar-horizontal {
|
||||||
transition: height 0.2s ease 1s;
|
transition: height 0.2s ease 1s; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
|
|
||||||
&.simplebar-hover {
|
&.simplebar-hover {
|
||||||
height: 15px;
|
height: 15px;
|
||||||
transition: height 0.2s ease;
|
transition: height 0.2s ease; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -840,7 +840,7 @@
|
||||||
width: 0;
|
width: 0;
|
||||||
/* The progress updates seem to come every second or so,
|
/* The progress updates seem to come every second or so,
|
||||||
so this is the smoothest it can probably get. */
|
so this is the smoothest it can probably get. */
|
||||||
transition: width 1s ease-in-out;
|
transition: width 1s ease-in-out; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
background: hsl(204deg 63% 85%);
|
background: hsl(204deg 63% 85%);
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
|
@ -95,7 +95,7 @@
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: 1px solid hsl(0deg 0% 100% / 50%) !important;
|
border-bottom: 1px solid hsl(0deg 0% 100% / 50%) !important;
|
||||||
transition: border 0.4s ease-out;
|
transition: border 0.4s ease-out; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
border-bottom: 2px solid hsl(0deg 0% 100%) !important;
|
border-bottom: 2px solid hsl(0deg 0% 100%) !important;
|
||||||
|
|
|
@ -195,7 +195,7 @@ details summary::-webkit-details-marker {
|
||||||
height: 0;
|
height: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
transition: none 0.05s;
|
transition: none 0.05s;
|
||||||
transition-property: height, opacity;
|
transition-property: height, opacity; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-menu-tab-input-unselect:not(:checked) + .top-menu-submenu-backdrop {
|
.top-menu-tab-input-unselect:not(:checked) + .top-menu-submenu-backdrop {
|
||||||
|
@ -385,7 +385,7 @@ details summary::-webkit-details-marker {
|
||||||
color: hsl(0deg 0% 100% / 80%);
|
color: hsl(0deg 0% 100% / 80%);
|
||||||
|
|
||||||
transition: none 0.2;
|
transition: none 0.2;
|
||||||
transition-property: backdrop-filter, background, bottom, height;
|
transition-property: backdrop-filter, background, bottom, height; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
overscroll-behavior: contain;
|
overscroll-behavior: contain;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -578,7 +578,7 @@ details summary::-webkit-details-marker {
|
||||||
background-position: right;
|
background-position: right;
|
||||||
transition:
|
transition:
|
||||||
background,
|
background,
|
||||||
letter-spacing 0.2s;
|
letter-spacing 0.2s; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-menu-mobile-summary:active::after {
|
.top-menu-mobile-summary:active::after {
|
||||||
|
|
|
@ -1105,7 +1105,7 @@ input.new-organization-button {
|
||||||
fill: hsl(0deg 0% 100%);
|
fill: hsl(0deg 0% 100%);
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
transition: none 0.3s ease;
|
transition: none 0.3s ease;
|
||||||
transition-property: right, top;
|
transition-property: right, top; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -573,7 +573,7 @@ html {
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
|
|
||||||
transition: none 0.3s ease;
|
transition: none 0.3s ease;
|
||||||
transition-property: color, font-size, font-weight, transform;
|
transition-property: color, font-size, font-weight, transform; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
}
|
}
|
||||||
|
|
||||||
&.moving-label {
|
&.moving-label {
|
||||||
|
|
|
@ -84,7 +84,7 @@
|
||||||
color: inherit;
|
color: inherit;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border-bottom: 1px solid hsl(0deg 0% 100% / 50%);
|
border-bottom: 1px solid hsl(0deg 0% 100% / 50%);
|
||||||
transition: border 0.4s ease-out;
|
transition: border 0.4s ease-out; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
background-repeat: repeat-x;
|
background-repeat: repeat-x;
|
||||||
box-shadow: inset 0 -1px 2px hsl(0deg 0% 0% / 15%);
|
box-shadow: inset 0 -1px 2px hsl(0deg 0% 0% / 15%);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
transition: width 0.6s ease;
|
transition: width 0.6s ease; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
}
|
}
|
||||||
|
|
||||||
.progress.active .bar {
|
.progress.active .bar {
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
box-shadow: inset 0 0 5px 0 var(--color-message-reaction-shadow-inner);
|
box-shadow: inset 0 0 5px 0 var(--color-message-reaction-shadow-inner);
|
||||||
transition:
|
transition:
|
||||||
transform 100ms linear,
|
transform 100ms linear,
|
||||||
font-weight 100ms linear;
|
font-weight 100ms linear; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
|
|
||||||
&.reacted {
|
&.reacted {
|
||||||
color: var(--color-message-reaction-text-reacted);
|
color: var(--color-message-reaction-text-reacted);
|
||||||
|
|
|
@ -316,18 +316,20 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-top: hsl(0deg 0% 50%) 0 solid;
|
border-top: hsl(0deg 0% 50%) 0 solid;
|
||||||
transition:
|
transition:
|
||||||
|
/* stylelint-disable-next-line plugin/no-low-performance-animation-properties */
|
||||||
height 0.4s ease-in-out,
|
height 0.4s ease-in-out,
|
||||||
border-top 0.4s step-end,
|
border-top 0.4s step-end,
|
||||||
padding 0.4s step-end;
|
padding 0.4s step-end; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
padding: 0;
|
padding: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
|
|
||||||
&.spoiler-content-open {
|
&.spoiler-content-open {
|
||||||
border-top: hsl(0deg 0% 50%) 1px solid;
|
border-top: hsl(0deg 0% 50%) 1px solid;
|
||||||
transition:
|
transition:
|
||||||
|
/* stylelint-disable-next-line plugin/no-low-performance-animation-properties */
|
||||||
height 0.4s ease-in-out,
|
height 0.4s ease-in-out,
|
||||||
border-top 0.4s step-start,
|
border-top 0.4s step-start,
|
||||||
padding 0.4s step-start;
|
padding 0.4s step-start; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1229,7 +1229,7 @@ div.settings-radio-input-parent {
|
||||||
background-color: var(--color-background-modal);
|
background-color: var(--color-background-modal);
|
||||||
border-top: none;
|
border-top: none;
|
||||||
|
|
||||||
transition: left 0.3s ease;
|
transition: left 0.3s ease; /* stylelint-disable-line plugin/no-low-performance-animation-properties */
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|
||||||
&.show {
|
&.show {
|
||||||
|
|
Loading…
Reference in New Issue