Skip to content

Commit

Permalink
Merge pull request #1447 from cachix/work/keys/fix-website
Browse files Browse the repository at this point in the history
fix: Website UI bugs
  • Loading branch information
domenkozar authored Sep 15, 2024
2 parents 199a23e + 53578f0 commit 1f55f89
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 33 deletions.
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

0 comments on commit 1f55f89

Please sign in to comment.