0
0
Fork 0

最新XelticaUIの適用

This commit is contained in:
xeltica 2021-09-09 12:04:38 +09:00
parent 17a12d127c
commit 440268a24a
2 changed files with 2 additions and 63 deletions

View file

@ -1,6 +1,5 @@
body { body {
--primary: rgb(134, 179, 0); --primary: rgb(134, 179, 0);
--shadow-color: rgba(0, 0, 0, 0.1);
} }
.xarticle { .xarticle {
@ -8,70 +7,10 @@ body {
max-width: 720px; max-width: 720px;
} }
.skeleton {
border-radius: var(--radius);
background: var(--tone-2);
position: relative;
overflow: hidden;
&::after {
content: "";
inset: 0;
position: absolute;
background: linear-gradient(90deg, transparent, var(--tone-3) 50%, transparent 100%);
animation: 1.2s ease-out 0s infinite skeleton;
}
}
.fade { .fade {
animation: 0.3s ease-out 0s fadeIn; animation: 0.3s ease-out 0s fadeIn;
} }
.tab {
display: flex;
flex-wrap: wrap;
background: var(--panel);
.item {
position: relative;
background: transparent;
border: none;
color: var(--fg);
padding: calc(var(--margin) / 2) var(--margin);
transition: background 0.2s ease;
&.active {
color: var(--primary);
&::after {
content: "";
width: 100%;
}
}
&:hover {
background: var(--hover);
}
&::after {
content: "";
position: absolute;
transition: width 0.2s ease;
transform-origin: center center;
display: block;
bottom: 0;
height: 2px;
left: 0;
right: 0;
width: 0;
background-color: var(--primary);
}
}
}
@keyframes skeleton {
from {
transform: translateX(-100%);
}
to {
transform: translateX(300%);
}
}
@keyframes fadeIn { @keyframes fadeIn {
from { from {
opacity: 0; opacity: 0;

View file

@ -5586,8 +5586,8 @@ xdg-basedir@^4.0.0:
integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q== integrity sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==
xeltica-ui@xeltica/ui: xeltica-ui@xeltica/ui:
version "1.0.0-alpha.6" version "1.0.0-alpha.7"
resolved "https://codeload.github.com/xeltica/ui/tar.gz/07ed1214a91994f58fc4b0bc7be53a7120ba53f5" resolved "https://codeload.github.com/xeltica/ui/tar.gz/765a73de505b5e405021b8ce182f4e3627560e72"
xml2js@^0.4.17: xml2js@^0.4.17:
version "0.4.23" version "0.4.23"