@intergrav/dev.css 4.0.6 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![NPM Version](https://img.shields.io/npm/v/@intergrav/dev.css)](https://www.npmjs.com/package/@intergrav/dev.css) [![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/@intergrav/dev.css)](https://cdn.jsdelivr.net/npm/@intergrav/dev.css/) [![Discord](https://img.shields.io/discord/1262738186338308126?logo=discord&logoColor=%23fff&color=%235865F2)](https://discord.gg/m5tUgaM3uK) [![GitHub Repo stars](https://img.shields.io/github/stars/intergrav/dev.css)](https://github.com/intergrav/dev.css)
4
4
 
5
- dev.css is a tiny, simple, classless CSS framework inspired by Vercel's [Geist](https://vercel.com/geist) design system. It is designed to make any plain HTML file look clean and modern. The minified stylesheet weighs only **~5.5kb** and includes both light and dark themes.
5
+ dev.css is a tiny, simple, classless CSS framework inspired by [new.css](https://newcss.net). It is designed to make any plain HTML file modern and responsive. The minified stylesheet weighs only **~5.5kb**. It also has some extra features, such as an optional sidebar and addons.
6
6
 
7
7
  You can find the website at <a href="https://devcss.devins.page">devcss.devins.page</a>, which contains a demo page.
8
8
 
@@ -106,26 +106,28 @@ For your main content, or the actual content of the page, it is heavily recommen
106
106
 
107
107
  ### Sidebar
108
108
 
109
- Optionally, you can add a sidebar to your page for pretty much anything you'd like. A good usage for this could be, for example, complex navigation on a docs website, where you wouldn't be able to fit it all into the header. The sidebar will sort normally with the rest of the content on smaller screens. To make a sidebar, place an `<aside>` tag, and then put an `<article>` inside. You must put it above the `<main>` content. You can have up to two sidebars per page - the second one will appear on the right side. Here's an example:
109
+ Optionally, you can add a sidebar to your page for pretty much anything you'd like. A good usage for this could be, for example, complex navigation on a docs website, where you wouldn't be able to fit it all into the header. The sidebar will sort normally with the rest of the content on smaller screens. To make a sidebar, place an `<aside>` tag, and then put an `<article>` inside. You must put it above the `<main>` content. You can have up to two sidebars per page - the second one will appear on the right side. You can also make a sidebar collapsible by wrapping it's contents in a `<details>` tag - adding the `open` attribute will make it open by default. Here's an example:
110
110
 
111
111
  ```html
112
112
  <aside>
113
113
  <article>
114
- <h1>Sidebar</h1>
115
- <nav>
116
- <ul>
117
- <li><a href="https://example.com">Page 1</a></li>
118
- <li>
119
- <a href="https://example.com">Page 2</a>
120
- <ul>
121
- <li><a href="https://example.com">Page 2.1</a></li>
122
- <li><a href="https://example.com">Page 2.2</a></li>
123
- </ul>
124
- </li>
125
- <li><a href="https://example.com">Page 3</a></li>
126
- <li><a href="https://example.com">Page 4</a></li>
127
- </ul>
128
- </nav>
114
+ <details open>
115
+ <summary>Sidebar</summary>
116
+ <nav>
117
+ <ul>
118
+ <li><a href="https://example.com">Page 1</a></li>
119
+ <li>
120
+ <a href="https://example.com">Page 2</a>
121
+ <ul>
122
+ <li><a href="https://example.com">Page 2.1</a></li>
123
+ <li><a href="https://example.com">Page 2.2</a></li>
124
+ </ul>
125
+ </li>
126
+ <li><a href="https://example.com">Page 3</a></li>
127
+ <li><a href="https://example.com">Page 4</a></li>
128
+ </ul>
129
+ </nav>
130
+ </details>
129
131
  </article>
130
132
  </aside>
131
133
  ```
package/dev.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /* dev.css v4, a lightweight CSS framework - https://github.com/intergrav/dev.css */
2
- /* about: tiny, simple, classless CSS framework in the style of Vercel's Geist design system */
2
+ /* about: tiny, simple, classless CSS framework inspired by new.css */
3
3
 
4
4
  /* table of contents
5
5
  1. configurable variables
@@ -24,9 +24,8 @@
24
24
  :root {
25
25
  /* font families */
26
26
  --dc-font: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
27
- --dc-font-mono:
28
- "Geist Mono", ui-monospace, "Cascadia Code", "Source Code Pro", Menlo,
29
- Consolas, "DejaVu Sans Mono", monospace;
27
+ --dc-font-mono: "Geist Mono", ui-monospace, "Cascadia Code", "Source Code Pro",
28
+ Menlo, Consolas, "DejaVu Sans Mono", monospace;
30
29
 
31
30
  /* light/dark colors */
32
31
  --dc-cs: light dark; /* light and dark scrollbars, inputs, etc */
@@ -431,7 +430,7 @@ pre code {
431
430
  }
432
431
 
433
432
  /* 10. details */
434
- details {
433
+ details:not(aside details) {
435
434
  padding: 0.5rem 1rem;
436
435
  background: var(--dc-bg-2);
437
436
  border: 1px solid var(--dc-bg-3);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@intergrav/dev.css",
3
- "version": "4.0.6",
4
- "description": "Tiny, simple, classless CSS framework in the style of Vercel's Geist design system",
3
+ "version": "4.2.0",
4
+ "description": "Tiny, simple, classless CSS framework inspired by new.css.",
5
5
  "keywords": [
6
6
  "css",
7
7
  "stylesheet",
@@ -1,6 +1,6 @@
1
1
  /* ==userstyle==
2
2
  @name boilerplate for dev.css
3
- @description a template that you can modify. mostly copied from dev.css defaults. removing lines will revert to the dev.css default, for example the font lines
3
+ @description a template that you can modify. copied from dev.css defaults. removing lines will revert to the dev.css default, for example the font lines
4
4
  @namespace author
5
5
  @version 1.0.0
6
6
  @author author <author@example.com> (https://example.com)
@@ -11,8 +11,9 @@
11
11
 
12
12
  :root {
13
13
  /* font families */
14
- --dc-font: sans-serif;
15
- --dc-font-mono: monospace;
14
+ --dc-font: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
15
+ --dc-font-mono: "Geist Mono", ui-monospace, "Cascadia Code", "Source Code Pro",
16
+ Menlo, Consolas, "DejaVu Sans Mono", monospace;
16
17
 
17
18
  /* light/dark colors */
18
19
  --dc-cs: light dark; /* light/dark scrollbars, inputs, etc */