elk/styles/global.css

64 lines
1 KiB
CSS
Raw Normal View History

2022-11-15 16:39:25 +00:00
* {
2022-11-24 03:42:03 +00:00
scrollbar-color: #8885 var(--c-border);
2022-11-15 16:39:25 +00:00
}
::-webkit-scrollbar {
2022-11-15 17:14:10 +00:00
width: 10px;
2022-11-15 16:39:25 +00:00
}
::-webkit-scrollbar:horizontal {
2022-11-15 17:14:10 +00:00
height: 10px;
2022-11-15 16:39:25 +00:00
}
::-webkit-scrollbar-track {
2022-11-23 02:16:31 +00:00
background: var(--c-border);
2022-11-15 17:14:10 +00:00
border-radius: 1px;
2022-11-15 16:39:25 +00:00
}
::-webkit-scrollbar-thumb {
2022-11-24 03:42:03 +00:00
background: #8885;
2022-11-15 17:14:10 +00:00
border-radius: 1px;
2022-11-15 16:39:25 +00:00
}
::-webkit-scrollbar-thumb:hover {
2022-11-24 03:42:03 +00:00
background: #8886;
2022-11-15 17:14:10 +00:00
}
/* Force vertical scrollbar to be always visible to avoid layout shift while loading the content */
html {
overflow-y: scroll;
2022-11-21 07:14:07 +00:00
}
.custom-emoji {
display: inline-block;
2022-11-23 02:16:31 +00:00
max-height: 1.2em;
max-width: 1.2em;
2022-11-21 07:14:07 +00:00
vertical-align: middle;
}
.rich-content {
a {
2022-11-23 14:21:18 +00:00
--at-apply: text-primary hover:underline hover:text-primary-active;
2022-11-21 07:14:07 +00:00
.invisible {
--at-apply: hidden;
}
.ellipsis {
--at-apply: truncate overflow-hidden ws-nowrap;
}
}
b {
--at-apply: font-bold;
}
p {
--at-apply: my-2;
}
2022-11-24 03:42:03 +00:00
.code-block {
--at-apply: bg-code text-0.9rem p3 rounded overflow-auto leading-1.6em;
.shiki {
background: transparent !important;
}
}
2022-11-21 07:14:07 +00:00
}