From 8747a29f9f5141abec179b64f40951f589242e3e Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 20 Dec 2020 16:03:07 -0500 Subject: Settings v2 headings improvements (#1148) * Improve spacing on h2 * Add icons to headings * Clarify font-size --- ext/bg/css/settings2.css | 16 +++++++++++-- ext/bg/settings2.html | 58 +++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 61 insertions(+), 13 deletions(-) diff --git a/ext/bg/css/settings2.css b/ext/bg/css/settings2.css index 651da9c0..ea6d2816 100644 --- a/ext/bg/css/settings2.css +++ b/ext/bg/css/settings2.css @@ -232,7 +232,8 @@ h2 { font-size: 1.125em; font-weight: normal; line-height: 1.5; - margin: 1.75em 0 0.9em; + padding: 0.9em 0; + margin: 0.85em 0 0; } h3 { font-size: 1em; @@ -246,6 +247,17 @@ h3 { width: 100%; align-items: baseline; } +.heading-container-icon { + flex: 0 0 auto; + align-self: center; + margin: 0.85em 0.75em 0 0; +} +.heading-container-icon>.icon { + display: block; + background-color: var(--button-icon-color); + width: var(--outline-item-icon-size); + height: var(--outline-item-icon-size); +} .heading-container-left { flex: 1 1 auto; } @@ -253,7 +265,7 @@ h3 { flex: 0 0 auto; } .heading-sub-text { - font-size: 0.88888888em; + font-size: calc(1em / 1.125); color: var(--text-color-light); } .heading-link-light { diff --git a/ext/bg/settings2.html b/ext/bg/settings2.html index 0d7483e1..002b864a 100644 --- a/ext/bg/settings2.html +++ b/ext/bg/settings2.html @@ -72,7 +72,10 @@ -

Profile

+
+
+

Profile

+
@@ -102,7 +105,10 @@
-

Dictionaries (# installed)

+
+
+

Dictionaries (# installed)

+
@@ -174,7 +180,10 @@
-

General

+
+
+

General

+
@@ -268,7 +277,10 @@
- +
+
+
+
@@ -410,7 +422,10 @@
- +
+
+
+
@@ -569,7 +584,10 @@
- +
+
+
+
@@ -745,7 +763,10 @@
-

Audio

+
+
+

Audio

+
@@ -784,7 +805,10 @@
-

Scanning

+
+
+

Scanning

+
@@ -951,6 +975,7 @@
+

Text Parsing

@@ -1024,6 +1049,7 @@
+

Translation

@@ -1139,6 +1165,7 @@
+

Anki

@@ -1307,7 +1334,10 @@
-

Shortcuts

+
+
+

Shortcuts

+
@@ -1335,7 +1365,10 @@
-

Backup

+
+
+

Backup

+
@@ -1364,7 +1397,10 @@
-

Security

+
+
+

Security

+
-- cgit v1.2.3