style(frontend): enforce keyframes-name-pattern in scss

- Stylelint:
  - re-enable keyframes-name-pattern in the frontend Stylelint config
  - keep the rule rollout isolated so the animation naming change can be reviewed or reverted independently
- Animation styles:
  - rename camelCase keyframes to kebab-case in the flagged reader, metadata, auth, and directory-picker stylesheets
  - update the matching local animation references in the same files so behavior stays unchanged
- Validation:
  - run just ui stylelint
This commit is contained in:
James Cox
2026-04-22 17:26:46 -04:00
committed by Zach Yale
parent 32765de84c
commit 7058992145
21 changed files with 94 additions and 95 deletions
@@ -4,7 +4,7 @@
height: 100%;
width: 100%;
background: var(--card-background);
animation: fadeIn 0.3s ease-in;
animation: fade-in 0.3s ease-in;
}
// Visibility utilities
@@ -38,7 +38,7 @@
color: var(--p-green-400);
font-size: 0.875rem;
font-weight: 600;
animation: fadeIn 0.3s ease-in;
animation: fade-in 0.3s ease-in;
i {
font-size: 1rem;
@@ -597,7 +597,7 @@
}
// Animation
@keyframes fadeIn {
@keyframes fade-in {
from {
opacity: 0;
}
@@ -161,10 +161,10 @@ $provider-colors: (
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
border: 1px solid var(--border-color);
margin-bottom: 1.25rem;
animation: slideIn 0.3s ease-out;
animation: slide-in 0.3s ease-out;
}
@keyframes slideIn {
@keyframes slide-in {
from {
opacity: 0;
transform: translateX(-20px);
@@ -176,7 +176,7 @@ $provider-colors: (
}
}
@keyframes slideInFromTop {
@keyframes slide-in-from-top {
from {
opacity: 0;
transform: translateY(-20px);
@@ -553,7 +553,7 @@ $provider-colors: (
display: flex;
flex-direction: row;
height: 200px;
animation: slideInFromTop 0.4s ease-out;
animation: slide-in-from-top 0.4s ease-out;
&:hover {
transform: translateY(-4px);
@@ -5,7 +5,7 @@
padding: 0;
width: 100%;
min-height: 100%;
animation: fadeIn 0.3s ease-in;
animation: fade-in 0.3s ease-in;
@media (width >= 768px) {
padding: 0.5rem;
@@ -200,7 +200,7 @@
}
}
@keyframes fadeIn {
@keyframes fade-in {
from {
opacity: 0;
}
@@ -562,10 +562,10 @@ $border-color: rgb(255 255 255 / 10%);
z-index: 100;
display: flex;
flex-direction: column;
animation: slideIn 0.25s ease-out;
animation: slide-in 0.25s ease-out;
box-shadow: -10px 0 40px rgb(0 0 0 / 50%);
@keyframes slideIn {
@keyframes slide-in {
from {
transform: translateX(100%);
opacity: 0.5;
@@ -153,11 +153,11 @@
z-index: 2;
&.fade-in {
animation: fadeIn 0.15s ease-out forwards;
animation: fade-in 0.15s ease-out forwards;
}
}
@keyframes fadeIn {
@keyframes fade-in {
from {
opacity: 0.7;
}
@@ -19,10 +19,10 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
}
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@@ -38,10 +38,10 @@ $transition-normal: 200ms ease;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-up 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
@keyframes slide-up {
from {
transform: translateY(20px);
opacity: 0;
@@ -17,10 +17,10 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
}
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@@ -36,10 +36,10 @@ $transition-normal: 200ms ease;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-up 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
@keyframes slide-up {
from {
transform: translateY(20px);
opacity: 0;
@@ -17,11 +17,11 @@ $transition-normal: 200ms ease;
inset: 0;
z-index: 12000;
background: rgb(0 0 0 / 30%);
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
cursor: pointer;
}
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@@ -35,12 +35,12 @@ $transition-normal: 200ms ease;
border: 1px solid $border-color;
border-radius: 12px;
box-shadow: 0 12px 40px rgb(0 0 0 / 50%);
animation: slideDown 200ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-down 200ms cubic-bezier(0.4, 0, 0.2, 1);
overflow: visible;
cursor: default;
}
@keyframes slideDown {
@keyframes slide-down {
from {
transform: translateY(-8px);
opacity: 0;
@@ -18,10 +18,10 @@ $transition-normal: 200ms ease;
background: rgb(0 0 0 / 40%);
backdrop-filter: blur(2px);
z-index: 12000;
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
&.closing {
animation: fadeOut $transition-normal forwards;
animation: fade-out $transition-normal forwards;
}
}
@@ -37,11 +37,11 @@ $transition-normal: 200ms ease;
flex-direction: column;
color: $text-primary;
box-shadow: 4px 0 24px rgb(0 0 0 / 30%);
animation: slideIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-in 250ms cubic-bezier(0.4, 0, 0.2, 1);
z-index: 12001;
&.closing {
animation: slideOut 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
animation: slide-out 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
}
@@ -520,22 +520,22 @@ $transition-normal: 200ms ease;
}
// Animations
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeOut {
@keyframes fade-out {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes slideIn {
@keyframes slide-in {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
@keyframes slideOut {
@keyframes slide-out {
from { transform: translateX(0); }
to { transform: translateX(-100%); }
}
@@ -19,10 +19,10 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
}
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@@ -38,7 +38,7 @@ $transition-normal: 200ms ease;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-up 250ms cubic-bezier(0.4, 0, 0.2, 1);
@media (width <= 768px) {
width: 95%;
@@ -47,7 +47,7 @@ $transition-normal: 200ms ease;
}
}
@keyframes slideUp {
@keyframes slide-up {
from {
transform: translateY(20px);
opacity: 0;
@@ -198,7 +198,7 @@ $transition-normal: 200ms ease;
}
.metadata-group {
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
&:not(:last-child) {
padding-bottom: 16px;
@@ -19,10 +19,10 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
}
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@@ -38,10 +38,10 @@ $transition-normal: 200ms ease;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-up 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
@keyframes slide-up {
from {
transform: translateY(20px);
opacity: 0;
@@ -18,10 +18,10 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
}
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@@ -36,12 +36,12 @@ $transition-normal: 200ms ease;
max-height: 85vh;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-up 250ms cubic-bezier(0.4, 0, 0.2, 1);
display: flex;
flex-direction: column;
}
@keyframes slideUp {
@keyframes slide-up {
from {
transform: translateY(20px);
opacity: 0;
@@ -158,7 +158,7 @@ $transition-normal: 200ms ease;
}
.tab-content {
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
}
.section-header {
@@ -17,10 +17,10 @@ $transition-normal: 200ms ease;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
}
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@@ -36,10 +36,10 @@ $transition-normal: 200ms ease;
flex-direction: column;
overflow: hidden;
box-shadow: 0 20px 60px rgb(0 0 0 / 50%);
animation: slideUp 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-up 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes slideUp {
@keyframes slide-up {
from {
transform: translateY(20px);
opacity: 0;
@@ -185,7 +185,7 @@ $transition-normal: 200ms ease;
box-shadow: 0 8px 32px rgb(0 0 0 / 50%);
z-index: 1001;
min-width: 380px;
animation: popoverSlideIn 200ms cubic-bezier(0.4, 0, 0.2, 1);
animation: popover-slide-in 200ms cubic-bezier(0.4, 0, 0.2, 1);
color: $text-primary;
.popover-content {
@@ -408,7 +408,7 @@ $transition-normal: 200ms ease;
}
}
@keyframes popoverSlideIn {
@keyframes popover-slide-in {
from {
opacity: 0;
transform: translateX(-50%) translateY(8px);
@@ -432,7 +432,7 @@ $transition-normal: 200ms ease;
right: 16px;
transform: none;
@keyframes popoverSlideIn {
@keyframes popover-slide-in {
from {
opacity: 0;
transform: translateY(8px);
@@ -15,11 +15,11 @@ $transition-normal: 200ms ease;
inset: 0;
z-index: 12000;
background: rgb(0 0 0 / 30%);
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
cursor: pointer;
}
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@@ -33,12 +33,12 @@ $transition-normal: 200ms ease;
border: 1px solid $border-color;
border-radius: 12px;
box-shadow: 0 12px 40px rgb(0 0 0 / 50%);
animation: slideDown 200ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-down 200ms cubic-bezier(0.4, 0, 0.2, 1);
overflow: visible;
cursor: default;
}
@keyframes slideDown {
@keyframes slide-down {
from {
transform: translateY(-8px);
opacity: 0;
@@ -18,10 +18,10 @@ $transition-normal: 200ms ease;
background: rgb(0 0 0 / 40%);
backdrop-filter: blur(1px);
z-index: 12000;
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
&.closing {
animation: fadeOut $transition-normal forwards;
animation: fade-out $transition-normal forwards;
}
}
@@ -37,11 +37,11 @@ $transition-normal: 200ms ease;
flex-direction: column;
color: $text-primary;
box-shadow: -4px 0 24px rgb(0 0 0 / 30%);
animation: slideInRight 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-in-right 250ms cubic-bezier(0.4, 0, 0.2, 1);
z-index: 12001;
&.closing {
animation: slideOutRight 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
animation: slide-out-right 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
}
@@ -529,22 +529,22 @@ $transition-normal: 200ms ease;
}
// Animations
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeOut {
@keyframes fade-out {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes slideInRight {
@keyframes slide-in-right {
from { transform: translateX(100%); }
to { transform: translateX(0); }
}
@keyframes slideOutRight {
@keyframes slide-out-right {
from { transform: translateX(0); }
to { transform: translateX(100%); }
}
@@ -18,10 +18,10 @@ $transition-normal: 200ms ease;
background: rgb(0 0 0 / 40%);
backdrop-filter: blur(2px);
z-index: 12000;
animation: fadeIn $transition-normal;
animation: fade-in $transition-normal;
&.closing {
animation: fadeOut $transition-normal forwards;
animation: fade-out $transition-normal forwards;
}
}
@@ -37,11 +37,11 @@ $transition-normal: 200ms ease;
flex-direction: column;
color: $text-primary;
box-shadow: 4px 0 24px rgb(0 0 0 / 30%);
animation: slideIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
animation: slide-in 250ms cubic-bezier(0.4, 0, 0.2, 1);
z-index: 12001;
&.closing {
animation: slideOut 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
animation: slide-out 200ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
}
@@ -531,22 +531,22 @@ $transition-normal: 200ms ease;
}
// Animations
@keyframes fadeIn {
@keyframes fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeOut {
@keyframes fade-out {
from { opacity: 1; }
to { opacity: 0; }
}
@keyframes slideIn {
@keyframes slide-in {
from { transform: translateX(-100%); }
to { transform: translateX(0); }
}
@keyframes slideOut {
@keyframes slide-out {
from { transform: translateX(0); }
to { transform: translateX(-100%); }
}
@@ -17,14 +17,14 @@
box-shadow: 0 4px 16px rgb(0 0 0 / 30%), 0 0 1px rgb(0 0 0 / 20%);
z-index: 99999;
transform: translateX(-50%);
animation: popupFadeIn 0.15s ease-out;
animation: popup-fade-in 0.15s ease-out;
&.show-below {
animation: popupFadeInBelow 0.15s ease-out;
animation: popup-fade-in-below 0.15s ease-out;
}
}
@keyframes popupFadeIn {
@keyframes popup-fade-in {
from {
opacity: 0;
transform: translateX(-50%) translateY(4px);
@@ -36,7 +36,7 @@
}
}
@keyframes popupFadeInBelow {
@keyframes popup-fade-in-below {
from {
opacity: 0;
transform: translateX(-50%) translateY(-4px);
@@ -121,16 +121,16 @@
&.above {
bottom: calc(100% + 8px);
animation: slideUp 0.15s ease-out;
animation: slide-up 0.15s ease-out;
}
&.below {
top: calc(100% + 8px);
animation: slideDown 0.15s ease-out;
animation: slide-down 0.15s ease-out;
}
}
@keyframes slideUp {
@keyframes slide-up {
from {
opacity: 0;
transform: translateX(-50%) translateY(6px);
@@ -142,7 +142,7 @@
}
}
@keyframes slideDown {
@keyframes slide-down {
from {
opacity: 0;
transform: translateX(-50%) translateY(-6px);
@@ -311,7 +311,7 @@
}
&.fade-in {
animation: fadeInUp 0.4s ease-out;
animation: fade-in-up 0.4s ease-out;
}
&::-webkit-scrollbar {
@@ -337,7 +337,7 @@
scrollbar-color: var(--border-color) var(--overlay-background);
}
@keyframes fadeInUp {
@keyframes fade-in-up {
from {
opacity: 0;
transform: translateY(-10px);
@@ -360,7 +360,7 @@
transition: all 0.3s ease;
cursor: pointer;
opacity: 0;
animation: fadeInItem 0.3s ease-out forwards;
animation: fade-in-item 0.3s ease-out forwards;
width: 100%;
max-width: 100%;
@@ -496,7 +496,7 @@
}
}
@keyframes fadeInItem {
@keyframes fade-in-item {
from {
opacity: 0;
transform: translateY(-10px);
@@ -30,7 +30,7 @@
max-width: $max-width;
position: relative;
z-index: 1;
animation: slideUp 0.6s ease-out;
animation: slide-up 0.6s ease-out;
@media (width <= 640px) {
width: 95%;
@@ -172,7 +172,7 @@
color: #ef4444;
font-size: 0.8rem;
margin-top: -0.25rem;
animation: fadeIn 0.3s ease-out;
animation: fade-in 0.3s ease-out;
i {
font-size: 0.75rem;
@@ -207,18 +207,18 @@
}
@mixin message-container {
animation: fadeIn 0.3s ease-out;
animation: fade-in 0.3s ease-out;
}
@mixin error-message {
animation: shake 0.4s ease-in-out, fadeIn 0.3s ease-out;
animation: shake 0.4s ease-in-out, fade-in 0.3s ease-out;
}
@mixin success-message {
animation: successPulse 0.5s ease-out;
animation: success-pulse 0.5s ease-out;
}
@keyframes slideUp {
@keyframes slide-up {
from {
opacity: 0;
transform: translateY(30px);
@@ -230,7 +230,7 @@
}
}
@keyframes fadeIn {
@keyframes fade-in {
from {
opacity: 0;
}
@@ -278,7 +278,7 @@
}
}
@keyframes successPulse {
@keyframes success-pulse {
0% {
opacity: 0;
transform: scale(0.95);
-1
View File
@@ -2,7 +2,6 @@ module.exports = {
extends: ["stylelint-config-standard-scss"],
ignoreFiles: ["dist/**", "node_modules/**"],
rules: {
"keyframes-name-pattern": null,
"no-descending-specificity": null,
"no-invalid-position-declaration": null,
"property-no-vendor-prefix": null,