Skip to content

Commit 20d9504

Browse files
author
Carlos Santana
authored
Carbon 4 (#463)
* tabs Signed-off-by: Carlos Santana <csantana23@gmail.com> * dark mode terminal Signed-off-by: Carlos Santana <csantana23@gmail.com> * scope terminal colors only to code Signed-off-by: Carlos Santana <csantana23@gmail.com> * add EOL Signed-off-by: Carlos Santana <csantana23@gmail.com>
1 parent 9eb5554 commit 20d9504

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

docs/css/extra.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,9 @@ width: 8rem;
124124
/* top banner home page */
125125
[data-md-color-primary=black] .md-header {
126126
background-color: #161616;
127-
}
127+
}
128+
129+
/* tabs border */
130+
.md-typeset .tabbed-set>label {
131+
border-bottom: .1rem solid #4051b5;
132+
}

docs/css/toolkit-code.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.md-typeset pre>code {
2+
--md-hue: 232;
3+
--md-code-fg-color: #f5f5f5;
4+
--md-code-bg-color: #030303;
5+
6+
7+
}
8+
code>* {
9+
--md-default-fg-color--light: hsl(66, 41%, 69%);
10+
--md-code-hl-number-color: hsla(6, 74%, 63%, 1);
11+
--md-code-hl-special-color: hsla(340, 83%, 66%, 1);
12+
--md-code-hl-function-color: hsla(291, 57%, 65%, 1);
13+
--md-code-hl-constant-color: hsla(250, 62%, 70%, 1);
14+
--md-code-hl-keyword-color: hsla(219, 66%, 64%, 1);
15+
--md-code-hl-string-color: hsla(150, 58%, 44%, 1);
16+
--md-code-hl-name-color: var(--md-code-fg-color);
17+
--md-code-hl-operator-color: var(--md-default-fg-color--light);
18+
--md-code-hl-punctuation-color: var(--md-default-fg-color--light);
19+
--md-code-hl-comment-color: var(--md-default-fg-color--light);
20+
--md-code-hl-generic-color: var(--md-default-fg-color--light);
21+
--md-code-hl-variable-color: var(--md-default-fg-color--light);
22+
}
23+
.md-clipboard {
24+
color: white;
25+
}
26+
.highlight.no-copy .md-clipboard {
27+
display: none;
28+
}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ markdown_extensions:
6767
- pymdownx.details
6868
extra_css:
6969
- css/extra.css
70+
- css/toolkit-code.css
7071
extra:
7172
generator: false
7273
copyright: Copyright © 2021 Cloud-Native Toolkit

0 commit comments

Comments
 (0)