Skip to content

Commit

Permalink
Merge pull request #142 from nojaf/modern-theme
Browse files Browse the repository at this point in the history
Modern theme
  • Loading branch information
nojaf authored Nov 3, 2023
2 parents 6a1815a + bb4e097 commit 5b75b92
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 1,015 deletions.
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

0 comments on commit 5b75b92

Please sign in to comment.