Skip to content

Commit 5ded42e

Browse files
authored
feat(UI): use normalised font-family and line-height (#2117)
1 parent 24a40af commit 5ded42e

File tree

7 files changed

+31
-24
lines changed

7 files changed

+31
-24
lines changed

src/action/backup.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242

4343
background-color: rgb(var(--passive-grey));
4444
color: rgb(var(--black));
45-
font-family: monospace, monospace;
45+
font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
4646
font-size: smaller;
4747
white-space: pre;
4848
}

src/action/components/xkit-feature/index.css

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ summary:focus {
7171

7272
background-color: #ff62ce;
7373
color: rgb(var(--white));
74-
line-height: 1.5;
7574
}
7675

7776
.title,
@@ -81,13 +80,11 @@ summary:focus {
8180

8281
.title {
8382
font-size: 15px;
84-
line-height: 18.5px;
8583
}
8684

8785
.description {
8886
font-size: 13px;
89-
line-height: 16px;
90-
opacity: 70%;
87+
opacity: 69%;
9188
}
9289

9390
.disabled:not([open], :focus-within, :hover) :is(.icon, .meta) {

src/action/configuration.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ label[for="filter"] {
3939
height: 100px;
4040

4141
color: rgb(var(--active-grey));
42-
content: "Loading...";
43-
font-size: 1.3125rem;
44-
font-weight: 700;
42+
content: "Loading";
43+
font-size: 1.133rem;
44+
font-weight: bold;
4545
}
4646

4747
xkit-feature.search-hidden,

src/action/popup.css

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ html, main {
5555
body {
5656
background-color: rgb(var(--white));
5757
color: rgb(var(--black));
58-
font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
59-
font-size: 100%;
58+
font: inherit;
59+
-webkit-user-select: none;
6060
user-select: none;
6161
}
6262

@@ -77,8 +77,7 @@ body {
7777
border-radius: 0.5ch;
7878
margin: 8px auto 0;
7979

80-
font-family: 'Courier New', Courier, monospace;
81-
line-height: 1;
80+
font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
8281
}
8382

8483
#grant-host-permission:focus {
@@ -106,7 +105,6 @@ nav a {
106105

107106
color: rgb(var(--black));
108107
font-weight: bold;
109-
line-height: 1em;
110108
text-align: center;
111109
text-decoration: none;
112110
}
@@ -131,7 +129,7 @@ section.open:empty {
131129
}
132130

133131
section.open:empty::before {
134-
content: "No one's around to help.";
132+
content: "No ones around to help.";
135133
}
136134

137135
section h2 {

src/features/postblock/options/index.css

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ html {
2424
body {
2525
background-color: rgb(var(--white));
2626
color: rgb(var(--black));
27-
font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
28-
font-size: 100%;
27+
font: inherit;
2928
-webkit-user-select: none;
3029
user-select: none;
3130
}
@@ -35,16 +34,30 @@ header {
3534
flex-direction: row;
3635
justify-content: space-between;
3736
align-items: center;
38-
margin-bottom: 1em;
37+
column-gap: 6px;
38+
flex-wrap: wrap;
39+
}
40+
41+
#posts-blocked-count,
42+
#posts-blocked-info {
43+
margin: 0;
3944
}
4045

4146
#posts-blocked-count {
42-
font-weight: bold;
47+
font-size: 15px;
48+
}
49+
50+
#posts-blocked-info {
51+
font-size: 11px;
4352
}
4453

4554
#blocked-posts {
4655
padding: 0;
47-
margin: 0;
56+
margin: 1em 0 0;
57+
}
58+
59+
#blocked-posts:empty {
60+
display: none;
4861
}
4962

5063
.blocked-post {

src/features/postblock/options/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
</template>
2121
<main>
2222
<header>
23-
<span id="posts-blocked-count"></span>
24-
<small>Unblocking a post will immediately unhide it.</small>
23+
<h3 id="posts-blocked-count">Loading…</h3>
24+
<p id="posts-blocked-info">Unblocking a post will immediately unhide it.</p>
2525
</header>
2626
<ul id="blocked-posts"></ul>
2727
</main>

src/features/quick_tags/options/index.css

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ html {
2424
body {
2525
background-color: rgb(var(--white));
2626
color: rgb(var(--black));
27-
font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
28-
font-size: 100%;
27+
font: inherit;
2928
-webkit-user-select: none;
3029
user-select: none;
3130
}
@@ -106,7 +105,7 @@ input[type="text"] {
106105

107106
.bundle button i {
108107
color: rgb(var(--black));
109-
font-size: 1.5em;
108+
font-size: 21px;
110109
}
111110

112111
.bundle .drag-handle {

0 commit comments

Comments
 (0)