2023-07-01 11:02:23 +00:00
|
|
|
@import 'ag-grid-community/styles/ag-grid.css';
|
|
|
|
@import 'ag-grid-community/styles/ag-theme-balham.css';
|
2023-05-03 08:45:14 +00:00
|
|
|
|
2022-02-23 14:49:24 +00:00
|
|
|
@tailwind base;
|
|
|
|
@tailwind components;
|
|
|
|
@tailwind utilities;
|
2022-03-01 00:59:18 +00:00
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
/**
|
|
|
|
* TAILWIND HELPERS
|
|
|
|
*/
|
|
|
|
|
2022-03-01 00:59:18 +00:00
|
|
|
html,
|
|
|
|
body,
|
|
|
|
#__next {
|
2022-03-08 18:13:52 +00:00
|
|
|
@apply h-full;
|
2022-03-01 00:59:18 +00:00
|
|
|
}
|
2022-07-19 08:12:02 +00:00
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
.text-default {
|
|
|
|
@apply text-vega-clight-50 dark:text-vega-cdark-50;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-secondary {
|
|
|
|
@apply text-vega-clight-100 dark:text-vega-cdark-100;
|
|
|
|
}
|
|
|
|
|
|
|
|
.text-muted {
|
|
|
|
@apply text-vega-clight-200 dark:text-vega-cdark-200;
|
|
|
|
}
|
|
|
|
|
|
|
|
.border-default {
|
|
|
|
@apply border-vega-clight-600 dark:border-vega-cdark-600;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ALLOTMENT
|
|
|
|
*/
|
|
|
|
|
2022-08-31 04:35:46 +00:00
|
|
|
html {
|
2023-07-24 08:37:18 +00:00
|
|
|
--focus-border: theme(colors.vega.pink.500);
|
|
|
|
--pennant-color-danger: theme(colors.vega.pink.500);
|
2022-07-19 08:12:02 +00:00
|
|
|
}
|
|
|
|
|
2022-08-31 04:35:46 +00:00
|
|
|
html.dark {
|
2023-07-24 08:37:18 +00:00
|
|
|
--focus-border: theme(colors.vega.yellow.500);
|
2022-07-19 08:12:02 +00:00
|
|
|
}
|
2022-09-13 08:19:41 +00:00
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
/* hide pane separation border, we leave it blank so border is applied within a padded area */
|
|
|
|
.split-view-view::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* re show separator border within chart */
|
|
|
|
.plot-container__chart .split-view-view::before {
|
|
|
|
display: block;
|
2022-09-13 08:19:41 +00:00
|
|
|
}
|
2023-01-06 16:58:55 +00:00
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
/**
|
|
|
|
* PENNANT
|
|
|
|
*/
|
2023-05-03 08:45:14 +00:00
|
|
|
|
2023-07-07 12:52:38 +00:00
|
|
|
html [data-theme='dark'],
|
|
|
|
html [data-theme='light'] {
|
2023-01-06 16:58:55 +00:00
|
|
|
/* sell candles only use stroke as the candle is solid (without border) */
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-sell-stroke: theme(colors.market.red.DEFAULT);
|
2023-01-06 16:58:55 +00:00
|
|
|
|
2023-04-07 17:35:10 +00:00
|
|
|
/* studies */
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-eldar-ray-bear-power: theme(colors.market.red.DEFAULT);
|
|
|
|
--pennant-color-eldar-ray-bull-power: theme(colors.market.green.600);
|
2023-04-07 17:35:10 +00:00
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-macd-divergence-buy: theme(colors.market.green.600);
|
|
|
|
--pennant-color-macd-divergence-sell: theme(colors.market.red.DEFAULT);
|
|
|
|
--pennant-color-macd-signal: theme(colors.vega.blue.DEFAULT);
|
|
|
|
--pennant-color-macd-macd: theme(colors.vega.yellow.500);
|
2023-04-07 17:35:10 +00:00
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-volume-sell: theme(colors.market.red.DEFAULT);
|
2023-01-06 16:58:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
html [data-theme='light'] {
|
2023-07-24 08:37:18 +00:00
|
|
|
--separator-border: theme(colors.vega.clight.400);
|
|
|
|
--pennant-background-surface-color: theme(colors.vega.clight.900);
|
|
|
|
|
2023-01-06 16:58:55 +00:00
|
|
|
/* candles */
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-buy-fill: theme(colors.market.green.DEFAULT);
|
2023-07-11 13:26:24 +00:00
|
|
|
--pennant-color-buy-stroke: theme(colors.market.green.600);
|
|
|
|
|
|
|
|
/* sell uses stroke for fill and stroke */
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-sell-stroke: theme(colors.market.red.DEFAULT);
|
2023-07-07 12:52:38 +00:00
|
|
|
|
|
|
|
/* depth chart */
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-depth-buy-fill: theme(colors.market.green.DEFAULT);
|
2023-07-11 13:26:24 +00:00
|
|
|
--pennant-color-depth-buy-stroke: theme(colors.market.green.600);
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-depth-sell-fill: theme(colors.market.red.DEFAULT);
|
|
|
|
--pennant-color-depth-sell-stroke: theme(colors.market.red.650);
|
2023-07-07 12:52:38 +00:00
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-volume-buy: theme(colors.market.green.300);
|
|
|
|
--pennant-color-volume-sell: theme(colors.market.red.300);
|
2023-07-07 12:52:38 +00:00
|
|
|
}
|
2023-01-06 16:58:55 +00:00
|
|
|
|
2023-07-07 12:52:38 +00:00
|
|
|
html [data-theme='dark'] {
|
2023-07-24 08:37:18 +00:00
|
|
|
--separator-border: theme(colors.vega.cdark.400);
|
|
|
|
--pennant-background-surface-color: theme('colors.vega.cdark.900');
|
|
|
|
|
2023-07-07 12:52:38 +00:00
|
|
|
/* candles */
|
2023-07-11 13:26:24 +00:00
|
|
|
--pennant-color-buy-fill: theme(colors.market.green.600);
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-buy-stroke: theme(colors.market.green.DEFAULT);
|
2023-07-11 13:26:24 +00:00
|
|
|
|
|
|
|
/* sell uses stroke for fill and stroke */
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-sell-stroke: theme(colors.market.red.DEFAULT);
|
2023-04-07 17:35:10 +00:00
|
|
|
|
2023-01-06 16:58:55 +00:00
|
|
|
/* depth chart */
|
2023-07-11 13:26:24 +00:00
|
|
|
--pennant-color-depth-buy-fill: theme(colors.market.green.600);
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-depth-buy-stroke: theme(colors.market.green.DEFAULT);
|
|
|
|
--pennant-color-depth-sell-fill: theme(colors.market.red.650);
|
|
|
|
--pennant-color-depth-sell-stroke: theme(colors.market.red.DEFAULT);
|
2023-07-07 12:52:38 +00:00
|
|
|
|
2023-07-11 13:26:24 +00:00
|
|
|
--pennant-color-volume-buy: theme(colors.market.green.600);
|
2023-07-24 08:37:18 +00:00
|
|
|
--pennant-color-volume-sell: theme(colors.market.red.650);
|
2023-01-06 16:58:55 +00:00
|
|
|
}
|
2023-05-03 08:45:14 +00:00
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
/**
|
|
|
|
* AG GRID
|
|
|
|
*
|
|
|
|
* - Do not edit without updating other global stylesheets for each app
|
|
|
|
*/
|
2023-05-03 08:45:14 +00:00
|
|
|
|
|
|
|
.vega-ag-grid .ag-root-wrapper {
|
|
|
|
border: solid 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vega-ag-grid .ag-react-container {
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.vega-ag-grid .ag-cell,
|
|
|
|
.vega-ag-grid .ag-full-width-row .ag-cell-wrapper.ag-row-group {
|
|
|
|
line-height: calc(min(var(--ag-line-height, 26px), 26px) - 4px);
|
|
|
|
}
|
|
|
|
|
2023-05-18 04:05:53 +00:00
|
|
|
.vega-ag-grid .ag-row,
|
|
|
|
.vega-ag-grid .ag-cell {
|
|
|
|
border-width: 0;
|
2023-05-09 08:02:39 +00:00
|
|
|
}
|
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
.vega-ag-grid .ag-header-row {
|
|
|
|
@apply font-alpha font-normal;
|
|
|
|
}
|
|
|
|
|
2023-05-03 08:45:14 +00:00
|
|
|
/* Light variables */
|
|
|
|
.ag-theme-balham {
|
|
|
|
--ag-background-color: theme(colors.white);
|
2023-07-24 08:37:18 +00:00
|
|
|
--ag-border-color: theme(colors.vega.clight.600);
|
|
|
|
--ag-header-background-color: theme(colors.vega.clight.700);
|
2023-05-03 08:45:14 +00:00
|
|
|
--ag-odd-row-background-color: theme(colors.white);
|
2023-07-24 08:37:18 +00:00
|
|
|
--ag-header-column-separator-color: theme(colors.vega.clight.500);
|
|
|
|
--ag-row-border-color: theme(colors.vega.clight.600);
|
|
|
|
--ag-row-hover-color: theme(colors.vega.clight.800);
|
|
|
|
--ag-modal-overlay-background-color: rgb(244 244 244 / 50%);
|
2023-05-03 08:45:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Dark variables */
|
|
|
|
.ag-theme-balham-dark {
|
2023-07-24 08:37:18 +00:00
|
|
|
--ag-background-color: theme(colors.vega.cdark.900);
|
|
|
|
--ag-border-color: theme(colors.vega.cdark.600);
|
|
|
|
--ag-header-background-color: theme(colors.vega.cdark.700);
|
|
|
|
--ag-odd-row-background-color: theme(colors.vega.cdark.900);
|
|
|
|
--ag-header-column-separator-color: theme(colors.vega.cdark.500);
|
|
|
|
--ag-row-border-color: theme(colors.vega.cdark.600);
|
|
|
|
--ag-row-hover-color: theme(colors.vega.cdark.800);
|
|
|
|
--ag-modal-overlay-background-color: rgb(9 11 16 / 50%);
|
2023-05-03 08:45:14 +00:00
|
|
|
}
|
2023-05-09 09:26:59 +00:00
|
|
|
.ag-theme-balham-dark .ag-row.no-hover,
|
|
|
|
.ag-theme-balham-dark .ag-row.no-hover:hover,
|
|
|
|
.ag-theme-balham .ag-row.no-hover,
|
|
|
|
.ag-theme-balham .ag-row.no-hover:hover {
|
|
|
|
background: var(--ag-background-color);
|
|
|
|
}
|
2023-05-16 16:57:36 +00:00
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
/**
|
|
|
|
* REACT VIRTUALIZED list
|
|
|
|
*/
|
|
|
|
.vega-scrollbar {
|
2023-05-16 16:57:36 +00:00
|
|
|
/* Works on Firefox */
|
|
|
|
scrollbar-width: thin;
|
|
|
|
scrollbar-color: #999 #333;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Works on Chrome, Edge, and Safari */
|
2023-07-24 08:37:18 +00:00
|
|
|
.vega-scrollbar::-webkit-scrollbar {
|
2023-05-16 16:57:36 +00:00
|
|
|
width: 6px;
|
|
|
|
background-color: #999;
|
|
|
|
}
|
|
|
|
|
2023-07-24 08:37:18 +00:00
|
|
|
.vega-scrollbar::-webkit-scrollbar-thumb {
|
2023-05-16 16:57:36 +00:00
|
|
|
width: 6px;
|
|
|
|
background-color: #333;
|
|
|
|
}
|
2023-07-24 08:37:18 +00:00
|
|
|
.vega-scrollbar::-webkit-scrollbar-track {
|
2023-05-16 16:57:36 +00:00
|
|
|
box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
|
|
|
|
background-color: #999;
|
|
|
|
}
|