-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
182 lines (170 loc) · 4.59 KB
/
main.css
File metadata and controls
182 lines (170 loc) · 4.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
:root{
--shell:#cfd5d7;
--shell-shadow:#b9c0c3;
--dark:#6c7378;
--accent:#6b6bd6;
--led:#ff3b3b;
--screen:#9bbc0f;
--screen-deep:#8cab0e;
--bezel:#3a3a3a;
--table-bg:#f4f7f5;
--text:#1a1d1f;
--text-dim:#5b6166;
--line:#e2e6e9;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
margin:0;
font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial;
color:var(--text);
background:
radial-gradient(1200px 800px at 20% 10%, #eef2f6 0, #e7ecf1 40%, #dde3e9 70%, #d6dde3 100%);
}
.wrap{
min-height:100%;
display:grid;
place-items:center;
padding:32px 16px;
}
.gametoy{
width:min(92vw, 520px);
background:linear-gradient(180deg,var(--shell) 0%, #dbe1e4 100%);
border-radius:24px 24px 80px 24px;
box-shadow:
inset 0 2px 0 #fff,
0 12px 24px rgba(0,0,0,.15),
0 4px 0 var(--shell-shadow);
padding:18px 18px 24px;
position:relative;
}
/* Cabecera */
.gb-header{
display:flex;
align-items:center;
gap:12px;
margin-bottom:12px;
}
.gb-led{
width:10px;height:10px;border-radius:50%;
background:radial-gradient(circle at 30% 30%, #fff7 0 25%, transparent 26%),
var(--led);
box-shadow:0 0 6px 2px #ff3b3b66, inset 0 -1px 2px #9c1c1c;
}
.gb-title{
margin:0;
font-size:14px;
letter-spacing:.28em;
color:var(--dark);
font-weight:800;
}
/* Pantalla */
.gb-screen{
background:linear-gradient(180deg,#2b2b2b,#161616);
border-radius:14px 14px 36px 14px;
padding:16px;
box-shadow:inset 0 0 0 2px #0008, inset 0 0 0 6px #262626;
}
.screen-bezel{
background:linear-gradient(180deg,#1a1a1a,#222);
border-radius:10px 10px 28px 10px;
padding:10px;
box-shadow:inset 0 0 0 2px #000a;
}
.screen-inner{
background:linear-gradient(180deg,var(--screen) 0%, var(--screen-deep) 100%);
border-radius:6px 6px 18px 6px;
padding:12px;
min-height:240px;
box-shadow:inset 0 2px 8px #0003, inset 0 -2px 6px #0002;
overflow:auto;
}
/* Tabla */
.gb-table{
width:100%;
border-collapse:separate;
border-spacing:0;
background:var(--table-bg);
border-radius:8px;
overflow:hidden;
box-shadow:0 1px 0 #0002;
}
.gb-table thead th{
position:sticky; top:0;
background:linear-gradient(180deg,#f9fbfb,#eef3f5);
color:var(--text-dim);
text-align:left;
font-weight:700;
font-size:13px;
padding:10px 12px;
border-bottom:1px solid var(--line);
z-index:1;
}
.gb-table tbody td{
padding:10px 12px;
font-size:14px;
border-bottom:1px solid var(--line);
}
.gb-table tbody tr:hover td{
background:#f0f4f7;
}
/* Controles */
.gb-controls{
margin-top:18px;
display:grid;
grid-template-columns: 1fr auto auto 1fr;
align-items:center;
gap:18px 24px;
}
.dpad{
grid-column:1;
width:96px; height:96px; position:relative;
filter: drop-shadow(0 2px 1px #0003);
}
.dpad .d{
position:absolute; background:linear-gradient(180deg,#444,#2a2a2a);
border-radius:8px; box-shadow:inset 0 1px 0 #6666;
}
.dpad .up{left:36px; top:0; width:24px; height:40px; border-bottom-left-radius:0;border-bottom-right-radius:0}
.dpad .down{left:36px; bottom:0; width:24px; height:40px; border-top-left-radius:0;border-top-right-radius:0}
.dpad .left{left:0; top:36px; width:40px; height:24px; border-top-right-radius:0;border-bottom-right-radius:0}
.dpad .right{right:0; top:36px; width:40px; height:24px; border-top-left-radius:0;border-bottom-left-radius:0}
.dpad .center{left:36px; top:36px; width:24px; height:24px; border-radius:6px}
.buttons{
grid-column:2;
display:flex; gap:18px; align-items:center; justify-content:center;
}
.btn{
width:54px; height:54px; border-radius:50%;
background:radial-gradient(circle at 30% 30%, #fff2, transparent 60%),
linear-gradient(180deg,#7d77f0,#5a55c9 60%, #4d49b6 100%);
border:none; box-shadow:inset 0 -3px 0 #3b3796, 0 4px 0 #302d80, 0 6px 12px #0002;
transform:rotate(-15deg);
}
.btn.b{ transform:rotate(-15deg) translateY(8px) translateX(-6px); }
.btn.a{ transform:rotate(-15deg) translateY(-4px) translateX(6px); }
.system{
grid-column:3;
display:flex; gap:12px;
}
.pill{
width:58px; height:16px; border-radius:24px;
background:linear-gradient(180deg,#464646,#2c2c2c);
border:none; box-shadow:inset 0 1px 0 #7777, 0 3px 0 #222;
}
.speaker{
grid-column:4;
display:flex; gap:6px; justify-content:flex-end;
}
.speaker span{
display:block; width:6px; height:50px; border-radius:3px;
background:linear-gradient(180deg,#6a6a6a,#3a3a3a);
box-shadow:inset 0 1px 0 #9a9a9a, 0 2px 0 #2a2a2a;
}
/* Responsivo */
@media (max-width:480px){
.gametoy{ padding:14px 14px 18px }
.screen-inner{ min-height:200px }
.buttons .btn{ width:48px;height:48px }
.dpad{ width:84px;height:84px }
}