Skip to content

Commit 4b67468

Browse files
authored
feat: add dark mode support (#10)
1 parent 381e231 commit 4b67468

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

popup/choose_bootstrap_version.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
html, body {
2+
font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
23
width: max-content;
34
}
45

@@ -11,3 +12,15 @@ html, body {
1112
flex-direction: column;
1213
gap: 10px;
1314
}
15+
16+
label span {
17+
opacity: 0.75;
18+
}
19+
20+
@media (prefers-color-scheme: dark) {
21+
body {
22+
color-scheme: dark;
23+
background-color: #212529;
24+
color: #fff;
25+
}
26+
}

popup/choose_bootstrap_version.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<!DOCTYPE html>
2-
<html>
2+
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
55
<link rel="stylesheet" href="choose_bootstrap_version.css" />
6+
<title>Choose Bootstrap Version</title>
67
</head>
78
<body>
89
<div id="popup-content">
@@ -16,7 +17,7 @@
1617
</div>
1718
<div>
1819
<input type="checkbox" id="bs5" name="bs5" />
19-
<label for="bs5">Bootstrap 5<br>(removed in Bootstrap 6)</label>
20+
<label for="bs5">Bootstrap 5<br><span>(removed in Bootstrap 6)</span></label>
2021
</div>
2122
<button type="reset">Reset</button>
2223
</div>

0 commit comments

Comments
 (0)