diff --git a/README.md b/README.md
index 5a65438..ed7ec92 100644
--- a/README.md
+++ b/README.md
@@ -75,9 +75,17 @@ This addon makes the header sticky, always staying at the top of the screen. Not
```
+### `header-oneline.css`
+
+This addon lays everything out in the header horizontally. This is ideal if you don't have much in your header and you want it to be more compact. It works great with `header-sticky.css`. I do not recommend adding `
` or more than one `` element in the header if you're using this. To use this addon, add the following line after the `dev.css` import:
+
+```html
+
+```
+
### `header-sidebar.css`
-This addon turns the header into a sidebar on wide displays. The navigation items are listed vertically in this mode. The sidebar will responsively switch back to the default state if the viewport is too narrow to contain everything. If you are using this addon with `header-sticky.css`, make sure to include it **after** the `header-sticky.css` import. To use this addon, add the following line after the `dev.css` import:
+This addon turns the header into a sidebar on wide displays. The navigation items are listed vertically in this mode. The sidebar will responsively switch back to the default state if the viewport is too narrow to contain everything. If you are using this addon with `header-sticky.css` or `header-oneline.css`, make sure to import it **after** those. To use this addon, add the following line after the `dev.css` import:
```html
diff --git a/addon/header-oneline.css b/addon/header-oneline.css
new file mode 100644
index 0000000..fdc93ee
--- /dev/null
+++ b/addon/header-oneline.css
@@ -0,0 +1,50 @@
+/* addon for dev.css v3, a classless CSS framework - https://github.com/intergrav/dev.css */
+/* about: everything in the header on one line, works well with addon/header-sticky.css */
+/* warn: if using with the header-sidebar addon, be sure to include this before it */
+/* warn: i do not recommend using this if you have p or multiple nav elements in header */
+
+header {
+ align-items: center;
+ display: flex;
+}
+
+header h1,
+header h2,
+header h3,
+header h4,
+header h5,
+header h6 {
+ white-space: nowrap;
+}
+
+header * {
+ margin: 0;
+ line-height: 1.5;
+}
+
+header h1,
+header p {
+ margin-right: 1rem;
+}
+
+header h2,
+header h3,
+header h4,
+header h5,
+header h6 {
+ color: var(--dc-tx-2);
+ font-weight: normal;
+}
+
+header h2::after,
+header h3::after,
+header h4::after,
+header h5::after,
+header h6::after {
+ content: "/";
+}
+
+/* make sure that all header elements have same font size */
+header * {
+ font-size: 1rem !important;
+}
diff --git a/addon/header-sidebar.css b/addon/header-sidebar.css
index f502e47..28826e4 100644
--- a/addon/header-sidebar.css
+++ b/addon/header-sidebar.css
@@ -1,12 +1,17 @@
/* addon for dev.css v3, a classless CSS framework - https://github.com/intergrav/dev.css */
/* about: turns the header into a sidebar if the viewport is wide enough */
-/* warn: if using with the header-sticky addon, be sure to include this after it */
+/* warn: if using with the header-sticky or header-oneline addon, be sure to include this after it */
-@media (min-width: calc((48rem + 4rem) + ((16rem)*2))) {
+@media (min-width: 84rem) {
header {
all: unset;
}
+ header * {
+ margin-top: 0;
+ margin-bottom: 0.25rem;
+ }
+
header {
padding: 3rem 2rem;
padding-right: 0;
@@ -22,7 +27,7 @@
padding-left: 1rem;
border-top: 1px solid var(--dc-bg-3);
padding-top: 1rem;
- margin-top: 1rem;
+ margin-top: 0.75rem;
}
header nav ul li {
@@ -32,4 +37,62 @@
header nav ul li:not(:first-child)::before {
content: unset;
}
+
+ /* hacky: reset font sizes to defaults */
+ h1 {
+ font-size: 2rem !important;
+ }
+
+ h2 {
+ font-size: 1.5rem !important;
+ }
+
+ h3 {
+ font-size: 1.17rem !important;
+ }
+
+ h4,
+ p,
+ a {
+ font-size: 1rem !important;
+ }
+
+ h5 {
+ font-size: 0.83rem !important;
+ }
+
+ h6 {
+ font-size: 0.67rem !important;
+ }
+
+ header nav {
+ font-size: 1rem !important;
+ }
+
+ /* hacky: reset some other stuff to default incase you are using header-oneline.css */
+ header h2 header h3,
+ header h4,
+ header h5,
+ header h6 {
+ color: var(--dc-tx-1);
+ font-weight: bold;
+ }
+
+ header h1,
+ header h2,
+ header h3,
+ header h4,
+ header h5,
+ header h6 {
+ white-space: normal;
+ line-height: 1;
+ }
+
+ header h2::after,
+ header h3::after,
+ header h4::after,
+ header h5::after,
+ header h6::after {
+ content: unset;
+ }
}
diff --git a/dev.css b/dev.css
index 1c151bc..fea8b40 100644
--- a/dev.css
+++ b/dev.css
@@ -179,6 +179,35 @@ body {
}
/* 8. typography */
+h1 {
+ font-size: 2rem;
+}
+
+h2 {
+ font-size: 1.5rem;
+}
+
+h3 {
+ font-size: 1.17rem;
+}
+
+h4 {
+ font-size: 1rem;
+}
+
+h5 {
+ font-size: 0.83rem;
+}
+
+h6 {
+ font-size: 0.67rem;
+}
+
+p,
+a {
+ font-size: 1rem;
+}
+
h1,
h2,
h3,
@@ -234,7 +263,7 @@ blockquote *:last-child {
margin-bottom: 0;
}
-/* 10. header */
+/* 10. header - make sure header addons dont break when modifying */
header {
background: var(--dc-bg-2);
border-bottom: 1px solid var(--dc-bg-3);