misskey-tools/src/frontend/style.scss

70 lines
1.5 KiB
SCSS
Raw Normal View History

2021-09-01 20:06:33 +09:00
body {
--primary: rgb(134, 179, 0);
--shadow-color: rgba(0, 0, 0, 0.1);
}
.xarticle {
margin: auto;
max-width: 720px;
2021-09-04 22:19:35 +09:00
overflow: hidden;
2021-09-01 20:06:33 +09:00
}
2021-09-04 18:24:11 +09:00
2021-09-05 10:50:35 +09:00
.skeleton {
border-radius: var(--radius);
background: var(--tone-1);
position: relative;
overflow: hidden;
&::after {
content: "";
inset: 0;
position: absolute;
background: linear-gradient(90deg, transparent, var(--tone-2) 50%, transparent 100%);
animation: 1.2s ease-out 0s infinite skeleton;
}
}
2021-09-04 18:24:11 +09:00
.tab {
2021-09-04 22:19:35 +09:00
display: flex;
background: var(--panel);
2021-09-04 18:24:11 +09:00
.item {
position: relative;
2021-09-04 22:19:35 +09:00
background: transparent;
border: none;
color: var(--fg);
padding: calc(var(--margin) / 2) var(--margin);
2021-09-05 10:50:35 +09:00
transition: background 0.2s ease;
2021-09-04 18:24:11 +09:00
&.active {
color: var(--primary);
&::after {
content: "";
width: 100%;
}
}
2021-09-04 22:19:35 +09:00
&:hover {
background: var(--hover);
}
2021-09-04 18:24:11 +09:00
&::after {
content: "";
2021-09-04 22:19:35 +09:00
position: absolute;
transition: width 0.2s ease;
transform-origin: center center;
display: block;
2021-09-04 18:24:11 +09:00
bottom: 0;
2021-09-04 22:19:35 +09:00
height: 2px;
2021-09-04 18:24:11 +09:00
left: 0;
right: 0;
width: 0;
background-color: var(--primary);
}
}
}
2021-09-05 10:50:35 +09:00
@keyframes skeleton {
from {
transform: translateX(-100%);
}
to {
transform: translateX(300%);
}
}