Skip to content

Commit 8872315

Browse files
committed
Use CSS custom properties (variables)
1 parent 9ecffb9 commit 8872315

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

_layouts/default.html

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,26 @@
1010
<link href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5/css/all.min.css" crossorigin="anonymous" rel="stylesheet">
1111
<link href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" crossorigin="anonymous" rel="stylesheet">
1212
<style>
13+
:root {
14+
--color-black: #000;
15+
--color-gray-100: #f8f9fa;
16+
--color-gray-200: #e9ecef;
17+
--color-gray-300: #dee2e6;
18+
--color-gray-400: #ced4da;
19+
--color-gray-500: #adb5bd;
20+
--color-gray-600: #6c757d;
21+
--color-gray-700: #495057;
22+
--color-gray-800: #343a40;
23+
--color-gray-900: #212529;
24+
--color-white: #fff;
25+
}
26+
1327
article > h1 a {
14-
color: #212529;
28+
color: var(--color-gray-900);
1529
}
1630

1731
article > h1 a:hover {
18-
color: #212529;
32+
color: var(--color-gray-900);
1933
text-decoration: none;
2034
}
2135

@@ -32,13 +46,13 @@
3246
}
3347

3448
.pagination > .page-item > .page-link {
35-
color: #212529;
49+
color: var(--color-gray-900);
3650
}
3751

3852
.pagination > .page-item.active > .page-link {
39-
color: #212529;
40-
background-color: #e9ecef;
41-
border-color: #dee2e6;
53+
color: var(--color-gray-900);
54+
background-color: var(--color-gray-200);
55+
border-color: var(--color-gray-300);
4256
}
4357
</style>
4458
</head>

0 commit comments

Comments
 (0)