Skip to content

Commit 198e00e

Browse files
jay-esdanielkellyioskirtles-code
authored
Dark-mode styling for select and option elements (#310) (#311)
* 4 more Vue School Video Links (CAPI events, teleport, component registration, devtools) (#1576) * Fix mismatched quotes in import (#1586) * Dark-mode styling for select and option elements (#1587) Co-authored-by: Daniel Kelly <[email protected]> Co-authored-by: skirtle <[email protected]>
1 parent abf3f2f commit 198e00e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@
5555
padding: 0.2em 0.6em;
5656
margin-top: 10px;
5757
background: transparent;
58+
transition: background-color 0.5s;
59+
}
60+
61+
.dark .demo select {
62+
background: var(--vt-c-bg-soft);
63+
}
64+
65+
.dark .demo select option {
66+
background: transparent;
5867
}
5968

6069
.demo input:not([type]):focus,

0 commit comments

Comments
 (0)