forked from CodingWith-Adam/gamepad-tester
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
113 lines (94 loc) · 1.57 KB
/
style.css
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
body {
padding: 0px;
margin: 0px;
background: linear-gradient(
0deg,
rgb(193, 202, 212) 0%,
rgba(234, 229, 253, 0) 25%
);
height: 100vh;
}
h1 {
margin-top: 0px;
margin-bottom: 5px;
font-size: 3.5em;
}
.center {
text-align: center;
}
.controller-status {
font-weight: bold;
text-align: center;
}
#controller-connected {
color: green;
}
#controller-connected-area {
display: none;
}
#controller-not-connected-area {
color: darkred;
display: flex;
justify-content: center;
align-items: center;
gap: 10px;
}
#rumble-on-button-press-area {
margin-bottom: 10px;
text-align: center;
}
.loader {
display: inline-block;
border: 8px solid #484848;
border-radius: 50%;
border-top: 8px solid #3498db;
border-bottom: 8px solid #3498db;
width: 20px;
height: 20px;
-webkit-animation: spin 1.5s linear infinite;
animation: spin 1.5s linear infinite;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* button grid */
#buttons {
display: grid;
grid-template-columns: repeat(8, minmax(min-content, max-content));
grid-gap: 15px;
justify-content: center;
justify-items: start;
}
.button {
background-color: rgb(223, 222, 222);
height: 50px;
min-width: 50px;
display: flex;
}
.button-text-area {
padding-left: 10px;
padding-right: 10px;
}
.button-name {
color: grey;
}
/* controller */
.selected-button {
fill: rgb(231, 24, 24);
}
/* axes */
.axis-name {
color: grey;
font-weight: bolder;
}
.axis-value {
color: rgb(126, 54, 54);
}
a {
color: red;
}