Skip to content

Commit c9a7305

Browse files
fix(gamepad-tester): redesign interface (#414)
1 parent 7c437f4 commit c9a7305

5 files changed

Lines changed: 997 additions & 299 deletions

File tree

_sass/circular-progress.scss

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
.circular-button {
2-
position: relative;
3-
width: 70px;
4-
height: 70px;
5-
line-height: 70px;
2+
align-items: center;
63
background: none;
7-
margin-right: 8px;
8-
margin-bottom: 8px;
94
display: flex;
5+
height: 4.5rem;
106
justify-content: center;
11-
align-items: center;
7+
line-height: 4.5rem;
8+
position: relative;
9+
width: 4.5rem;
1210
}
1311

1412
.circular-button:after {
1513
content: "";
1614
width: 100%;
1715
height: 100%;
1816
border-radius: 50%;
19-
border: 5px solid var(--circular-progress-border);
17+
border: 0.3rem solid var(--circular-progress-border);
2018
position: absolute;
2119
top: 0;
2220
left: 0;
@@ -43,58 +41,64 @@
4341
width: 100%;
4442
height: 100%;
4543
background: none;
46-
border-color: #0d6efd;
47-
border-width: 5px;
44+
border-color: var(--bs-primary);
45+
border-width: 0.3rem;
4846
border-style: solid;
4947
position: absolute;
5048
top: 0;
5149
}
5250

5351
.circular-button .progress-left .progress-bar {
5452
left: 100%;
55-
border-top-right-radius: 35px;
56-
border-bottom-right-radius: 35px;
53+
border-top-right-radius: 2.25rem;
54+
border-bottom-right-radius: 2.25rem;
5755
border-left: 0;
5856
transform-origin: center left;
5957
}
6058

6159
.circular-button .progress-right .progress-bar {
6260
left: -100%;
63-
border-top-left-radius: 35px;
64-
border-bottom-left-radius: 35px;
61+
border-top-left-radius: 2.25rem;
62+
border-bottom-left-radius: 2.25rem;
6563
border-right: 0;
6664
transform-origin: center right;
6765
}
6866

6967
.circular-button .button-content {
70-
width: 80%;
71-
height: 80%;
68+
width: 82%;
69+
height: 82%;
7270
border-radius: 50%;
7371
background: var(--circular-progress-bg);
7472
display: flex;
7573
flex-direction: column;
7674
justify-content: center;
7775
align-items: center;
7876
position: absolute;
79-
top: 10%;
80-
left: 10%;
77+
top: 9%;
78+
left: 9%;
8179
z-index: 2;
8280
text-align: center;
8381
}
8482

8583
.circular-button .button-name {
84+
font-size: 0.72rem;
8685
font-weight: bold;
8786
margin-bottom: 2px;
8887
line-height: 1.2;
8988
}
9089

9190
.circular-button .button-value {
92-
font-size: 0.85rem;
93-
line-height: 0.5;
91+
color: var(--footer-text-col);
92+
font-family: var(--bs-font-monospace);
93+
font-size: 0.68rem;
94+
font-variant-numeric: tabular-nums;
95+
line-height: 1;
96+
margin-top: 0.2rem;
9497
}
9598

9699
.circular-button.active .button-content {
97-
box-shadow: 0 0 10px 3px rgba(13, 110, 253, 0.5);
100+
background-color: var(--card-primary-bg);
101+
box-shadow: 0 0 0.8rem 0.2rem rgba(var(--bs-primary-rgb), 0.35);
98102
}
99103

100104
.circular-button .button-image-container {
@@ -106,8 +110,8 @@
106110
}
107111

108112
.circular-button .button-image {
109-
max-width: 2.5rem;
110-
max-height: 2.5rem;
113+
max-width: 2.15rem;
114+
max-height: 2.15rem;
111115
width: auto;
112116
height: auto;
113117
}

0 commit comments

Comments
 (0)