el.xwx.moe/styles/globals.css

189 lines
2.9 KiB
CSS
Raw Normal View History

2023-01-22 15:39:35 -06:00
@tailwind base;
@tailwind components;
@tailwind utilities;
2023-02-18 21:32:02 -06:00
/* Hide scrollbar */
2023-07-09 13:35:22 -05:00
.hide-scrollbar::-webkit-scrollbar {
2023-02-18 21:32:02 -06:00
display: none;
}
.hide-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
2023-03-05 15:03:20 -06:00
::selection {
background-color: #0ea4e93c;
2023-03-05 15:03:20 -06:00
color: white;
}
.hyphens {
hyphens: auto;
}
2023-06-10 17:55:18 -05:00
.rotate {
transition: transform 0.1s ease;
transform: rotate(-90deg);
}
.rotate-reverse {
transition: transform 0.1s ease;
transform: rotate(0deg);
}
2023-03-05 15:03:20 -06:00
.fade-in {
animation: fade-in-animation 100ms;
}
@keyframes fade-in-animation {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
2023-04-30 15:54:40 -05:00
.slide-up {
animation: slide-up-animation 70ms;
}
.slide-down {
animation: slide-down-animation 70ms;
}
@keyframes slide-down-animation {
0% {
transform: translateY(-15%);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
2023-03-05 15:03:20 -06:00
@keyframes slide-up-animation {
0% {
2023-03-22 18:11:54 -05:00
transform: translateY(15%);
2023-03-05 15:03:20 -06:00
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
2023-04-30 15:54:40 -05:00
.slide-right {
2023-05-01 05:07:01 -05:00
animation: slide-right-animation 200ms;
2023-04-30 15:54:40 -05:00
}
@keyframes slide-right-animation {
0% {
2023-05-01 05:07:01 -05:00
transform: translateX(-100%);
2023-04-30 15:54:40 -05:00
}
100% {
transform: translateX(0);
}
}
2023-05-31 09:30:45 -05:00
.slide-right-with-fade {
animation: slide-right-animation 150ms;
}
@keyframes slide-right-animation {
0% {
transform: translateX(-50%);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
2023-06-02 06:59:52 -05:00
.spin {
animation: spin 2s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
2023-06-02 06:59:52 -05:00
/* For react-colorful */
.color-picker .react-colorful {
width: 100%;
2023-06-02 06:59:52 -05:00
height: 7.5rem;
}
.color-picker .react-colorful__hue {
height: 1rem;
}
.color-picker .react-colorful__pointer {
width: 1.3rem;
height: 1.3rem;
}
/* For the Link banner */
.link-banner {
z-index: 0;
2023-10-30 14:20:15 -05:00
border-radius: 1rem;
height: fit-content;
}
2023-08-02 12:53:55 -05:00
/* Theme */
@layer base {
body {
2023-08-14 22:25:25 -05:00
@apply dark:bg-neutral-900 bg-white dark:text-white;
}
}
/* react-select */
@layer components {
.react-select-container .react-select__control {
2023-08-22 17:34:46 -05:00
@apply dark:bg-neutral-950 bg-gray-50 dark:border-neutral-700 dark:hover:border-neutral-500;
2023-08-14 22:25:25 -05:00
}
.react-select-container {
@apply dark:border-neutral-700;
}
.react-select-container .react-select__menu {
@apply dark:bg-neutral-900 dark:border-neutral-700 border;
}
.react-select-container .react-select__option {
@apply dark:hover:bg-neutral-800;
}
.react-select-container .react-select__input-container,
.react-select-container .react-select__single-value {
@apply dark:text-white;
2023-08-02 12:53:55 -05:00
}
}
2023-10-30 14:20:15 -05:00
.react-select__clear-indicator * {
display: none;
width: 0;
margin: 0;
padding: 0;
}
2023-09-01 17:04:11 -05:00
.sky-shadow {
box-shadow: 0px 0px 3px #0ea5e9;
}
.primary-btn-gradient {
box-shadow: inset 0px -10px 10px #0071b7;
}
.primary-btn-gradient:hover {
box-shadow: inset 0px -15px 10px #059bf8;
}
2023-10-30 14:20:15 -05:00
.line-break * {
overflow-x: auto;
}