mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-28 23:43:43 +08:00
Restore keyboard navigation and fix page refresh, icons, and table interactions. Guard concurrent edits and align Mock persistence with the API contracts.
39 lines
773 B
SCSS
39 lines
773 B
SCSS
.r-icon {
|
|
position: relative;
|
|
width: var(--r-icon-width);
|
|
height: var(--r-icon-height);
|
|
border: none;
|
|
outline: none;
|
|
text-align: center;
|
|
display: inline-flex;
|
|
flex-shrink: 0;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: var(--r-icon-color);
|
|
opacity: var(--r-icon-depth);
|
|
cursor: var(--r-icon-cursor);
|
|
|
|
> svg {
|
|
display: block;
|
|
width: var(--r-icon-width);
|
|
height: var(--r-icon-height);
|
|
}
|
|
}
|
|
|
|
.r-icon-path__animate {
|
|
stroke-dasharray: var(--r-icon-path-length);
|
|
stroke-dashoffset: var(--r-icon-path-length);
|
|
animation: rayIconPathAnimate 2s forwards;
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
animation: none;
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes rayIconPathAnimate {
|
|
to {
|
|
stroke-dashoffset: 0;
|
|
}
|
|
}
|