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

fix: Website UI bugs #1447

Merged
merged 1 commit into from
Sep 15, 2024
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
14 changes: 0 additions & 14 deletions docs/assets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,6 @@
@tailwind components;
@tailwind utilities;

body {
/* Override the mkdocs default of 0.5rem */
font-size: 0.8rem; /* 16px */
}

/* hide site name */
.md-header__topic {
visibility: hidden;
}
/* mobile hide site name */
.md-nav__title {
font-size: 0!important;
}

/* mobile make code snippets scrollable */
.image-wrapper {
overflow: auto!important;
Expand Down
18 changes: 0 additions & 18 deletions docs/assets/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -930,24 +930,6 @@ html {
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

body {
/* Override the mkdocs default of 0.5rem */
font-size: 0.8rem;
/* 16px */
}

/* hide site name */

.md-header__topic {
visibility: hidden;
}

/* mobile hide site name */

.md-nav__title {
font-size: 0!important;
}

/* mobile make code snippets scrollable */

.image-wrapper {
Expand Down
21 changes: 21 additions & 0 deletions docs/assets/top-level.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
This file is intended for site-wide, top-level CSS properties.
It should not be used in conjunction with Tailwind CSS,
as mixing both caused UI anomalies.
*/

body {
/* Override the mkdocs default of 0.5rem */
font-size: 0.8rem; /* 16px */
}

/* hide site name */
/* Explicitly specifying what we want to hide to fix certain UI elements */
.md-nav--lifted > label:nth-child(1) {
font-size: 0;
}

/* hide site name */
.md-header__topic {
visibility: hidden;
}
1 change: 1 addition & 0 deletions docs/overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% block styles %}
{{ super () }}
<link rel="stylesheet" href="/assets/github-dark.min.css">
<link rel="stylesheet" href="/assets/output.css" />

<style>
/* Hide TOC */
Expand Down
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repo_name: 'cachix/devenv'
repo_url: 'https://github.com/cachix/devenv'
edit_uri: 'edit/main/docs'
extra_css:
- assets/output.css
- assets/top-level.css
theme:
name: material
logo: assets/logo.webp
Expand Down
Loading