Skip to content

Commit

Permalink
Adjust manual fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
anderssandstrom committed Sep 28, 2024
1 parent 9758242 commit b0b5f8b
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hugo/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Observe the CLI output for details.
1. gawk at the beauty of the produced web-site :)

### editing the code
* contend is found in the `content` directory
* content is found in the `content` directory
* mostly everything is done in markdown
* the HUGO theme ["learn"](http://github.com/matcornic/hugo-theme-learn) is used. Follow the instructions [here](https://learn.netlify.app/en/) for examples and an overview of it's capabilities.
* changes are reflected immediately in the browser after saving your changes.
Expand Down
2 changes: 2 additions & 0 deletions hugo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title = 'ecmccfg'
theme = "hugo-theme-learn"
relativeURLs = true
canonifyURLs = true

[markup]
[markup.goldmark]
[markup.goldmark.renderer]
Expand All @@ -15,3 +16,4 @@ canonifyURLs = true
themeVariant = "green"
# Set this to true to disable copy-to-clipboard button for inline code.
disableInlineCopyToClipBoard = true
custom_css = ["css/custom.css"]
49 changes: 49 additions & 0 deletions hugo/static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
html {
font-size: 40%; /* Adjust this percentage to scale all font sizes */
}

/* Target the specific note classes */
.admonition.note p,
.admonition.warning p,
.admonition.tip p,
.admonition.info p {
font-size: 1.2rem !important; /* Adjust size as needed */
}

/* Additional targeting, if needed */
.note p, .warning p, .tip p, .info p {
font-size: 2.2rem !important;
}

code {
font-size: 1.8rem !important; /* Adjust size as needed */
}

/* General heading font size increases */
h1 {
font-size: 3rem !important; /* Adjust for h1 */
}

h2 {
font-size: 3rem !important; /* Adjust for h2 */
}

h3 {
font-size: 3rem !important; /* Adjust for h3 */
}

h4 {
font-size: 3rem !important; /* Adjust for h4 */
}

h5 {
font-size: 2rem !important; /* Adjust for h5 */
}

h6 {
font-size: 2rem !important; /* Adjust for h6 */
}

.page-title {
font-size: 4rem !important;
}

0 comments on commit b0b5f8b

Please sign in to comment.