0
0
Fork 0
misskey-tools/src/frontend/style.scss
2022-01-27 21:12:58 +09:00

137 lines
No EOL
2.3 KiB
SCSS

body {
--primary: rgb(134, 179, 0);
--max-width: 1024px;
font-family: "Koruri", sans-serif;
font-feature-settings: "pkna";
}
hr {
height: 4px;
background: var(--dimmed);
border: none;
margin: 64px auto;
width: 50%;
max-width: 400px;
}
.xarticle {
margin: auto;
max-width: var(--max-width);
}
.fade {
animation: 0.3s ease-out 0s fadeIn;
&.down {
animation-name: fadeInUp;
}
&.up {
animation-name: fadeInUp;
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-8px);
}
to {
opacity: 1;
transform: none;
}
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: none;
}
}
.block {
display: block !important;
}
.inline {
display: inline !important;
}
small {
font-size: 0.8rem;
}
.modal {
position: fixed;
inset: 0;
display: flex;
justify-content: center;
align-items: center;
background: #000000c0;
z-index: 40000;
&.top-left {
justify-content: flex-start;
align-items: flex-start;
}
}
.card.dialog {
.dark & {
background: var(--tone-2);
}
min-width: min(100vw, 320px);
max-width: min(100vw, 600px);
}
.modal-menu-wrapper {
display: flex;
position: fixed;
flex-direction: column;
min-width: min(100vw, 240px);
border-radius: var(--radius);
padding: calc(var(--margin) / 2);
background: var(--panel);
}
.login-form {
}
.cat {
&:before, &:after {
background: #df548f;
border: solid 4px currentColor;
box-sizing: border-box;
content: '';
display: inline-block;
height: 50%;
width: 50%;
}
&:before {
border-radius: 0 75% 75%;
transform: rotate(37.5deg) skew(30deg);
}
&:after {
border-radius: 75% 0 75% 75%;
transform: rotate(-37.5deg) skew(-30deg);
}
&.animated:hover {
&:before {
animation: earwiggleleft 1s infinite;
}
&:after {
animation: earwiggleright 1s infinite;
}
}
}