Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modern theme #142

Merged
merged 2 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
]
},
"fsdocs-tool": {
"version": "19.1.0",
"version": "20.0.0-alpha-002",
"commands": [
"fsdocs"
]
Expand Down
5 changes: 5 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,10 @@
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>F#;analyzers;compiler;tooling;editor;</PackageTags>
</PropertyGroup>

<PropertyGroup>
<FsDocsLogoSource>images/logo.png</FsDocsLogoSource>
<FsDocsFaviconSource>images/favicon.png</FsDocsFaviconSource>
</PropertyGroup>

</Project>
1 change: 1 addition & 0 deletions docs/_body.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script type="module" src="{{root}}copyCommand.js"></script>
94 changes: 0 additions & 94 deletions docs/_template.html

This file was deleted.

30 changes: 30 additions & 0 deletions docs/content/fsdocs-theme.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* Navigation links at the end of a page */
#content > p:last-of-type {
display: flex;
justify-content: center;
margin-top: var(--spacing-300);

&:has(a + a) {
justify-content: space-between;
}

> a {
text-decoration: none;
background: var(--menu-icon-hover-background);
color: var(--code-background);
padding: var(--spacing-50) var(--spacing-100);
margin: 0;
display: inline-block;
box-shadow: 0 1px 1px var(--shadow-color--main);
transition: transform 200ms;

&:hover {
background-color: var(--menu-icon-hover-background);
transform: translateY(1px);
}

&:focus {
background-color: var(--nav-category);
}
}
}
Loading