Skip to content

Commit 8c23a08

Browse files
committed
improved analog-clock
1 parent 56a9177 commit 8c23a08

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed
File renamed without changes.

lib/metro.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55003,7 +55003,7 @@ button.glow-animated-hover,
5500355003
justify-content: center;
5500455004
height: var(--analog-clock-icon-size);
5500555005
width: var(--analog-clock-icon-size);
55006-
top: 30px;
55006+
top: 50px;
5500755007
left: 50%;
5500855008
transform: translateX(-50%);
5500955009
font-size: 10px;
@@ -55032,7 +55032,7 @@ button.glow-animated-hover,
5503255032
right: 35px;
5503355033
top: 50%;
5503455034
transform: translateY(-50%);
55035-
font-size: 8px;
55035+
font-size: 14px;
5503655036
color: var(--analog-clock-color);
5503755037
background: var(--analog-clock-background);
5503855038
font-weight: 600;
@@ -55146,15 +55146,15 @@ button.glow-animated-hover,
5514655146
background: var(--analog-clock-minute-color);
5514755147
}
5514855148
.analog-clock .digital-clock {
55149-
width: 66px;
55149+
width: 86px;
5515055150
display: inline-flex;
5515155151
align-items: center;
5515255152
justify-content: center;
5515355153
position: absolute;
55154-
bottom: 50px;
55154+
bottom: 60px;
5515555155
left: 50%;
5515655156
transform: translateX(-50%);
55157-
font-size: 10px;
55157+
font-size: 18px;
5515855158
border-radius: 2px;
5515955159
background: var(--analog-clock-background);
5516055160
font-weight: 700;
@@ -55178,8 +55178,8 @@ button.glow-animated-hover,
5517855178
content: ":";
5517955179
display: block;
5518055180
color: #c6c6c6;
55181-
top: 4px;
55182-
font-size: 10px;
55181+
top: 50%;
55182+
transform: translateY(-50%);
5518355183
font-weight: 900;
5518455184
}
5518555185
.analog-clock .digital-clock .dc-minute::before {

lib/metro.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/components/analog-clock/analog-clock.less

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
justify-content: center;
5656
height: var(--analog-clock-icon-size);
5757
width: var(--analog-clock-icon-size);
58-
top: 30px;
58+
top: 50px;
5959
left: 50%;
6060
transform: translateX(-50%);
6161
font-size: 10px;
@@ -86,7 +86,7 @@
8686
right: 35px;
8787
top: 50%;
8888
transform: translateY(-50%);
89-
font-size: 8px;
89+
font-size: 14px;
9090
color: var(--analog-clock-color);
9191
background: var(--analog-clock-background);
9292
font-weight: 600;
@@ -213,15 +213,15 @@
213213
}
214214

215215
.digital-clock {
216-
width: 66px;
216+
width: 86px;
217217
display: inline-flex;
218218
align-items: center;
219219
justify-content: center;
220220
position: absolute;
221-
bottom: 50px;
221+
bottom: 60px;
222222
left: 50%;
223223
transform: translateX(-50%);
224-
font-size: 10px;
224+
font-size: 18px;
225225
border-radius: 2px;
226226
background: var(--analog-clock-background);
227227
font-weight: 700;
@@ -244,8 +244,8 @@
244244
content: ':';
245245
display: block;
246246
color: #c6c6c6;
247-
top: 4px;
248-
font-size: 10px;
247+
top: 50%;
248+
transform: translateY(-50%);
249249
font-weight: 900;
250250
}
251251
&::before {

source/components/analog-clock/analog-clock.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ suite("Analog Clock Component Tests", () => {
3939
expect(document.querySelector("#test-clock .moon")).not.toBeNull(); // showMoon is true by default
4040
expect(document.querySelector("#test-clock .day-month")).not.toBeNull(); // showDay is true by default
4141
expect(document.querySelector("#test-clock .digital-clock")).not.toBeNull(); // showDigitalClock is true by default
42-
expect(document.querySelector("#test-clock").classList.contains("show-numbers")).toBe(false); // showNumbers is false by default
42+
expect(document.querySelector("#test-clock").classList.contains("show-numbers")).toBe(true); // showNumbers is false by default
4343
});
4444

4545
// Test initialization with custom options

tests/button.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ afterAll(async () => {
99
await B.bye()
1010
})
1111

12-
describe("button.html tests", () => {
13-
it("button.html", async () => {
14-
await B.visit(`${getFileUrl(`./examples/button.html`)}`)
12+
describe("push-button.html tests", () => {
13+
it("push-button.html", async () => {
14+
await B.visit(`${getFileUrl(`./examples/push-button.html`)}`)
1515
expect(B.error).toBeNull(B.error)
1616
})
1717
})

0 commit comments

Comments
 (0)