1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
Matthias Kretschmann 461fcaf8ae
Liquidity & price history graph (#248)
* graph prototype

* switch items

* liquidity history graph prototype

* more graph styling

* epoch times conversion

* get data in root component

* redraw fix

* more graph styling

* loading fix

* re-render fixes

* re-render fixes

* new Aquarius responses

* price graph and switch buttons

* spacing tweaks
2020-11-16 15:10:33 +01:00

38 lines
747 B
CSS

.graphWrap {
min-height: 97px;
display: flex;
align-items: center;
justify-content: center;
margin: calc(var(--spacer) / 6) -2rem calc(var(--spacer) / 1.5) -2rem;
position: relative;
}
.graphWrap canvas {
position: relative;
z-index: 0;
}
.type {
position: absolute;
bottom: -10px;
z-index: 1;
text-align: center;
padding: 5px var(--spacer);
}
.button,
.button:hover {
display: inline-block;
color: var(--color-secondary);
font-size: var(--font-size-mini);
border: 1px solid transparent;
border-radius: var(--border-radius);
padding: calc(var(--spacer) / 16) calc(var(--spacer) / 4) !important;
transform: none;
}
.button.active {
color: var(--font-color-text);
border-color: var(--border-color);
}