Skip to content

Commit 6917a94

Browse files
committed
Tweak code block theme and font
1 parent d77c243 commit 6917a94

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

assets/scss/_base.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ code {
157157
color: var(--mm-color-display-text);
158158
font-family: var(--mm-font-stack-monospace);
159159
font-size: 14px;
160-
font-weight: 700;
161160
padding: 2px 6px;
162161
transition: background-color 0.2s ease-out;
163162
}

assets/scss/_variables.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ $containers: (
3434
:root {
3535
--mm-color-active-blue: #2b7ec6;
3636
--mm-color-background: #fff;
37-
--mm-color-background-code: #274958;
37+
--mm-color-background-code: #000;
3838
--mm-color-sidebar: #f5f6f7;
3939
--mm-color-border: #ddd;
4040
--mm-color-logo-blue-light: #00aeef;
@@ -48,7 +48,7 @@ $containers: (
4848
--mm-border-radius: 6px;
4949
--mm-font-stack-default: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Ubuntu, sans-serif;
5050
--mm-font-stack-display: 'montserrat', var(--mm-font-stack-default);
51-
--mm-font-stack-monospace: 'Source Code Pro', monospace;
51+
--mm-font-stack-monospace: monospace;
5252
--mm-layout-toc-width: 290px;
5353
--mm-layout-sidebar-width: 350px;
5454
--mm-max-width: 880px;

assets/scss/index.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,9 @@
3535
:target {
3636
scroll-margin-top: 100px;
3737
}
38+
39+
.schema-row-key {
40+
font-size: 14px;
41+
font-weight: 500;
42+
padding-bottom: 2px;
43+
}

hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title = 'MaxMind'
1414
lineNumbersInTable = false
1515
noClasses = true
1616
noHl = false
17-
style = 'monokai'
17+
style = 'doom-one2'
1818
tabWidth = 4
1919

2020
[menus]

layouts/shortcodes/schema-row.html

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

1414
<tr>
1515
<td>
16-
<a href="#{{ $fragment }}"><code>{{ $key }}</code></a>
16+
<a href="#{{ $fragment }}"><code class="schema-row-key">{{ $key }}</code></a>
1717
</td>
1818
<td>
1919
{{ .Get "valueType" }}

0 commit comments

Comments
 (0)