@anyblades/blades 0.28.0 → 0.30.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 +83 -65
- package/_includes/blades/html.liquid +1 -1
- package/_includes/blades/html.njk +1 -1
- package/assets/blades.css +521 -177
- package/assets/{blades.core.css → blades.standalone.core.css} +41 -46
- package/assets/blades.standalone.css +857 -0
- package/assets/{blades.theme.css → blades.standalone.theme.css} +2 -2
- package/assets/breakout.css +6 -6
- package/assets/float-label.core.css +2 -2
- package/assets/float-label.css +2 -2
- package/assets/link-icon.css +4 -4
- package/assets/responsive-table.css +5 -5
- package/blades.gemspec +1 -1
- package/package.json +5 -6
- package/src/_layout.css +4 -4
- package/src/_utilities.css +2 -4
- package/src/blades.css +6 -2
- package/src/blades.standalone.css +2 -0
- package/src/content/_code.css +1 -2
- package/src/content/_table.css +1 -2
- package/src/content/_typography.css +6 -7
- package/assets/pico.blades.css +0 -1211
- package/src/pico.blades.css +0 -6
- /package/{LICENSE → LICENSE.md} +0 -0
- /package/src/{blades.core.css → blades.standalone.core.css} +0 -0
- /package/src/{blades.theme.css → blades.standalone.theme.css} +0 -0
package/README.md
CHANGED
|
@@ -2,103 +2,121 @@
|
|
|
2
2
|
|
|
3
3
|
<!--section:summary-->
|
|
4
4
|
|
|
5
|
-
<
|
|
5
|
+
# <mark>Minimal CSS Framework</mark> <wbr> for Semantic HTML
|
|
6
6
|
|
|
7
|
-
<big>
|
|
7
|
+
<big>Fully compatible and actively maintained successor to Pico CSS.</big>
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Includes [Float labels](https://blades.ninja/css/float-label/), [Breakout layout](https://blades.ninja/css/breakout/) and other modern helpers. Simply switch `pico.css` to `blades.css`, or add `blades.standalone.css` to other frameworks.
|
|
10
|
+
|
|
11
|
+
<!--section:gh-only-->
|
|
12
|
+
|
|
13
|
+

|
|
10
14
|
[](https://github.com/anyblades/blades)
|
|
11
15
|
[](https://github.com/anyblades/blades)
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
<li><a href="/css/#
|
|
21
|
-
<li><a href="/css/#
|
|
22
|
-
<li><a href="/css/#
|
|
23
|
-
<li><a href="/css/#
|
|
24
|
-
<li><a href="/css/#
|
|
25
|
-
<li><a href="/css/#
|
|
26
|
-
<li><a href="/css/#
|
|
27
|
-
<li><a href="/css/#
|
|
28
|
-
<li><a href="/css/#
|
|
29
|
-
<li><a href="/css/#
|
|
30
|
-
<li><a href="/css/#
|
|
31
|
-
<li><a href="/css/#
|
|
32
|
-
<li><a href="/css/#
|
|
33
|
-
<li><a href="/css/#
|
|
34
|
-
<!--section:gh-only-->
|
|
17
|
+
## [Documentation ↗](https://blades.ninja/css/)
|
|
18
|
+
|
|
19
|
+
<!-- ToC from https://blades.ninja/#documentation -->
|
|
20
|
+
<ul class="columns"><li><a href="https://blades.ninja/css/#install" tabindex="-1">Install</a></li><p></p>
|
|
21
|
+
<li><a href="https://blades.ninja/css/#layout" tabindex="-1">Layout</a><ul><li><a href="https://blades.ninja/css/#breakout">Breakout layout</a></li>
|
|
22
|
+
<li><a href="https://blades.ninja/css/#auto-columns" tabindex="-1">Auto-columns</a></li>
|
|
23
|
+
<li><a href="https://blades.ninja/css/#jump-to-top" tabindex="-1">Jump to top</a></li></ul></li>
|
|
24
|
+
<li><a href="https://blades.ninja/css/#content" tabindex="-1">Content</a><ul><li><a href="https://blades.ninja/css/#link-icon">Link icon</a></li>
|
|
25
|
+
<li><a href="https://blades.ninja/css/#heading-anchors" tabindex="-1">Heading anchors</a></li>
|
|
26
|
+
<li><a href="https://blades.ninja/css/#list-markers" tabindex="-1">List markers</a></li>
|
|
27
|
+
<li><a href="https://blades.ninja/css/#unlist" tabindex="-1">Unlist</a></li>
|
|
28
|
+
<li><a href="https://blades.ninja/css/#code" tabindex="-1">Code</a></li></ul></li>
|
|
29
|
+
<li><a href="https://blades.ninja/css/#table" tabindex="-1">Table</a><ul><li><a href="https://blades.ninja/css/#responsive-table">Responsive table</a></li>
|
|
30
|
+
<li><a href="https://blades.ninja/css/#column-expanders" tabindex="-1">Column expanders</a></li>
|
|
31
|
+
<li><a href="https://blades.ninja/css/#borderless-table" tabindex="-1">Borderless table</a></li></ul></li>
|
|
32
|
+
<li><a href="https://blades.ninja/css/#forms" tabindex="-1">Forms</a><ul><li><a href="https://blades.ninja/css/#float-label">Float label CSS</a></li></ul></li>
|
|
33
|
+
<li><a href="https://blades.ninja/css/#utilities" tabindex="-1">Utilities</a><ul><li><a href="https://blades.ninja/css/#auto-dark" tabindex="-1">Auto-dark</a></li>
|
|
34
|
+
<li><a href="https://blades.ninja/css/#faded" tabindex="-1">Faded</a></li></ul></li>
|
|
35
|
+
<li><a href="https://blades.ninja/css/#more" tabindex="-1">More</a><ul><li><a href="https://blades.ninja/css/#pico">Pico+Blades CSS ✨🥷</a></li>
|
|
36
|
+
<li><a href="https://blades.ninja/css/#html">Blades HTML</a></li>
|
|
37
|
+
<li><a href="https://blades.ninja/css/#jekyll">Blades for Jekyll</a></li></ul></li></ul>
|
|
35
38
|
|
|
36
39
|
---
|
|
37
40
|
|
|
38
|
-
##
|
|
41
|
+
## Quick start
|
|
39
42
|
|
|
40
|
-
<!--section:install-->
|
|
43
|
+
<!--section:install--><!-- for https://blades.ninja/css/ and https://blades.ninja/css/standalone/ -->
|
|
41
44
|
|
|
42
|
-
|
|
45
|
+
There are 4 ways to get started:
|
|
46
|
+
|
|
47
|
+
### Install manually
|
|
48
|
+
|
|
49
|
+
[Download *Bl*ades](https://github.com/anyblades/pico/archive/refs/heads/main.zip) and link `assets/blades.css` in the `<head>` of your website.
|
|
50
|
+
|
|
51
|
+
```html
|
|
52
|
+
<link rel="stylesheet" href="assets/blades.css" />
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
### Usage from CDN
|
|
56
|
+
|
|
57
|
+
Alternatively, you can use [jsDelivr CDN](https://cdn.jsdelivr.net/npm/@anyblades/blades@0/) to link `blades.min.css`:
|
|
43
58
|
|
|
44
59
|
<!--prettier-ignore-->
|
|
45
60
|
```html
|
|
46
61
|
<link rel="stylesheet" href="
|
|
47
|
-
https://cdn.jsdelivr.net/npm/@anyblades/blades
|
|
48
|
-
"
|
|
62
|
+
https://cdn.jsdelivr.net/npm/@anyblades/blades@0/assets/blades.min.css
|
|
63
|
+
"/>
|
|
49
64
|
```
|
|
50
65
|
|
|
51
|
-
|
|
66
|
+
Living examples: https://github.com/anyblades/subtle/blob/main/.subtle/package.json
|
|
67
|
+
|
|
68
|
+
### Install with NPM
|
|
52
69
|
|
|
53
70
|
```sh
|
|
71
|
+
npm install @anyblades/pico # optional
|
|
54
72
|
npm install @anyblades/blades
|
|
55
73
|
```
|
|
56
74
|
|
|
57
|
-
Then
|
|
75
|
+
Then, import [Pico and] *Bl*ades into your CSS:
|
|
58
76
|
|
|
59
77
|
```css
|
|
60
|
-
@import "@anyblades/
|
|
78
|
+
@import "@anyblades/pico"; /* optional */
|
|
79
|
+
@import "@anyblades/blades"; /* can be used standalone */
|
|
61
80
|
```
|
|
62
81
|
|
|
63
82
|
Living example: https://github.com/anyblades/build-awesome-starter/blob/main/_styles/styles.css
|
|
64
83
|
|
|
65
|
-
<!--
|
|
84
|
+
### Starter HTML template <!-- from index.html -->
|
|
66
85
|
|
|
67
|
-
|
|
86
|
+
```html
|
|
87
|
+
<!doctype html>
|
|
88
|
+
<html lang="en">
|
|
89
|
+
<head>
|
|
90
|
+
<meta charset="utf-8" />
|
|
91
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
92
|
+
<meta name="color-scheme" content="light dark" />
|
|
93
|
+
<link rel="stylesheet" href="assets/blades.css" />
|
|
94
|
+
<title>Hello world!</title>
|
|
95
|
+
</head>
|
|
96
|
+
<body>
|
|
97
|
+
<main class="container">
|
|
98
|
+
<h1>Hello world!</h1>
|
|
99
|
+
</main>
|
|
100
|
+
</body>
|
|
101
|
+
</html>
|
|
102
|
+
```
|
|
68
103
|
|
|
69
|
-
|
|
70
|
-
- 11ty: https://github.com/anyblades/build-awesome-starter
|
|
71
|
-
- Jekyll: https://github.com/anyblades/bladeswitch or [as a theme](https://blades.ninja/jekyll/#install)
|
|
104
|
+
<!--section:info-->
|
|
72
105
|
|
|
73
|
-
|
|
106
|
+
## <sup>Featured by</sup><!--A-Z-->
|
|
74
107
|
|
|
75
|
-
|
|
108
|
+
- [https://fosstodon.org/@pauleveritt](https://fosstodon.org/@pauleveritt/116387278969347700)
|
|
109
|
+
- [https://github.com/@gabrielizalo/awesome-css](https://github.com/gabrielizalo/awesome-css-frameworks-and-ui-libraries/tree/master/Lightweight)
|
|
110
|
+
- [https://github.com/@uhub/awesome-css](https://github.com/uhub/awesome-css)
|
|
111
|
+
- [https://github.com/awesome-11ty-build-awesome](https://github.com/anyblades/awesome-11ty-build-awesome)
|
|
112
|
+
- [https://github.com/classless-css](https://github.com/dbohdan/classless-css#components) <small>🥷 *Fl*oat labels</small>
|
|
113
|
+
- [https://sveltiacms.app/docs/start](https://sveltiacms.app/en/docs/start#starter-templates)
|
|
76
114
|
|
|
77
|
-
|
|
115
|
+
<!--{.unlist .columns}-->
|
|
78
116
|
|
|
79
|
-
|
|
117
|
+
## <sup>Credits</sup>
|
|
80
118
|
|
|
81
|
-
|
|
119
|
+
- https://picocss.com/ for inspiration
|
|
120
|
+
- https://11ty.dev/ for build power
|
|
82
121
|
|
|
83
|
-
|
|
84
|
-
- https://github.com/uhub/awesome-css
|
|
85
|
-
- https://github.com/gabrielizalo/awesome-css-frameworks-and-ui-libraries/tree/master/lightweight
|
|
86
|
-
- https://github.com/anyblades/awesome-11ty-build-awesome
|
|
87
|
-
- https://11tybundle.dev/blog/11ty-bundle-88/
|
|
88
|
-
- [https://jekyll-themes.com/](https://jekyll-themes.com/anyblades/blades)
|
|
89
|
-
- [https://sveltiacms.app/](https://sveltiacms.app/en/docs/start#starter-templates)
|
|
90
|
-
- ✨ [pico.css](https://github.com/anyblades/pico) community fork
|
|
91
|
-
- 🚀 [build-awesome-starter](https://github.com/anyblades/build-awesome-starter)
|
|
92
|
-
- 🚀 [bladeswitch](https://github.com/anyblades/bladeswitch) starter
|
|
93
|
-
|
|
94
|
-
- Showcase:
|
|
95
|
-
- <abbr data-tooltip="Pico CSS + Blades">✨+🥷</abbr> = https://any.digital/
|
|
96
|
-
- <abbr data-tooltip="Tailwind CSS + Typography plugin + Blades">💨+🥷</abbr> = https://build.blades.ninja/
|
|
97
|
-
- <abbr data-tooltip="Pico CSS + Blades">✨+🥷</abbr> = https://bladeswitch.com/
|
|
98
|
-
- <abbr data-tooltip="Pico CSS + Blades">✨+🥷</abbr> = https://minform.hostfurl.com/
|
|
99
|
-
|
|
100
|
-
- Credits:
|
|
101
|
-
- https://picocss.com/ for inspiration
|
|
102
|
-
- https://11ty.dev/ for build power
|
|
103
|
-
|
|
104
|
-
<!--{.unlist-all .columns}-->
|
|
122
|
+
<!--{.unlist}-->
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{%- if title %}{{ title | strip_html | append: ' | ' }}{% endif -%}
|
|
13
13
|
{{- site.title -}}
|
|
14
14
|
</title>
|
|
15
|
-
<meta name="description" content="{{
|
|
15
|
+
<meta name="description" content="{{ description | strip_html }}">
|
|
16
16
|
|
|
17
17
|
{%- for href in site.styles %}
|
|
18
18
|
<link rel="stylesheet" href="{{ href | relative_url }}">
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{{- title | string | striptags ~ ' | ' if title -}}
|
|
13
13
|
{{- site.title -}}
|
|
14
14
|
</title>
|
|
15
|
-
<meta name="description" content="{{
|
|
15
|
+
<meta name="description" content="{{ description | striptags }}" />
|
|
16
16
|
|
|
17
17
|
{%- for href in site.styles %}
|
|
18
18
|
<link rel="stylesheet" href="{{ href }}" />
|