mango-v4-ui/styles/globals.css

531 lines
13 KiB
CSS
Raw Normal View History

2022-05-03 21:20:14 -07:00
@tailwind base;
@tailwind components;
2022-07-05 20:37:49 -07:00
@tailwind utilities;
2022-09-18 16:01:57 -07:00
@font-face {
font-family: 'Roboto Mono';
src: url('/fonts/roboto.woff');
2022-09-18 16:01:57 -07:00
}
2022-07-14 16:36:31 -07:00
/* 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;
}
2022-07-05 20:37:49 -07:00
/* Theme */
:root {
2022-11-30 19:32:32 -08:00
--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');
2022-07-05 20:37:49 -07:00
--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');
2022-11-30 19:32:32 -08:00
--button: theme('colors.light-theme.button.DEFAULT');
--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');
2022-07-05 20:37:49 -07:00
}
[data-theme='Dark'] {
2022-11-30 19:32:32 -08:00
--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');
2022-07-05 20:37:49 -07:00
--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');
2022-11-30 19:32:32 -08:00
--button: theme('colors.dark-theme.button.DEFAULT');
--button-hover: theme('colors.dark-theme.button.hover');
--error: theme('colors.dark-theme.error');
--success: theme('colors.dark-theme.success');
--warning: theme('colors.dark-theme.warning');
2022-07-05 20:37:49 -07:00
}
[data-theme='Mango'] {
2022-11-30 19:32:32 -08:00
--active: theme('colors.mango-theme.active.DEFAULT');
--active-dark: theme('colors.mango-theme.active.dark');
--down: theme('colors.mango-theme.down.DEFAULT');
--down-dark: theme('colors.mango-theme.down.dark');
--down-muted: theme('colors.mango-theme.down.muted');
--up: theme('colors.mango-theme.up.DEFAULT');
--up-dark: theme('colors.mango-theme.up.dark');
--up-muted: theme('colors.mango-theme.up.muted');
--link: theme('colors.mango-theme.link.DEFAULT');
--link-hover: theme('colors.mango-theme.link.hover');
2022-07-05 20:37:49 -07:00
--bkg-1: theme('colors.mango-theme.bkg-1');
--bkg-2: theme('colors.mango-theme.bkg-2');
--bkg-3: theme('colors.mango-theme.bkg-3');
--bkg-4: theme('colors.mango-theme.bkg-4');
--fgd-1: theme('colors.mango-theme.fgd-1');
--fgd-2: theme('colors.mango-theme.fgd-2');
--fgd-3: theme('colors.mango-theme.fgd-3');
--fgd-4: theme('colors.mango-theme.fgd-4');
2022-11-30 19:32:32 -08:00
--button: theme('colors.mango-theme.button.DEFAULT');
--button-hover: theme('colors.mango-theme.button.hover');
--error: theme('colors.mango-theme.error');
--success: theme('colors.mango-theme.success');
--warning: theme('colors.mango-theme.warning');
2022-07-05 20:37:49 -07:00
}
2022-12-01 02:59:03 -08:00
[data-theme='Medium'] {
--active: theme('colors.medium-theme.active.DEFAULT');
--active-dark: theme('colors.medium-theme.active.dark');
--down: theme('colors.medium-theme.down.DEFAULT');
--down-dark: theme('colors.medium-theme.down.dark');
--down-muted: theme('colors.medium-theme.down.muted');
--up: theme('colors.medium-theme.up.DEFAULT');
--up-dark: theme('colors.medium-theme.up.dark');
--up-muted: theme('colors.medium-theme.up.muted');
--link: theme('colors.medium-theme.link.DEFAULT');
--link-hover: theme('colors.medium-theme.link.hover');
--bkg-1: theme('colors.medium-theme.bkg-1');
--bkg-2: theme('colors.medium-theme.bkg-2');
--bkg-3: theme('colors.medium-theme.bkg-3');
--bkg-4: theme('colors.medium-theme.bkg-4');
--fgd-1: theme('colors.medium-theme.fgd-1');
--fgd-2: theme('colors.medium-theme.fgd-2');
--fgd-3: theme('colors.medium-theme.fgd-3');
--fgd-4: theme('colors.medium-theme.fgd-4');
--button: theme('colors.medium-theme.button.DEFAULT');
--button-hover: theme('colors.medium-theme.button.hover');
--error: theme('colors.medium-theme.error');
--success: theme('colors.medium-theme.success');
--warning: theme('colors.medium-theme.warning');
}
2022-12-01 04:04:04 -08:00
[data-theme='Ocean'] {
--active: theme('colors.ocean-theme.active.DEFAULT');
--active-dark: theme('colors.ocean-theme.active.dark');
--down: theme('colors.ocean-theme.down.DEFAULT');
--down-dark: theme('colors.ocean-theme.down.dark');
--down-muted: theme('colors.ocean-theme.down.muted');
--up: theme('colors.ocean-theme.up.DEFAULT');
--up-dark: theme('colors.ocean-theme.up.dark');
--up-muted: theme('colors.ocean-theme.up.muted');
--link: theme('colors.ocean-theme.link.DEFAULT');
--link-hover: theme('colors.ocean-theme.link.hover');
--bkg-1: theme('colors.ocean-theme.bkg-1');
--bkg-2: theme('colors.ocean-theme.bkg-2');
--bkg-3: theme('colors.ocean-theme.bkg-3');
--bkg-4: theme('colors.ocean-theme.bkg-4');
--fgd-1: theme('colors.ocean-theme.fgd-1');
--fgd-2: theme('colors.ocean-theme.fgd-2');
--fgd-3: theme('colors.ocean-theme.fgd-3');
--fgd-4: theme('colors.ocean-theme.fgd-4');
--button: theme('colors.ocean-theme.button.DEFAULT');
--button-hover: theme('colors.ocean-theme.button.hover');
--error: theme('colors.ocean-theme.error');
--success: theme('colors.ocean-theme.success');
--warning: theme('colors.ocean-theme.warning');
}
2022-12-01 02:59:03 -08:00
/* [data-theme='Smoothy'] {
2022-11-30 21:21:28 -08:00
--active: theme('colors.smoothy-theme.active.DEFAULT');
--active-dark: theme('colors.smoothy-theme.active.dark');
--down: theme('colors.smoothy-theme.down.DEFAULT');
--down-dark: theme('colors.smoothy-theme.down.dark');
--down-muted: theme('colors.smoothy-theme.down.muted');
--up: theme('colors.smoothy-theme.up.DEFAULT');
--up-dark: theme('colors.smoothy-theme.up.dark');
--up-muted: theme('colors.smoothy-theme.up.muted');
--link: theme('colors.smoothy-theme.link.DEFAULT');
--link-hover: theme('colors.smoothy-theme.link.hover');
--bkg-1: theme('colors.smoothy-theme.bkg-1');
--bkg-2: theme('colors.smoothy-theme.bkg-2');
--bkg-3: theme('colors.smoothy-theme.bkg-3');
--bkg-4: theme('colors.smoothy-theme.bkg-4');
--fgd-1: theme('colors.smoothy-theme.fgd-1');
--fgd-2: theme('colors.smoothy-theme.fgd-2');
--fgd-3: theme('colors.smoothy-theme.fgd-3');
--fgd-4: theme('colors.smoothy-theme.fgd-4');
--button: theme('colors.smoothy-theme.button.DEFAULT');
--button-hover: theme('colors.smoothy-theme.button.hover');
--error: theme('colors.smoothy-theme.error');
--success: theme('colors.smoothy-theme.success');
--warning: theme('colors.smoothy-theme.warning');
2022-12-01 02:59:03 -08:00
} */
2022-11-30 21:21:28 -08:00
2022-12-01 01:49:59 -08:00
[data-theme='Jungle'] {
--active: theme('colors.jungle-theme.active.DEFAULT');
--active-dark: theme('colors.jungle-theme.active.dark');
--down: theme('colors.jungle-theme.down.DEFAULT');
--down-dark: theme('colors.jungle-theme.down.dark');
--down-muted: theme('colors.jungle-theme.down.muted');
--up: theme('colors.jungle-theme.up.DEFAULT');
--up-dark: theme('colors.jungle-theme.up.dark');
--up-muted: theme('colors.jungle-theme.up.muted');
--link: theme('colors.jungle-theme.link.DEFAULT');
--link-hover: theme('colors.jungle-theme.link.hover');
--bkg-1: theme('colors.jungle-theme.bkg-1');
--bkg-2: theme('colors.jungle-theme.bkg-2');
--bkg-3: theme('colors.jungle-theme.bkg-3');
--bkg-4: theme('colors.jungle-theme.bkg-4');
--fgd-1: theme('colors.jungle-theme.fgd-1');
--fgd-2: theme('colors.jungle-theme.fgd-2');
--fgd-3: theme('colors.jungle-theme.fgd-3');
--fgd-4: theme('colors.jungle-theme.fgd-4');
--button: theme('colors.jungle-theme.button.DEFAULT');
--button-hover: theme('colors.jungle-theme.button.hover');
--error: theme('colors.jungle-theme.error');
--success: theme('colors.jungle-theme.success');
--warning: theme('colors.jungle-theme.warning');
}
2022-07-14 18:46:34 -07:00
/* Base */
2022-07-05 20:37:49 -07:00
body {
2022-07-16 21:41:20 -07:00
@apply font-body text-sm tracking-wide;
2022-07-10 19:01:16 -07:00
}
2022-07-14 20:38:02 -07:00
button {
2022-08-13 22:39:30 -07:00
@apply tracking-wide focus:outline-none;
2022-07-14 20:38:02 -07:00
}
svg {
@apply transition duration-500 ease-out;
2022-07-14 20:38:02 -07:00
}
2022-07-16 04:22:59 -07:00
.default-transition {
@apply transition duration-300 ease-out;
2022-07-16 04:22:59 -07:00
}
2022-07-14 18:46:34 -07:00
/* Type */
h1,
h2,
h3 {
2022-07-20 21:50:56 -07:00
@apply font-bold text-th-fgd-1;
2022-07-14 18:46:34 -07:00
}
h1 {
2022-07-20 21:50:56 -07:00
@apply text-3xl;
2022-07-14 18:46:34 -07:00
}
h2 {
2022-07-20 21:50:56 -07:00
@apply text-2xl;
2022-07-14 18:46:34 -07:00
}
h3 {
2022-07-21 22:09:04 -07:00
@apply text-lg;
2022-07-14 18:46:34 -07:00
}
2022-07-14 20:38:02 -07:00
p {
2022-10-07 15:27:36 -07:00
@apply text-th-fgd-3;
2022-07-14 20:38:02 -07:00
}
2022-07-21 22:09:04 -07:00
li {
@apply text-sm text-th-fgd-3;
}
2022-11-30 21:21:28 -08:00
/* Forms */
input::placeholder {
@apply text-th-fgd-4;
}
2022-07-14 18:46:34 -07:00
/* Slider */
2022-07-14 16:36:31 -07:00
input[type='range']::-webkit-slider-thumb {
2022-07-10 19:01:16 -07:00
-webkit-appearance: none;
height: 16px;
width: 16px;
border-radius: 100%;
2022-11-30 19:32:32 -08:00
background: var(--active);
2022-07-10 19:01:16 -07:00
cursor: pointer;
margin-top: -1px; /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
}
/* All the same stuff for Firefox */
2022-07-14 16:36:31 -07:00
input[type='range']::-moz-range-thumb {
2022-07-10 19:01:16 -07:00
height: 16px;
width: 16px;
border-radius: 100%;
2022-11-30 19:32:32 -08:00
background: var(--active);
2022-07-10 19:01:16 -07:00
cursor: pointer;
}
/* All the same stuff for IE */
2022-07-14 16:36:31 -07:00
input[type='range']::-ms-thumb {
2022-07-10 19:01:16 -07:00
height: 16px;
width: 16px;
border-radius: 100%;
2022-11-30 19:32:32 -08:00
background: var(--active);
2022-07-10 19:01:16 -07:00
cursor: pointer;
2022-07-14 16:36:31 -07:00
}
/* 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;
}
2022-07-14 18:46:34 -07:00
/* Table */
2022-07-21 22:09:04 -07:00
table p {
2022-10-05 18:16:29 -07:00
@apply font-mono text-sm text-th-fgd-2;
2022-07-21 22:09:04 -07:00
}
2022-07-20 21:50:56 -07:00
/* Scrollbars */
2022-09-18 16:01:57 -07:00
.font-mono {
-webkit-font-feature-settings: 'zero' 1;
font-feature-settings: 'zero' 1;
2022-09-18 16:01:57 -07:00
}
2022-09-13 23:24:26 -07:00
.hide-scroll::-webkit-scrollbar {
width: 0px;
height: 0px;
}
.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;
}
2022-07-20 21:50:56 -07:00
.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;
}
2022-08-16 20:42:16 -07:00
2022-09-13 23:24:26 -07:00
/* Chart */
.TVChartContainer {
height: 100%;
width: 100%;
}
.tradingview-chart {
display: contents;
}
2022-08-16 20:42:16 -07:00
/* slider */
input[type='range'] {
@apply h-2 appearance-none rounded bg-th-bkg-4 bg-gradient-to-r from-gradient-start via-gradient-mid to-gradient-end bg-[length:50%_100%] bg-no-repeat;
2022-08-16 20:42:16 -07:00
}
input[type='range']::-webkit-slider-thumb {
2022-11-30 19:32:32 -08:00
@apply h-5 w-5 cursor-ew-resize appearance-none rounded-full bg-th-active;
2022-08-16 20:42:16 -07:00
}
input[type='range']::-webkit-slider-runnable-track {
@apply appearance-none border-0 bg-transparent shadow-none;
}
2022-09-06 06:15:54 -07:00
.intro-bg {
2022-09-06 06:26:37 -07:00
background-color: var(--bkg-1);
2022-09-06 06:15:54 -07:00
background-image: radial-gradient(at -40% -10%, #5b48ad 0, transparent 40%),
radial-gradient(at 150% 150%, #e54033 0, transparent 50%);
}
2022-09-13 23:24:26 -07:00
/* orderbook flash */
@keyframes green-flash {
from {
2022-11-30 19:32:32 -08:00
background-color: var(--up-muted);
2022-09-13 23:24:26 -07:00
}
to {
background-color: transparent;
}
}
@-webkit-keyframes green-flash {
from {
2022-11-30 19:32:32 -08:00
background-color: var(--up-muted);
2022-09-13 23:24:26 -07:00
}
to {
background-color: transparent;
}
}
@-moz-keyframes green-flash {
from {
2022-11-30 19:32:32 -08:00
background-color: var(--up-muted);
2022-09-13 23:24:26 -07:00
}
to {
background-color: transparent;
}
}
@keyframes red-flash {
from {
2022-11-30 19:32:32 -08:00
background-color: var(--down-muted);
2022-09-13 23:24:26 -07:00
}
to {
background-color: transparent;
}
}
@-webkit-keyframes red-flash {
from {
2022-11-30 19:32:32 -08:00
background-color: var(--down-muted);
2022-09-13 23:24:26 -07:00
}
to {
background-color: transparent;
}
}
@-moz-keyframes red-flash {
from {
2022-11-30 19:32:32 -08:00
background-color: var(--down-muted);
2022-09-13 23:24:26 -07:00
}
to {
background-color: transparent;
}
}
.green-flash {
-moz-animation: green-flash 0.5s ease 0s 1 alternate;
-webkit-animation: green-flash 0.5s ease 0s 1 alternate;
animation: green-flash 0.5s ease 0s 1 alternate;
}
.red-flash {
-moz-animation: red-flash 0.5s ease 0s 1 alternate;
-webkit-animation: red-flash 0.5s ease 0s 1 alternate;
animation: red-flash 0.5s ease 0s 1 alternate;
}
2022-09-19 20:12:34 -07:00
.tooltip-underline {
@apply default-transition w-max border-b border-dashed border-th-fgd-4 leading-tight hover:cursor-help hover:border-transparent;
}
2022-11-10 04:58:13 -08:00
.radial-gradient-bg {
background-image: radial-gradient(
2022-11-11 03:24:24 -08:00
at 300% 100%,
var(--button) 0,
transparent 75%
);
2022-11-10 04:58:13 -08:00
@apply bg-th-bkg-1;
}
#tsparticles {
@apply absolute h-screen w-full;
}