-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (118 loc) · 5.74 KB
/
index.html
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=no" />
<meta name="title" content="{{site.title}}" />
<meta name="description" content="{{site.description}}" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@500&display=swap" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap">
<link rel="stylesheet" href="/low.css" />
<link rel="stylesheet" href="/highlight.css" />
<title>{{page.data.title}} - lowCSS {{site.version}}</title>
<style>
:not(pre) > code {
color: #101623 !important;
font-weight: bold !important;
}
.markup > h1:first-of-type {
margin-top: 0px !important;
}
</style>
</head>
<body class="bg-white m-0 p-0 font-inter text-neutral-800 leading-normal">
<!-- Navigation bar-->
<div class="w-full max-w-8xl h-16 px-6 mx-auto flex items-center gap-4 md:gap-6">
<a href="/" class="flex items-center shrink-0 gap-2 text-neutral-900 no-underline">
<div class="font-semibold font-poppins text-xl tracking-tighter">
<span>low<span class="text-neutral-800 pl-px">css</span>.</span>
</div>
<div class="flex items-center font-bold text-2xs bg-neutral-100 px-2 py-1 rounded-xl">
<span>{{site.version}}</span>
</div>
</a>
<div class="hidden md:flex items-center relative gap-4">
{{#each site.navbar}}
<a href="{{link}}" class="text-sm font-medium text-neutral-600 hover:text-neutral-900">
<span>{{title}}</span>
</a>
{{/each}}
</div>
<div class="ml-auto flex items-center">
<a href="{{site.repository}}" class="no-underline opacity-70 hover:opacity-100">
<img class="w-6 h-6" src="/github.svg" />
</a>
</div>
<div class="peer group md:hidden" tabindex="0">
<div class="text-xl flex items-center text-neutral-800">
<svg width="1em" height="1em"><use xlink:href="/sprite.svg#dots-vertical"></use></svg>
</div>
<div class="z-50 fixed top-0 right-0 mt-8 mr-8 w-full max-w-xs bg-white p-4 hidden group-focus-within:block rounded-lg">
{{#each site.navbar}}
<a href="{{link}}" class="block w-full p-2 font-medium text-neutral-900 hover:text-neutral-950">
<span>{{title}}</span>
</a>
{{/each}}
</div>
</div>
<div class="z-40 fixed top-0 left-0 w-full h-screen opacity-70 bg-black hidden peer-focus-within:block" tabindex="0"></div>
</div>
<!-- Content -->
{{#eq page.data.layout "default"}}
<div class="w-full max-w-7xl mx-auto px-6 mb-16">
{{> content}}
</div>
{{/eq}}
{{#eq page.data.layout "docs"}}
<div class="flex w-full max-w-7xl mx-auto px-6 gap-4">
<div class="sticky w-72 shrink-0 h-screen hidden md:block py-8 pr-8 top-0">
<div class="h-full overflow-y-scroll scrollbar">
{{#each site.sidenav}}
<div class="mb-4 text-sm">
<div class="text-neutral-950 font-bold mb-1">{{title}}</div>
{{#each items}}
<a href="{{link}}" class="block text-neutral-700 hover:underline py-1">
<span>{{title}}</span>
{{#if version}}<span class="text-2xs text-white bg-neutral-900 p-1 rounded-md font-medium ml-1">{{version}}{{/if}}
</a>
{{/each}}
</div>
{{/each}}
</div>
</div>
<div class="w-full max-w-3xl">
<div class="markup pt-6 md:pt-8 pb-16">
{{> content}}
</div>
<div class="grid items-center md:grid-cols-2 gap-4">
<div class="w-full">
{{#withPage page.data.prevPage}}
<a href="{{=cleanUrl data.permalink}}" class="flex flex-col border border-neutral-200 hover:border-neutral-900 rounded-lg p-3">
<div class="text-neutral-600 text-xs">Previous Page</div>
<div class="font-medium text-neutral-950">{{data.title}}</div>
</a>
{{/withPage}}
</div>
<div class="w-full">
{{#withPage page.data.nextPage}}
<a href="{{=cleanUrl data.permalink}}" class="flex flex-col items-end border border-neutral-200 hover:border-neutral-900 rounded-lg p-3">
<div class="text-neutral-600 text-xs">Next Page</div>
<div class="font-medium text-neutral-950">{{data.title}}</div>
</a>
{{/withPage}}
</div>
</div>
</div>
</div>
{{/eq}}
<div class="w-full max-w-7xl mx-auto px-6 pt-16 pb-20 text-sm text-neutral-600">
Designed by <a href="https://www.josemi.xyz" class="underline text-neutral-900 hover:text-neutral-950 font-medium">Josemi</a>.
Source code available on <a href="{{site.repository}}" class="underline text-neutral-900 hover:text-neutral-950 font-medium">GitHub</a>.
</div>
<div data-role="toaster" class="fixed flex flex-col gap-4 w-full max-w-96" style="bottom:32px;right:32px;"></div>
<!--
<script type="text/javascript" src="search.js"></script>
-->
<script type="text/javascript" src="/utils.js"></script>
</body>
</html>