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:
@@ -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;
|
||||
|
||||
+4
-4
@@ -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;
|
||||
|
||||
+4
-4
@@ -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;
|
||||
|
||||
+8
-8
@@ -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%); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user