1
0
mirror of https://github.com/elk-zone/elk synced 2024-11-27 22:38:11 +09:00
elk/styles/global.css

129 lines
2.1 KiB
CSS
Raw Normal View History

2022-11-16 01:39:25 +09:00
* {
2022-11-24 12:42:03 +09:00
scrollbar-color: #8885 var(--c-border);
2022-11-16 01:39:25 +09:00
}
::-webkit-scrollbar {
2022-11-16 02:14:10 +09:00
width: 10px;
2022-11-16 01:39:25 +09:00
}
::-webkit-scrollbar:horizontal {
2022-11-16 02:14:10 +09:00
height: 10px;
2022-11-16 01:39:25 +09:00
}
::-webkit-scrollbar-track {
2022-11-23 11:16:31 +09:00
background: var(--c-border);
2022-11-16 02:14:10 +09:00
border-radius: 1px;
2022-11-16 01:39:25 +09:00
}
::-webkit-scrollbar-thumb {
2022-11-24 12:42:03 +09:00
background: #8885;
2022-11-16 02:14:10 +09:00
border-radius: 1px;
2022-11-16 01:39:25 +09:00
}
::-webkit-scrollbar-thumb:hover {
2022-11-24 12:42:03 +09:00
background: #8886;
2022-11-16 02:14:10 +09:00
}
::-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 */
2022-11-30 08:04:37 +09:00
body {
overflow-y: scroll;
2022-11-21 16:14:07 +09:00
}
.zen .zen-hide {
--at-apply: op0 hover:op100 transition duration-600;
}
2022-11-21 16:14:07 +09:00
.custom-emoji {
display: inline-block;
2022-11-30 14:58:38 +09:00
max-height: 1.3em;
max-width: 1.3em;
vertical-align: text-bottom;
2022-11-21 16:14:07 +09:00
}
.content-rich {
2022-11-21 16:14:07 +09:00
a {
2022-11-23 23:21:18 +09:00
--at-apply: text-primary hover:underline hover:text-primary-active;
2022-11-21 16:14:07 +09:00
.invisible {
--at-apply: hidden;
}
.ellipsis {
--at-apply: truncate overflow-hidden ws-nowrap;
&::after {
content: '…';
}
2022-11-21 16:14:07 +09:00
}
}
b, strong {
2022-11-21 16:14:07 +09:00
--at-apply: font-bold;
}
p {
--at-apply: my-2;
}
2022-11-30 13:50:29 +09:00
code {
--at-apply: bg-code text-code px1 py0.5 rounded text-0.9em;
2022-11-30 13:50:29 +09:00
}
pre code {
--at-apply: text-base bg-transparent px0 py0 rounded-none;
}
2022-11-24 12:42:03 +09:00
.code-block {
2022-11-30 13:50:29 +09:00
--at-apply: font-mono bg-code text-base p3 mt-2 rounded overflow-auto leading-1.6em;
2022-11-24 12:42:03 +09:00
.shiki {
background: transparent !important;
}
}
2022-11-21 16:14:07 +09:00
}
2022-11-24 13:21:30 +09:00
.content-editor {
2022-11-30 13:50:29 +09:00
--at-apply: outline-none flex-1;
2022-11-24 13:21:30 +09:00
}
2022-11-27 14:02:19 +09:00
.content-editor.content-rich {
p {
--at-apply: my-0;
}
}
2022-11-27 14:02:19 +09:00
.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%
}
}
html, body , #__nuxt{
height: 100vh;
margin: 0;
padding: 0;
}
html.dark {
color-scheme: dark;
}
html {
--at-apply: bg-base text-base;
}
body {
/* Prevent arbitrary zooming on mobile devices */
touch-action: pan-x pan-y;
}