lev-stake-sol/styles/globals.css

300 lines
6.0 KiB
CSS

@tailwind base;
@tailwind components;
@tailwind utilities;
/* Reset */
html,
body,
p,
ol,
ul,
li,
dl,
dt,
dd,
blockquote,
figure,
fieldset,
legend,
textarea,
pre,
iframe,
hr,
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: 100%;
font-weight: normal;
}
ul {
list-style: none;
}
button,
input,
select {
margin: 0;
}
html {
box-sizing: border-box;
}
*,
*::before,
*::after {
box-sizing: inherit;
}
img,
video {
height: auto;
max-width: 100%;
}
iframe {
border: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}
/* Theme */
:root {
--active: theme('colors.light-theme.active.DEFAULT');
--active-dark: theme('colors.light-theme.active.dark');
--down: theme('colors.light-theme.down.DEFAULT');
--down-dark: theme('colors.light-theme.down.dark');
--down-muted: theme('colors.light-theme.down.muted');
--up: theme('colors.light-theme.up.DEFAULT');
--up-dark: theme('colors.light-theme.up.dark');
--up-muted: theme('colors.light-theme.up.muted');
--link: theme('colors.light-theme.link.DEFAULT');
--link-hover: theme('colors.light-theme.link.hover');
--bkg-1: theme('colors.light-theme.bkg-1');
--bkg-2: theme('colors.light-theme.bkg-2');
--bkg-3: theme('colors.light-theme.bkg-3');
--bkg-4: theme('colors.light-theme.bkg-4');
--fgd-1: theme('colors.light-theme.fgd-1');
--fgd-2: theme('colors.light-theme.fgd-2');
--fgd-3: theme('colors.light-theme.fgd-3');
--fgd-4: theme('colors.light-theme.fgd-4');
--button: theme('colors.light-theme.button.DEFAULT');
--input-bkg: theme('colors.light-theme.input.bkg');
--input-border: theme('colors.light-theme.input.border');
--input-border-hover: theme('colors.light-theme.input.borderDark');
--button-hover: theme('colors.light-theme.button.hover');
--error: theme('colors.light-theme.error');
--success: theme('colors.light-theme.success');
--warning: theme('colors.light-theme.warning');
}
[data-theme='Dark'] {
--active: theme('colors.dark-theme.active.DEFAULT');
--active-dark: theme('colors.dark-theme.active.dark');
--down: theme('colors.dark-theme.down.DEFAULT');
--down-dark: theme('colors.dark-theme.down.dark');
--down-muted: theme('colors.dark-theme.down.muted');
--up: theme('colors.dark-theme.up.DEFAULT');
--up-dark: theme('colors.dark-theme.up.dark');
--up-muted: theme('colors.dark-theme.up.muted');
--link: theme('colors.dark-theme.link.DEFAULT');
--link-hover: theme('colors.dark-theme.link.hover');
--bkg-1: theme('colors.dark-theme.bkg-1');
--bkg-2: theme('colors.dark-theme.bkg-2');
--bkg-3: theme('colors.dark-theme.bkg-3');
--bkg-4: theme('colors.dark-theme.bkg-4');
--fgd-1: theme('colors.dark-theme.fgd-1');
--fgd-2: theme('colors.dark-theme.fgd-2');
--fgd-3: theme('colors.dark-theme.fgd-3');
--fgd-4: theme('colors.dark-theme.fgd-4');
--button: theme('colors.dark-theme.button.DEFAULT');
--button-hover: theme('colors.dark-theme.button.hover');
--input-bkg: theme('colors.dark-theme.input.bkg');
--input-border: theme('colors.dark-theme.input.border');
--input-border-hover: theme('colors.dark-theme.input.borderDark');
--error: theme('colors.dark-theme.error');
--success: theme('colors.dark-theme.success');
--warning: theme('colors.dark-theme.warning');
}
/* Base */
body {
@apply font-body text-base font-normal leading-tight tracking-wider;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
main {
@apply font-body;
}
button {
@apply default-transition tracking-wider focus:outline-none;
-webkit-font-feature-settings: 'zero' 1;
font-feature-settings: 'zero' 1;
}
svg {
@apply transition duration-500 ease-out;
}
.default-transition {
@apply transition duration-300 ease-out;
}
/* Type */
h1,
h2,
h3,
h4 {
@apply font-bold text-th-fgd-1;
}
h1 {
@apply text-3xl;
}
h2 {
@apply text-2xl;
}
h3 {
@apply text-xl;
}
p {
@apply text-th-fgd-2;
}
li {
@apply text-base text-th-fgd-3;
}
a {
@apply default-transition text-th-fgd-1 md:hover:text-th-fgd-3;
}
/* Forms */
input {
@apply default-transition;
}
input::placeholder {
@apply text-th-fgd-4;
}
/* Remove inner shadow from inputs on mobile iOS */
textarea,
input[type='text'] {
-webkit-appearance: none;
}
/* Animations */
@keyframes sideways-bounce {
0%,
100% {
transform: translateX(-25%);
animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
}
50% {
transform: translateX(0);
animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
}
.sideways-bounce {
animation: sideways-bounce 1s infinite;
}
/* Table */
table p {
@apply font-mono text-base text-th-fgd-2;
}
/* Scrollbars */
.font-mono {
-webkit-font-feature-settings: 'zero' 1;
font-feature-settings: 'zero' 1;
}
.hide-scroll::-webkit-scrollbar {
width: 0px;
height: 0px;
-webkit-appearance: none;
}
.hide-scroll::-webkit-scrollbar-thumb {
border: 0px solid transparent;
background-clip: padding-box;
}
.hide-scroll::-webkit-scrollbar-thumb:hover {
border: 0;
}
.hide-scroll::-webkit-scrollbar-track {
background: transparent;
}
.thin-scroll::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.thin-scroll::-webkit-scrollbar-thumb {
@apply rounded bg-th-bkg-4;
border: 2px solid transparent;
background-clip: padding-box;
}
.thin-scroll::-webkit-scrollbar-thumb:hover {
border: 0;
}
.thin-scroll::-webkit-scrollbar-track {
background: transparent;
}
.thin-scroll::-webkit-scrollbar-thumb:window-inactive {
@apply bg-th-bkg-4;
}
/* slider */
input[type='range'] {
@apply default-transition h-1.5 appearance-none rounded bg-th-bkg-3 bg-gradient-to-r from-th-active to-th-active bg-no-repeat focus-visible:bg-th-bkg-4;
}
input[type='range']::-webkit-slider-thumb {
@apply h-5 w-5 cursor-ew-resize appearance-none rounded-full bg-th-active-dark shadow;
}
input[type='range']::-webkit-slider-runnable-track {
@apply appearance-none border-0 bg-transparent shadow-none;
}
.tooltip-underline {
@apply default-transition w-max border-b border-dashed border-current hover:cursor-help hover:border-transparent;
}