Skip to content

Commit 62ae23b

Browse files
committed
transition
1 parent 4dac33d commit 62ae23b

File tree

4 files changed

+765
-245
lines changed

4 files changed

+765
-245
lines changed

src/.vitepress/theme/styles/inline-demo.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,31 @@
1212

1313
.demo button {
1414
background-color: var(--vt-c-bg-mute);
15-
transition: background-color .5s;
16-
padding: 8px 16px;
15+
transition: background-color 0.5s;
16+
padding: 5px 12px;
1717
border: 1px solid var(--vt-c-divider);
1818
border-radius: 8px;
19+
font-size: 0.9em;
1920
font-weight: 600;
2021
}
2122

2223
.demo button + button {
2324
margin-left: 1em;
2425
}
2526

26-
.demo input, .demo textarea, .demo select {
27+
.demo input,
28+
.demo textarea,
29+
.demo select {
2730
border: 1px solid var(--vt-c-divider);
2831
border-radius: 4px;
2932
padding: 0.2em 0.6em;
3033
margin-top: 10px;
34+
background: transparent;
3135
}
3236

33-
.demo input:focus {
37+
.demo input:not([type]):focus,
38+
.demo textarea:focus,
39+
.demo select:focus {
3440
outline: 1px solid blue;
3541
}
3642

0 commit comments

Comments
 (0)