Skip to content

Commit

Permalink
Make some improvements to docs style
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDrike committed Feb 7, 2023
1 parent 1ec2342 commit a879872
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions LICENSE-THIRD-PARTY.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Applies to:
- .github/workflows/fragment-check.yml: Entire file
- .github/workflows/prepare-release.yml: Workflow heavily inspired by original
- .github/scripts/normalize_coverage.py: Entire file
- docs/_static/extra.css: Entire file
---------------------------------------------------------------------------------------------------
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
47 changes: 47 additions & 0 deletions docs/_static/extra.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
html {
word-wrap: anywhere;
}

body {
--toc-item-spacing-horizontal: 0.5rem;
--admonition-font-size: 0.8em;
}

.icon {
user-select: none;
}

.viewcode-back {
position: absolute;
right: 1em;
background-color: var(--color-code-background);
width: auto;
}

.toc-drawer {
width: initial;
max-width: 20em;
right: -20em;
}

.toc-tree ul ul ul ul {
border-left: 1px solid var(--color-background-border);
}

@media (max-width: 82em) {
body {
font-size: 0.7em;
}

.toc-tree {
padding-left: 0;
}

.sidebar-brand-text {
font-size: 1rem;
}

.sidebar-tree .reference {
padding: 0.5em 1em;
}
}
3 changes: 3 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@
html_theme = "furo"
html_favicon = "https://i.imgur.com/nPCcxts.png"

html_static_path = ["_static"]
html_css_files = ["extra.css"]

# -- Extension configuration -------------------------------------------------

# Third-party projects documentation references:
Expand Down

0 comments on commit a879872

Please sign in to comment.