drguilhermeapolinario
commited on
Commit
•
7c4d4b8
1
Parent(s):
848beeb
Upload 2 files
Browse files- style.css +131 -0
- styles1.html +64 -0
style.css
ADDED
@@ -0,0 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Estilos gerais */
|
2 |
+
:root {
|
3 |
+
--background: 0 0% 80%;
|
4 |
+
--foreground: 240 10% 3.9%;
|
5 |
+
--card: 0 0% 100%;
|
6 |
+
--card-foreground: 240 10% 3.9%;
|
7 |
+
--popover: 0 0% 100%;
|
8 |
+
--popover-foreground: 240 10% 3.9%;
|
9 |
+
--primary: 240 5.9% 10%;
|
10 |
+
--primary-foreground: 0 0% 98%;
|
11 |
+
--secondary: 240 4.8% 95.9%;
|
12 |
+
--secondary-foreground: 240 5.9% 10%;
|
13 |
+
--muted: 240 4.8% 95.9%;
|
14 |
+
--muted-foreground: 240 3.8% 46.1%;
|
15 |
+
--accent: 240 4.8% 95.9%;
|
16 |
+
--accent-foreground: 240 5.9% 10%;
|
17 |
+
--destructive: 0 84.2% 60.2%;
|
18 |
+
--destructive-foreground: 0 0% 98%;
|
19 |
+
--border: 240 5.9% 90%;
|
20 |
+
--input: 240 5.9% 90%;
|
21 |
+
--ring: 240 10% 3.9%;
|
22 |
+
--chart-1: 173 58% 39%;
|
23 |
+
--chart-2: 12 76% 61%;
|
24 |
+
--chart-3: 197 37% 24%;
|
25 |
+
--chart-4: 43 74% 66%;
|
26 |
+
--chart-5: 27 87% 67%;
|
27 |
+
}
|
28 |
+
.dark {
|
29 |
+
--background: 240 10% 3.9%;
|
30 |
+
--foreground: 0 0% 98%;
|
31 |
+
--card: 240 10% 3.9%;
|
32 |
+
--card-foreground: 0 0% 98%;
|
33 |
+
--popover: 240 10% 3.9%;
|
34 |
+
--popover-foreground: 0 0% 98%;
|
35 |
+
--primary: 0 0% 98%;
|
36 |
+
--primary-foreground: 240 5.9% 10%;
|
37 |
+
--secondary: 240 3.7% 15.9%;
|
38 |
+
--secondary-foreground: 0 0% 98%;
|
39 |
+
--muted: 240 3.7% 15.9%;
|
40 |
+
--muted-foreground: 240 5% 64.9%;
|
41 |
+
--accent: 240 3.7% 15.9%;
|
42 |
+
--accent-foreground: 0 0% 98%;
|
43 |
+
--destructive: 0 62.8% 30.6%;
|
44 |
+
--destructive-foreground: 0 0% 98%;
|
45 |
+
--border: 240 3.7% 15.9%;
|
46 |
+
--input: 240 3.7% 15.9%;
|
47 |
+
--ring: 240 4.9% 83.9%;
|
48 |
+
--chart-1: 220 70% 50%;
|
49 |
+
--chart-5: 160 60% 45%;
|
50 |
+
--chart-3: 30 80% 55%;
|
51 |
+
--chart-4: 280 65% 60%;
|
52 |
+
--chart-2: 340 75% 55%;
|
53 |
+
}
|
54 |
+
|
55 |
+
/* Estilos gerais */
|
56 |
+
body {
|
57 |
+
font-family: 'Roboto', sans-serif;
|
58 |
+
background-color: hsl(var(--background));
|
59 |
+
color: hsl(var(--foreground));
|
60 |
+
}
|
61 |
+
|
62 |
+
.stApp {
|
63 |
+
padding: 4rem;
|
64 |
+
}
|
65 |
+
|
66 |
+
/* Estilo Neuromórfico para as métricas */
|
67 |
+
div[data-testid="stMetric"] {
|
68 |
+
background: hsl(var(--card));
|
69 |
+
border-radius: 15px;
|
70 |
+
padding: 2em 1em; /* Aumenta o padding para sobressair */
|
71 |
+
box-shadow: 8px 8px 15px hsl(var(--muted)), -8px -8px 15px hsl(var(--background));
|
72 |
+
transition: all 0.3s ease;
|
73 |
+
}
|
74 |
+
|
75 |
+
div[data-testid="stMetric"]:hover {
|
76 |
+
transform: translateY(-5px);
|
77 |
+
box-shadow: 12px 12px 20px hsl(var(--muted)), -12px -12px 20px hsl(var(--background));
|
78 |
+
}
|
79 |
+
|
80 |
+
div[data-testid="stMetricLabel"] p {
|
81 |
+
font-family: 'Quattrocento-Regular';
|
82 |
+
color: hsl(var(--primary));
|
83 |
+
font-size: 1.3em;
|
84 |
+
}
|
85 |
+
|
86 |
+
div[data-testid="stMetricValue"] {
|
87 |
+
font-size: 1.3em;
|
88 |
+
font-weight: 400;
|
89 |
+
color: hsl(var(--primary-foreground));
|
90 |
+
}
|
91 |
+
|
92 |
+
/* Outros elementos neuromórficos */
|
93 |
+
.stButton button,
|
94 |
+
.stTextInput input,
|
95 |
+
.stSelectbox select {
|
96 |
+
border-radius: 25px;
|
97 |
+
padding: 1em 2em;
|
98 |
+
background: hsl(var(--card));
|
99 |
+
box-shadow: 8px 8px 15px hsl(var(--muted)), -8px -8px 15px hsl(var(--background));
|
100 |
+
transition: all 0.3s ease;
|
101 |
+
border: none;
|
102 |
+
color: hsl(var(--foreground));
|
103 |
+
}
|
104 |
+
|
105 |
+
.stButton button:hover,
|
106 |
+
.stTextInput input:focus,
|
107 |
+
.stSelectbox select:focus {
|
108 |
+
box-shadow: 12px 12px 20px hsl(var(--muted)), -12px -12px 20px hsl(var(--background));
|
109 |
+
}
|
110 |
+
|
111 |
+
.stButton button:active,
|
112 |
+
.stTextInput input:active,
|
113 |
+
.stSelectbox select:active {
|
114 |
+
box-shadow: inset 5px 5px 10px hsl(var(--muted)), inset -5px -5px 10px hsl(var(--background));
|
115 |
+
}
|
116 |
+
|
117 |
+
/* Ajustes para títulos e subtítulos */
|
118 |
+
.title {
|
119 |
+
font-family: 'Quattrocento-Bold';
|
120 |
+
color: hsl(var(--primary));
|
121 |
+
font-size: 4em;
|
122 |
+
text-shadow: 2px 2px 4px hsl(var(--border));
|
123 |
+
}
|
124 |
+
|
125 |
+
h3 span {
|
126 |
+
font-family: 'PoiretOne-Regular';
|
127 |
+
font-size: 1.1em;
|
128 |
+
font-weight: 600;
|
129 |
+
margin-top: 1em;
|
130 |
+
color: hsl(var(--foreground));
|
131 |
+
}
|
styles1.html
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<style>
|
2 |
+
@font-face {
|
3 |
+
font-family: 'PoiretOne-Regular';
|
4 |
+
src: url('app/static/Quattrocento-Bold.ttf');
|
5 |
+
}
|
6 |
+
|
7 |
+
div [data-testid="stWidgetLabel"] {
|
8 |
+
font-family: 'PoiretOne-Regular';
|
9 |
+
font-size: large;
|
10 |
+
font-weight: 400;
|
11 |
+
color: hsl(var(--primary));
|
12 |
+
}
|
13 |
+
|
14 |
+
div [data-testid="stRadio"],
|
15 |
+
div [data-testid="stSlider"],
|
16 |
+
div [data-testid="stSelectbox"],
|
17 |
+
div [data-testid="stSidebar"] {
|
18 |
+
margin-top: 1em;
|
19 |
+
padding: 1em;
|
20 |
+
border-radius: 18px;
|
21 |
+
box-shadow: 2px 3px 10px hsl(var(--border));
|
22 |
+
background-color: hsl(var(--card));
|
23 |
+
}
|
24 |
+
|
25 |
+
div[data-testid="stVerticalBlockBorderWrapper"]:has(.stHtml > .watchlist_card),
|
26 |
+
div[data-testid="stVerticalBlock"]:has(> div > .stHtml > .watchlist_symbol_name),
|
27 |
+
div[data-testid="stVerticalBlock"]:has(> div > .stHtml > .watchlist_ticker),
|
28 |
+
div[data-testid="stVerticalBlock"]:has(> div > .stHtml > .watchlist_price_label),
|
29 |
+
div[data-testid="stVerticalBlock"]:has(> div > .stHtml > .watchlist_price_value),
|
30 |
+
div[data-testid="stVerticalBlock"]:has(> div > .stHtml > .column_plotly),
|
31 |
+
div[data-testid="stVerticalBlock"]:has(> div > .stHtml > .column_indicator) {
|
32 |
+
border-radius: 18px;
|
33 |
+
box-shadow: 2px 3px 10px hsl(var(--border));
|
34 |
+
background-color: hsl(var(--card));
|
35 |
+
color: hsl(var(--foreground));
|
36 |
+
}
|
37 |
+
|
38 |
+
/* Estilo específico para os indicadores */
|
39 |
+
div[data-testid="stVerticalBlock"]:has(> div > .stHtml > .low_indicator) div[data-testid="stMetric"] {
|
40 |
+
border-left: 0.5rem solid red;
|
41 |
+
}
|
42 |
+
|
43 |
+
div[data-testid="stVerticalBlock"]:has(> div > .stHtml > .high_indicator) div[data-testid="stMetric"] {
|
44 |
+
border-left: 0.5rem solid rgb(166, 255, 166);
|
45 |
+
}
|
46 |
+
|
47 |
+
/* Estilo para métricas */
|
48 |
+
div[data-testid="stMetric"] {
|
49 |
+
background-color: hsl(var(--card));
|
50 |
+
border: 2px solid hsl(var(--border));
|
51 |
+
margin-top: 1em;
|
52 |
+
padding: 1.5em 1em 1em 1.5em; /* top right bottom left */
|
53 |
+
border-radius: 20px;
|
54 |
+
box-shadow: 4px 5px 10px hsl(var(--border));
|
55 |
+
width: 100%; /* Define a largura como 80% do contêiner pai */
|
56 |
+
}
|
57 |
+
|
58 |
+
div[data-testid="stMetricValue"] {
|
59 |
+
font-size: 1em;
|
60 |
+
font-weight: 400;
|
61 |
+
color: hsl(var(--primary));
|
62 |
+
}
|
63 |
+
|
64 |
+
</style>
|