Skip to content

Commit 79effc8

Browse files
Improve inline code style and website title
1 parent eba04f6 commit 79effc8

File tree

3 files changed

+42
-49
lines changed

3 files changed

+42
-49
lines changed

assets/css/custom.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,43 @@
22
header a {
33
font-family: 'Consolas', monospace;
44
font-size: 1.2em;
5+
6+
}
7+
8+
header nav div a {
9+
font-size: 2em;
10+
padding: .3em .25em .3em .25em;
11+
background-color: rgba(var(--color-neutral-100));
12+
border-radius: 0.2em;
13+
font-weight: 600;
14+
}
15+
16+
header nav div a:is(.dark *) {
17+
background-color: rgba(var(--color-neutral-700));
18+
}
19+
20+
21+
/* Remove the tick-marks around code snippets */
22+
.prose :where(code)::before {
23+
all: unset;
24+
}
25+
26+
.prose :where(code)::after {
27+
all: unset;
28+
}
29+
30+
31+
/* Add bg color around inline code snippets. */
32+
.prose :where(code):not(:where([class~="highlight"], [class~="highlight"] *)) {
33+
color: rgba(var(--color-primary-600));
34+
white-space: pre;
35+
padding: .15em .25em .05em .25em;
36+
background-color: rgba(var(--color-neutral-100));
37+
border-radius: 0.3em;
38+
}
39+
40+
/* Slightly different colors when in darkmode */
41+
.prose :where(code):not(:where([class~="highlight"], [class~="highlight"] *)):is(.dark *) {
42+
color: rgba(var(--color-primary-400));
43+
background-color: rgba(var(--color-neutral-700), 0.5);
544
}

config/_default/languages.en.toml

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ languageName = "English"
33
languageDirection = "ltr"
44
weight = 1
55

6-
title = "Output"
6+
title = "output"
77
# copyright = "Copy, _right?_ :thinking_face:"
88

99
[params]
@@ -18,49 +18,3 @@ title = "Output"
1818
# headline = "I'm only human"
1919
# bio = "A little bit about you"
2020
links = [{ github = "https://github.com/SebastianGrans" }]
21-
# { email = "mailto:hello@your_domain.com" },
22-
# { link = "https://link-to-some-website.com/" },
23-
# { amazon = "https://www.amazon.com/hz/wishlist/ls/wishlist-id" },
24-
# { apple = "https://www.apple.com" },
25-
# { blogger = "https://username.blogspot.com/" },
26-
# { codepen = "https://codepen.io/username" },
27-
# { dev = "https://dev.to/username" },
28-
# { discord = "https://discord.gg/invitecode" },
29-
# { dribbble = "https://dribbble.com/username" },
30-
# { facebook = "https://facebook.com/username" },
31-
# { flickr = "https://www.flickr.com/photos/username/" },
32-
# { foursquare = "https://foursquare.com/username" },
33-
# { github = "https://github.com/username" },
34-
# { gitlab = "https://gitlab.com/username" },
35-
# { google = "https://www.google.com/" },
36-
# { google-scholar = "https://scholar.google.com/citations?user=user-id" },
37-
# { hashnode = "https://username.hashnode.dev" },
38-
# { instagram = "https://instagram.com/username" },
39-
# { keybase = "https://keybase.io/username" },
40-
# { kickstarter = "https://www.kickstarter.com/profile/username" },
41-
# { lastfm = "https://lastfm.com/user/username" },
42-
# { linkedin = "https://linkedin.com/in/username" },
43-
# { mastodon = "https://mastodon.instance/@username" },
44-
# { medium = "https://medium.com/username" },
45-
# { mendeley = "https://www.mendeley.com/" },
46-
# { microsoft = "https://www.microsoft.com/" },
47-
# { orcid = "https://orcid.org/userid" },
48-
# { patreon = "https://www.patreon.com/username" },
49-
# { pinterest = "https://pinterest.com/username" },
50-
# { reddit = "https://reddit.com/user/username" },
51-
# { researchgate = "https://www.researchgate.net/profile/username" },
52-
# { slack = "https://workspace.url/team/userid" },
53-
# { snapchat = "https://snapchat.com/add/username" },
54-
# { soundcloud = "https://soundcloud.com/username" },
55-
# { stack-overflow = "https://stackoverflow.com/users/userid/username" },
56-
# { steam = "https://steamcommunity.com/profiles/userid" },
57-
# { telegram = "https://t.me/username" },
58-
# { threads = "https://threads.net/@username" },
59-
# { tiktok = "https://tiktok.com/@username" },
60-
# { tumblr = "https://username.tumblr.com" },
61-
# { twitch = "https://twitch.tv/username" },
62-
# { whatsapp = "https://wa.me/phone-number" },
63-
# { x-twitter = "https://twitter.com/username" },
64-
# { youtube = "https://youtube.com/username" },
65-
# { xing = "https://xing.com/profile/username" },
66-
# ]

config/_default/params.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Refer to the theme docs for more details about each of these parameters.
66
# https://jpanther.github.io/congo/docs/configuration/#theme-parameters
77

8-
colorScheme = "Cherry"
8+
colorScheme = "congo"
99
defaultAppearance = "light" # valid options: light or dark
1010
autoSwitchAppearance = true
1111

@@ -27,7 +27,7 @@ fingerprintAlgorithm = "sha256"
2727

2828
[footer]
2929
showCopyright = false
30-
showThemeAttribution = false
30+
showThemeAttribution = true
3131
showAppearanceSwitcher = true
3232
showScrollToTop = true
3333

0 commit comments

Comments
 (0)