Skip to content

Commit 107a646

Browse files
committed
correct code blocks
1 parent 056723b commit 107a646

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

_sass/_base.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ code {
131131
font-size: 15px;
132132
border: 1px solid $grey-color-light;
133133
border-radius: 3px;
134-
background-color: #eef;
134+
background-color: $code-bg-color; // dark code background
135+
color: $text-color; // readable on dark bg
135136
}
136137

137138
code {
@@ -140,7 +141,7 @@ code {
140141

141142
pre {
142143
padding: 8px 12px;
143-
overflow-x: scroll;
144+
overflow-x: auto;
144145

145146
> code {
146147
border: 0;

css/main.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ $content-width: 800px;
3232
$on-palm: 600px;
3333
$on-laptop: 800px;
3434

35+
// Code colors (dark mode)
36+
$code-bg-color: hsl(225, 15%, 18%);
37+
3538

3639

3740
// Using media queries with like this:

index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ The Classical Language Toolkit (CLTK) is a Python library offering natural langu
88
- Code: <https://github.com/cltk/cltk>
99
- Docs: <https://docs.cltk.org>
1010

11-
## Maintainers
11+
# Maintainers
1212

1313
* [Kyle P. Johnson](https://github.com/kylepjohnson)
1414
* [Clément Besnier](https://github.com/clemsciences)
1515

16-
# Previous version
16+
# Previous versions
1717

1818
Previous generations of the CLTK are not supported anymore, but for those needing to use or reference past versions, these are preserved.
1919

20-
## Version `1.x`
20+
## Versions `1.x`
2121

2222
- Install: `pip install cltk==1.5.0`
2323
- Code: <https://github.com/cltk/cltk/tree/v1>
2424
- Docs: <https://v1.cltk.org>
2525

26-
## Version `0.x`
26+
## Versions `0.x`
2727

2828
- Install: `pip install cltk==0.1.121`
2929
- Code: <https://github.com/cltk/cltk/tree/v0>

0 commit comments

Comments
 (0)