koel/resources/assets/css/partials/hack.pcss

72 lines
1.5 KiB
Text
Raw Normal View History

2022-04-15 14:24:30 +00:00
/**
* ALL YOUR DIRTY UGLY HACKS ARE BELONG TO US.
*/
/**
* Make elements draggable in old WebKit
*/
[draggable] {
2024-04-04 22:20:42 +00:00
@apply select-none;
2022-04-15 14:24:30 +00:00
}
/**
* Make webkit scrollbars a bit more good looking on non-mac systems.
*/
html.non-mac {
::-webkit-scrollbar {
2024-04-04 22:20:42 +00:00
@apply w-[10px] h-[10px];
2022-04-15 14:24:30 +00:00
}
2022-04-15 14:24:30 +00:00
::-webkit-scrollbar-button {
2024-04-04 22:20:42 +00:00
@apply w-0 h-0;
2022-04-15 14:24:30 +00:00
}
2022-04-15 14:24:30 +00:00
::-webkit-scrollbar-thumb {
2024-04-04 22:20:42 +00:00
@apply bg-k-bg-primary border border-white/20 rounded-[50px];
2022-04-15 14:24:30 +00:00
}
2022-04-15 14:24:30 +00:00
::-webkit-scrollbar-thumb:hover {
2024-04-04 22:20:42 +00:00
@apply bg-[#303030];
2022-04-15 14:24:30 +00:00
}
2022-04-15 14:24:30 +00:00
::-webkit-scrollbar-thumb:active {
2024-04-04 22:20:42 +00:00
@apply bg-k-bg-primary;
2022-04-15 14:24:30 +00:00
}
2022-04-15 14:24:30 +00:00
::-webkit-scrollbar-track {
2024-04-04 22:20:42 +00:00
@apply bg-k-bg-primary border-0 rounded-[50px];
2022-04-15 14:24:30 +00:00
}
2022-04-15 14:24:30 +00:00
::-webkit-scrollbar-track:hover {
2024-04-04 22:20:42 +00:00
@apply bg-k-bg-primary;
2022-04-15 14:24:30 +00:00
}
2022-04-15 14:24:30 +00:00
::-webkit-scrollbar-track:active {
2024-04-04 22:20:42 +00:00
@apply bg-[#333];
2022-04-15 14:24:30 +00:00
}
2022-04-15 14:24:30 +00:00
::-webkit-scrollbar-corner {
2024-04-04 22:20:42 +00:00
@apply bg-transparent;
2022-04-15 14:24:30 +00:00
}
}
2024-04-23 20:17:35 +00:00
/**
* "Fix" the autofill color by applying an inset box-shadow, since user agent style sheets
* of many browsers use !important in their :-webkit-autofill style declarations,
* making them non-overridable by normal means.
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill
*/
input:autofill,
input:autofill:hover,
input:autofill:focus,
textarea:autofill,
textarea:autofill:hover,
textarea:autofill:focus,
select:autofill,
select:autofill:hover,
select:autofill:focus {
-webkit-text-fill-color: var(--color-text-input);
box-shadow: 0 0 0 1000px var(--color-bg-input) inset;
transition: background-color 9999s ease-in-out 0s;
}