el.xwx.moe/styles/globals.css

261 lines
4.2 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
2023-11-24 06:50:16 -06:00
:root {
--my-color: #fff;
2023-12-01 11:23:40 -06:00
--selection-color: #fff;
--selection-bg-color: #fff;
2023-11-24 06:50:16 -06:00
}
[data-theme="dark"] {
--my-color: #000;
2023-11-24 07:07:08 -06:00
color-scheme: dark;
2023-12-01 11:23:40 -06:00
--selection-color: #000000;
--selection-bg-color: #ffffff;
2023-11-24 06:50:16 -06:00
}
[data-theme="light"] {
--my-color: #ffabc8;
2023-11-24 07:07:08 -06:00
color-scheme: light;
2023-12-01 11:23:40 -06:00
--selection-color: #ffffff;
--selection-bg-color: #000000;
}
::selection {
background-color: var(--selection-bg-color);
color: var(--selection-color);
2023-11-24 06:50:16 -06:00
}
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
.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 {
2023-12-23 18:00:53 -06:00
animation: fade-in-animation 200ms;
2023-03-05 15:03:20 -06:00
}
@keyframes fade-in-animation {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
2023-04-30 15:54:40 -05:00
.slide-up {
2023-12-01 16:42:45 -06:00
animation: slide-up-animation 200ms;
2023-04-30 15:54:40 -05:00
}
.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-12-01 16:48:48 -06:00
transform: translateY(5%);
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 {
2023-10-30 14:20:15 -05:00
border-radius: 1rem;
height: fit-content;
}
2023-08-02 12:53:55 -05:00
/* Theme */
2023-08-14 22:25:25 -05:00
@layer components {
.react-select-container .react-select__control {
2023-11-28 04:39:45 -06:00
@apply bg-base-200 hover:border-neutral-content;
2023-08-14 22:25:25 -05:00
}
.react-select-container .react-select__menu {
2023-11-28 13:24:52 -06:00
@apply bg-base-100 border-neutral-content border rounded-md;
2023-08-14 22:25:25 -05:00
}
2023-11-28 13:24:52 -06:00
/*
.react-select-container .react-select__menu-list {
@apply h-20;
} */
2023-08-14 22:25:25 -05:00
.react-select-container .react-select__input-container,
.react-select-container .react-select__single-value {
2023-11-28 04:39:45 -06:00
@apply text-base-content;
2023-08-02 12:53:55 -05:00
}
}
2023-09-01 17:04:11 -05:00
.primary-btn-gradient {
2023-12-07 11:29:45 -06:00
box-shadow: inset 0px -9px 10px oklch(var(--p));
}
.primary-btn-gradient:hover {
2023-12-07 11:29:45 -06:00
box-shadow: inset 0px -20px 40px #00436c;
}
2023-10-30 14:20:15 -05:00
.line-break * {
2023-10-31 17:02:41 -05:00
overflow-y: hidden;
}
/* Reader view custom stylings */
.reader-view {
2023-11-19 07:12:37 -06:00
line-height: 2.8rem;
}
.reader-view p {
font-size: 1.15rem;
line-height: 2.5rem;
2023-10-31 17:02:41 -05:00
}
.reader-view h1 {
font-size: 2.2rem;
}
.reader-view h2 {
line-height: 4rem;
font-size: 1.9rem;
}
.reader-view h3 {
line-height: 3.5rem;
font-size: 1.6rem;
}
.reader-view h4 {
font-size: 1.3rem;
}
.reader-view h5 {
font-size: 1.1rem;
}
.reader-view li {
list-style: inside;
margin-left: 2rem;
}
.reader-view a {
text-decoration: underline;
}
.reader-view b {
font-weight: bolder;
}
.reader-view pre,
.reader-view code {
font-family: "Courier New", Courier, monospace;
}
.reader-view blockquote {
opacity: 50%;
padding-left: 1.5rem;
border-left: solid 3px;
}
.reader-view img {
margin: auto;
2023-11-19 21:28:02 -06:00
margin-top: 2rem;
margin-bottom: 2rem;
2023-10-31 17:02:41 -05:00
border-radius: 10px;
}
.reader-view pre {
padding: 1rem;
line-height: normal;
}
.reader-view code {
padding: 0.15rem 0.4rem 0.15rem 0.4rem;
}
2023-11-24 02:06:33 -06:00
[data-theme="dark"] .reader-view code,
[data-theme="dark"] .reader-view pre {
2023-10-31 17:02:41 -05:00
background-color: rgb(49, 49, 49);
border-radius: 8px;
}
2023-11-24 02:06:33 -06:00
[data-theme="light"] .reader-view code,
[data-theme="light"] .reader-view pre {
2023-10-31 17:02:41 -05:00
background-color: rgb(230, 230, 230);
border-radius: 8px;
2023-10-30 14:20:15 -05:00
}
2023-11-07 12:06:42 -06:00
.custom-file-input::file-selector-button {
cursor: pointer;
}