1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-18 08:38:01 +09:00
elk/styles/global.css
2022-11-27 14:16:02 +08:00

106 lines
1.8 KiB
CSS

* {
scrollbar-color: #8885 var(--c-border);
}
::-webkit-scrollbar {
width: 10px;
}
::-webkit-scrollbar:horizontal {
height: 10px;
}
::-webkit-scrollbar-track {
background: var(--c-border);
border-radius: 1px;
}
::-webkit-scrollbar-thumb {
background: #8885;
border-radius: 1px;
}
::-webkit-scrollbar-thumb:hover {
background: #8886;
}
::-moz-selection {
background: var(--c-bg-selection);
}
::selection {
background: var(--c-bg-selection);
}
/* Force vertical scrollbar to be always visible to avoid layout shift while loading the content */
html {
overflow-y: scroll;
}
.zen .zen-hide {
--at-apply: op0 hover:op100 transition duration-600;
}
.custom-emoji {
display: inline-block;
max-height: 1.2em;
max-width: 1.2em;
vertical-align: middle;
}
.content-rich {
a {
--at-apply: text-primary hover:underline hover:text-primary-active;
.invisible {
--at-apply: hidden;
}
.ellipsis {
--at-apply: truncate overflow-hidden ws-nowrap;
&::after {
content: '…';
}
}
}
b, strong {
--at-apply: font-bold;
}
p {
--at-apply: my-2;
}
.code-block {
--at-apply: bg-code text-0.9rem p3 mt-2 rounded overflow-auto leading-1.6em;
.shiki {
background: transparent !important;
}
}
}
.content-editor {
--at-apply: outline-none;
pre {
--at-apply: font-mono bg-code rounded px3 py2;
code {
--at-apply: bg-transparent text-0.8rem p0;
}
}
}
.skeleton-loading-bg {
background: linear-gradient(90deg,rgba(190,190,190,.2) 25%,rgba(129,129,129,.24) 37%,rgba(190,190,190,.2) 63%);
background-size: 400% 100%;
animation: skeleton-loading 1.4s ease infinite;
}
@keyframes skeleton-loading {
0% {
background-position: 100% 50%
}
to {
background-position: 0 50%
}
}