made nav sticky instead of fixed on mobile, added drop shadow on light theme mobile

master
Kenton Hamaluik 5 years ago
parent 0dda753c01
commit 76b22976fc

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//01-introduction/index.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//01-introduction/index.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body> <body>

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/01-commonmark.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/01-commonmark.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body> <body>

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/02-syntax-highlighting.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/02-syntax-highlighting.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body> <body>

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/03-plantuml-diagrams.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/03-plantuml-diagrams.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body> <body>

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/04-katex-formulas.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/04-katex-formulas.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
</head> </head>
<body> <body>

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/05-images.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/05-images.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body> <body>

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/index.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//02-markdown/index.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body> <body>

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//03-frontmatter/index.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//03-frontmatter/index.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body> <body>

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//04-structure/index.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//04-structure/index.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body> <body>

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//05-customization/index.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//05-customization/index.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body> <body>

@ -12,7 +12,7 @@
<meta property="og:url" content="https://hamaluik.github.io/mkbook//06-how-it-works/index.html" /> <meta property="og:url" content="https://hamaluik.github.io/mkbook//06-how-it-works/index.html" />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body> <body>

@ -14,14 +14,14 @@
&lt;p&gt;This tool aims to work somewhat similarly to &lt;em&gt;mdbook&lt;&#x2f;em&gt;, but is generally intended to be a more minimal alternative that is customized more towards my needs and desires than anything else.&lt;&#x2f;p&gt; &lt;p&gt;This tool aims to work somewhat similarly to &lt;em&gt;mdbook&lt;&#x2f;em&gt;, but is generally intended to be a more minimal alternative that is customized more towards my needs and desires than anything else.&lt;&#x2f;p&gt;
" /> " />
<meta property="book:author" content="Kenton Hamaluik" /> <meta property="book:author" content="Kenton Hamaluik" />
<meta property="book:release_date" content="2019-12-03T18:23:45.870161898+00:00" /> <meta property="book:release_date" content="2019-12-06T03:25:18.292661806+00:00" />
</head> </head>
<body class="toc"> <body class="toc">
<header> <header>
<h1>The mkbook Book</h1> <h1>The mkbook Book</h1>
<h2>by Kenton Hamaluik</h2> <h2>by Kenton Hamaluik</h2>
<time datetime="2019-12-03T18:23:45.870161898+00:00">Dec 3, 2019</time> <time datetime="2019-12-06T03:25:18.292661806+00:00">Dec 6, 2019</time>
</header> </header>
<article> <article>
<p><em>mkbook</em> is my simpler alternative to <a href="https://crates.io/crates/mdbook">mdbook</a> which is a great tool, but for which I really dislike some of the decisions they took, such as relying on javascript for highlighting and navigation, and including a lot of bells and whistles such as javascript-based search.</p> <p><em>mkbook</em> is my simpler alternative to <a href="https://crates.io/crates/mdbook">mdbook</a> which is a great tool, but for which I really dislike some of the decisions they took, such as relying on javascript for highlighting and navigation, and including a lot of bells and whistles such as javascript-based search.</p>

File diff suppressed because one or more lines are too long

@ -29,4 +29,10 @@
footer { footer {
color: #cccccc; color: #cccccc;
} }
body {
nav.small {
box-shadow: none;
}
}
} }

@ -95,10 +95,9 @@ body {
justify-content: space-between; justify-content: space-between;
background: #2c2c38; background: #2c2c38;
padding: 0; padding: 0;
position: fixed; position: sticky;
top: 0; top: 0;
left: 0; box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
right: 0;
>* { >* {
margin: 0.5rem; margin: 0.5rem;
@ -202,7 +201,6 @@ body {
} }
article { article {
margin-top: 2rem;
padding: 1rem 0.5rem 0 0.5rem; padding: 1rem 0.5rem 0 0.5rem;
} }
} }

Loading…
Cancel
Save