Jaspers Hub

jaspers / tradingview

pluginOfficialReviewed★ 0↓ 9

TradingView Chart: Shows TradingView's advanced chart widget in a frame, driven by panel state (symbol, interval, studies), reporting back the last quote.

1.2 KB
1/* The chart's own CSS: TradingView's frame filling the element, and one quiet line under it crediting
2 TradingView. The house style by hand: square, one grey line, muted text. Colours are the app's theme
3 variables, so the view follows its light and dark, each with its light value as the fallback for an
4 app from before the theme. */
5
6.tv-root {
7 display: flex;
8 flex-direction: column;
9 height: 100%;
10 width: 100%;
11 background: var(--jaspers-background, #fff);
12 color: var(--jaspers-foreground, #171717);
13 font: 13px/1.45 var(--jaspers-font-sans, system-ui, -apple-system, sans-serif);
14}
15
16.tv-frame {
17 display: block;
18 flex: 1 1 auto;
19 min-height: 0;
20 width: 100%;
21 border: 0;
22}
23
24.tv-empty {
25 flex: 1 1 auto;
26 display: flex;
27 align-items: center;
28 justify-content: center;
29 margin: 0;
30 color: var(--jaspers-muted-foreground, #737373);
31}
32
33.tv-credit {
34 flex: 0 0 auto;
35 display: flex;
36 justify-content: flex-end;
37 padding: 0 8px;
38 border-top: 1px solid var(--jaspers-border, #e5e5e5);
39}
40
41.tv-credit button {
42 padding: 2px 0;
43 border: 0;
44 background: none;
45 color: var(--jaspers-muted-foreground, #737373);
46 font-size: 11px;
47 line-height: 16px;
48 cursor: pointer;
49}
50
51.tv-credit button:hover {
52 color: var(--jaspers-foreground, #171717);
53}