Skip to content

Commit 1cb37fd

Browse files
authored
Update index.css
Signed-off-by: Aitor Alien <[email protected]>
1 parent 0efb078 commit 1cb37fd

File tree

1 file changed

+18
-39
lines changed

1 file changed

+18
-39
lines changed

src/index.css

Lines changed: 18 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,24 @@
1717
:root {
1818
--background: 240 33% 5%;
1919
--foreground: 0 0% 98%;
20-
2120
--card: 240 33% 8%;
2221
--card-foreground: 0 0% 98%;
23-
2422
--popover: 240 33% 5%;
2523
--popover-foreground: 0 0% 98%;
26-
2724
--primary: 48 83% 72%;
2825
--primary-foreground: 240 33% 10%;
29-
3026
--secondary: 142 67% 45%;
3127
--secondary-foreground: 0 0% 98%;
32-
3328
--muted: 240 20% 20%;
3429
--muted-foreground: 240 10% 80%;
35-
3630
--accent: 48 83% 72%;
3731
--accent-foreground: 240 33% 10%;
38-
3932
--destructive: 0 84.2% 60.2%;
4033
--destructive-foreground: 0 0% 98%;
41-
4234
--border: 240 20% 16%;
4335
--input: 240 20% 16%;
4436
--ring: 48 83% 72%;
45-
4637
--radius: 0.5rem;
47-
4838
--sidebar-background: 240 33% 5%;
4939
--sidebar-foreground: 0 0% 98%;
5040
--sidebar-primary: 48 83% 72%;
@@ -55,28 +45,28 @@
5545
--sidebar-ring: 48 83% 72%;
5646
}
5747

58-
/* IMPORTANTE: Declaraciones de fuente prioritarias */
59-
h1, h2, h3, h4, h5, h6 {
48+
/* TIPOGRAFÍA: Nasalization solo para títulos y botones */
49+
h1, h2, h3, h4, h5, h6, button {
6050
font-family: 'Nasalization', sans-serif;
61-
font-weight: 400; /* Asegurado que no esté en bold */
51+
font-weight: 400;
6252
letter-spacing: 0.5px;
6353
}
6454

65-
body, p, span, div, a, button {
55+
/* Exo para texto general y formularios */
56+
body, p, span, div, a, input, textarea, label {
6657
font-family: 'Exo', system-ui, sans-serif;
6758
}
6859

69-
/* Clase estándar para fuente Nasalization */
60+
/* Helper para forzar Nasalization donde quieras */
7061
.font-nasalization {
7162
font-family: 'Nasalization', sans-serif;
7263
font-weight: 400;
7364
letter-spacing: 0.5px;
7465
}
75-
}
7666

77-
@layer base {
78-
* {
79-
@apply border-border;
67+
/* Borde global sin usar @apply en el selector universal */
68+
:where(*, *::before, *::after) {
69+
border-color: hsl(var(--border));
8070
}
8171

8272
body {
@@ -87,21 +77,19 @@
8777
::-webkit-scrollbar {
8878
width: 8px;
8979
}
90-
9180
::-webkit-scrollbar-track {
92-
background: theme('colors.alien.space-dark');
81+
background: hsl(var(--sidebar-background));
9382
}
94-
9583
::-webkit-scrollbar-thumb {
96-
background: theme('colors.alien.gold-dark');
84+
background: hsl(var(--sidebar-primary));
9785
border-radius: 4px;
9886
}
99-
10087
::-webkit-scrollbar-thumb:hover {
101-
background: theme('colors.alien.gold');
88+
background: hsl(var(--sidebar-primary-foreground));
10289
}
10390
}
10491

92+
/* === Helpers y utilidades === */
10593
.text-glow {
10694
text-shadow: 0 0 8px rgba(240, 216, 130, 0.8);
10795
}
@@ -117,11 +105,10 @@
117105
/* Improved card-border without unwanted backgrounds */
118106
.card-border {
119107
position: relative;
120-
border-radius: theme('borderRadius.lg');
108+
border-radius: var(--radius);
121109
background: rgba(17, 17, 25, 0.6);
122-
backdrop-filter: blur(8px);
110+
backdrop-filter: blur(8px); /* Puede avisar pero es seguro para navegadores modernos */
123111
}
124-
125112
.card-border::before {
126113
content: '';
127114
position: absolute;
@@ -131,12 +118,12 @@
131118
bottom: 0;
132119
border-radius: inherit;
133120
padding: 1.5px;
134-
background: linear-gradient(145deg, theme('colors.alien.gold'), theme('colors.alien.green'));
121+
background: linear-gradient(145deg, hsl(var(--sidebar-primary)), hsl(var(--sidebar-accent)));
135122
-webkit-mask:
136123
linear-gradient(#fff 0 0) content-box,
137124
linear-gradient(#fff 0 0);
138-
-webkit-mask-composite: xor;
139-
mask-composite: exclude;
125+
-webkit-mask-composite: xor; /* Puede avisar, es experimental */
126+
mask-composite: exclude; /* Puede avisar, es experimental */
140127
pointer-events: none;
141128
}
142129

@@ -149,15 +136,13 @@
149136
align-items: center;
150137
max-width: 100%;
151138
}
152-
153139
.star-wars-content {
154140
transform: rotateX(20deg);
155141
transform-origin: center top;
156142
animation: star-wars-float 4s ease-out forwards;
157143
width: 100%;
158144
padding: 2rem;
159145
}
160-
161146
@keyframes star-wars-float {
162147
0% {
163148
transform: rotateX(20deg) translateY(100px);
@@ -172,24 +157,20 @@
172157
}
173158
}
174159

175-
/* Parallax effect */
176160
.parallax {
177161
background-attachment: fixed;
178162
background-position: center;
179163
background-repeat: no-repeat;
180164
background-size: cover;
181165
}
182166

183-
/* Background gradient */
184167
.bg-glow-radial {
185168
background: radial-gradient(circle at center, rgba(34, 197, 94, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
186169
}
187170

188-
/* Cosmic grid */
189171
.cosmic-grid {
190172
position: relative;
191173
}
192-
193174
.cosmic-grid::before {
194175
content: "";
195176
position: absolute;
@@ -205,8 +186,6 @@
205186
pointer-events: none;
206187
z-index: -1;
207188
}
208-
209-
/* Price ticker animation */
210189
@keyframes ticker-scroll {
211190
0% {
212191
transform: translateX(0);

0 commit comments

Comments
 (0)