Skip to content

Commit 212fc59

Browse files
committed
Bring the padding back
Start new components list
1 parent 796cfba commit 212fc59

File tree

4 files changed

+42
-5
lines changed

4 files changed

+42
-5
lines changed

docs/_includes/sidebar.njk

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<ul>
2+
<li>
3+
<h2>New Components (v2)</h2>
4+
<ul>
5+
<li>
6+
<a href="/new-components">Why new Components?</a>
7+
</li>
8+
<li>
9+
<h3>Layout</h3>
10+
<ul>
11+
<li>
12+
<a href="/components/container">Container</a>
13+
</li>
14+
</ul>
15+
</li>
16+
</ul>
17+
</li>
218
<li>
319
<h2>Tutorials</h2>
420
<ul>

docs/assets/styles/code-previews.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
background-color: rgb(var(--zn-panel));
1616
min-width: 20rem;
1717
max-width: 100%;
18-
/*padding: 1.5rem 3.25rem 1.5rem 1.5rem;*/
19-
padding-right: 1.75rem;
18+
padding: 1.5rem 3.25rem 1.5rem 1.5rem;
19+
/*padding-right: 1.75rem;*/
2020
}
2121

2222
/* Block the preview while dragging to prevent iframes from intercepting drag events */

docs/assets/styles/docs.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
--docs-border-color: rgb(var(--zn-border-color));
55
--docs-border-width: 1px;
66
--docs-border-radius: 10px;
7-
--docs-content-max-width: 1400px;
7+
--docs-content-max-width: 840px;
88
--docs-sidebar-width: 320px;
99
--docs-sidebar-transition-speed: 250ms;
1010
--docs-content-toc-max-width: 260px;
@@ -732,22 +732,32 @@ pre:hover .copy-code-button,
732732
font-size: var(--zn-font-size-medium);
733733
font-weight: var(--zn-font-weight-semibold);
734734
border-bottom: solid var(--docs-border-width) var(--docs-border-color);
735-
margin: 1.5rem 0 0.5rem 0;
735+
margin: 1.5rem 0 0.5rem 0 !important;
736+
}
737+
738+
#sidebar nav h3 {
739+
font-size: var(--zn-font-size-medium);
740+
font-weight: var(--zn-font-weight-semibold);
741+
border-bottom: solid var(--docs-border-width) var(--docs-border-color);
736742
}
737743

738744
#sidebar ul {
739745
padding: 0;
740746
margin: 1rem 0;
741747
}
742748

749+
#sidebar ul ul {
750+
margin-left: 1rem;
751+
}
752+
743753
#sidebar ul li {
744754
list-style: none;
745755
padding: 0;
746756
margin: .5rem 0;
747757
}
748758

749759
#sidebar ul ul ul {
750-
margin-left: 0.75rem;
760+
margin-left: 1.25rem;
751761
}
752762

753763
#sidebar ul li a {

docs/pages/new-components/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
meta:
3+
title: New Components
4+
description: List of new Component based off of TailwindPlus
5+
---
6+
7+
## Why New Components?
8+
9+
The new components are based off of TailwindPlus, which is a set of TailwindCSS components that are built to be used
10+
with Web Components. We've decided to switch to this new set of components because it is more flexible and easier to
11+
use than the previous set of components.

0 commit comments

Comments
 (0)