This repository was archived by the owner on Aug 30, 2020. It is now read-only.
forked from Kimeiga/bahunya
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallation.html
More file actions
101 lines (96 loc) · 5.42 KB
/
installation.html
File metadata and controls
101 lines (96 loc) · 5.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="keywords" content="css, html5, css framework" />
<meta name="description" content="10KB Classless CSS Framework" />
<link rel="stylesheet" href="style.css" />
<title>Bahunya - Installation</title>
<meta property="og:title" content="Bahunya" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://kimeiga.github.io/bahunya/" />
<meta property="og:image:secure_url" content="https://image.ibb.co/kAXSpz/bahunya_logo.png" />
<meta property="og:description" content="10KB Classless CSS Framework" />
<link rel="icon" type="image/png" href="./bahunya-logo.png" />
</head>
<body>
<header>
<nav>
<h1><a href="./">BAHUNYA</a></h1>
<input type="checkbox" id="menu-toggle">
<label for="menu-toggle">☰</label>
<a href="./installation.html">INSTALLATION</a>
<a href="./usage.html">USAGE</a>
<a href="./customization.html">CUSTOMIZATION</a>
<a href="https://github.com/Kimeiga/bahunya" target="_blank">GITHUB</a>
</nav>
<h1>Bahunya Installation</h1>
</header>
<main>
<article>
<p>Bahunya works fine out of the box but if you want a <mark>hamburger menu navbar</mark> rather than a text based
navbar, or if you'd like <mark>syntax highlighting</mark>, there are some extra steps.</p>
<h3>Hamburger Menu Navbar</h3>
<p>Just drop the following html elements into your <b>header's nav</b>, and it will convert your text-based
navbar to a navbar with a hamburger menu like this site. This solution uses no JavaScript, just the checkbox hack</p>
<pre><code class="language-markup"><input type="checkbox" id="menu-toggle">
<label for="menu-toggle">&#9776;</label></code></pre>
<p>The first element is the invisible checkbox that controls the visibility of the dropdown menu. The second element
is the hamburger icon itself, using the popular <a href="https://en.wiktionary.org/wiki/☰" target="_blank">trigram
for heaven</a> symbol</p>
<p>You'll notice that Bahunya's navbar only works with a listless navigation (one without <code>ul</code> and <code>li</code>
elements). This is because people with screen readers find it <a href="https://css-tricks.com/navigation-in-lists-to-be-or-not-to-be/"
target="_blank">easier to navigate listless navigation</a> as the screen reader peruses it quicker than a listful
(?) navigation.</p>
<p>Your markup should look like the following. An <code><h1></code> containing an anchor tag for the site
title, and then the anchor tags for the links and the hamburger menu. </p>
<pre><code class="language-markup"><body>
<header>
<nav>
<h1><a href="#">BAHUNYA</a></h1>
<input type="checkbox" id="menu-toggle">
<label for="menu-toggle">&#9776;</label>
<a href="#">STARTUP</a>
<a href="#">MINIMAL</a>
<a href="#">BOLD</a>
<a href="https://github.com/Kimeiga/bahunya" target="_blank">GITHUB</a>
</nav></code></pre>
<h3>Syntax Highlighting</h3>
<p>Bahunya uses <a href="https://prismjs.com/" target="_blank">Prism JS</a> for syntax highlighting within <code><pre><code></code>
tags. Prism requires a CSS file and a JS file to operate. The CSS file is included in Bahunya (it's tiny), but the
JS you'll have to import. Just add the following to your <code><body></code>.</p>
<pre><code class="lang-markup"><script src="https://cdn.rawgit.com/Kimeiga/bahunya/26313661/prism.js"></script></code></pre>
<p>In order to activate Prism on a pre-code tag, add one of the following classes on the <code><code></code>
tag, not the containing <code><pre></code> tag.</p>
<dl>
<dt>HTML (Markup)</dt>
<dd><code>class="lang-markup"</code></dd>
<dt>CSS</dt>
<dd><code>class="lang-css"</code></dd>
<dt>C-like</dt>
<dd><code>class="lang-clike"</code></dd>
<dt>JavaScript</dt>
<dd><code>class="lang-javascript"</code></dd>
</dl>
<p>To get more languages, head to <a href="https://prismjs.com/download.html#themes=prism-okaidia&languages=markup+css+clike+javascript">Prism's
download page</a>, select more languages, and then include the provided JavaScript file in your website (instead
of Bahunya's)</p>
<p>Bahunya uses the <a href="https://github.com/ocodia/okaidia-prismjs-theme">Okaidia theme</a> which is based on
Monokai. It's the smallest Prism theme in filesize at <mark>1.75KB</mark></p>
</article>
</main>
<footer>
<p>
Created by <a href="http://www.kimei.ga">Hakan Alpay</a>, 2018
</p>
<p>Inspired by <a href="https://yegor256.github.io/tacit/">Tacit</a>, a classless CSS framework</p>
<nav>
<a href="https://github.com/kimeiga/bahunya">GitHub Repo</a>
<a href="https://opensource.org/licenses/MIT">MIT license</a>
<a href="https://github.com/Kimeiga/bahunya/blob/css/bahunya-0.1.1.css">Download CSS</a>
</nav>
</footer>
<script src="prism.js"></script>
</body>
</html>