Skip to content

Commit 2e9e408

Browse files
committed
Move non-layout rules out of layout.css
1 parent 87eed13 commit 2e9e408

3 files changed

Lines changed: 17 additions & 11 deletions

File tree

assets/css/_html.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,18 @@
3535
@import "makeup.css";
3636
@import "tabset.css";
3737

38+
body {
39+
background-color: var(--background);
40+
color: var(--textBody);
41+
font-size: var(--text-md);
42+
line-height: 1.6875em;
43+
}
44+
45+
.swup-progress-bar {
46+
height: 2px;
47+
background-color: var(--progressBarColor);
48+
}
49+
3850
option {
3951
background-color: var(--sidebarBackground);
4052
}

assets/css/focus.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,8 @@ input[type="week"],
3939
textarea {
4040
outline: 0;
4141
}
42+
43+
/* swup.js adds tabindex=-1 on Chrome, which then adds an outline when clicked */
44+
body {
45+
outline: none !important;
46+
}

assets/css/layout.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ body {
99
--sidebarWidth: 300px;
1010
--sidebarMinWidth: 300px;
1111
--sidebarTransitionDuration: 0.3s;
12-
background-color: var(--background);
13-
color: var(--textBody);
14-
font-size: var(--text-md);
15-
line-height: 1.6875em;
16-
/* swup.js adds tabindex=-1 on Chrome, which then adds an outline when clicked */
17-
outline: none !important;
1812
}
1913

2014
*,
@@ -105,8 +99,3 @@ body {
10599
position: absolute;
106100
}
107101
}
108-
109-
.swup-progress-bar {
110-
height: 2px;
111-
background-color: var(--progressBarColor);
112-
}

0 commit comments

Comments
 (0)