beercss 3.9.7 → 3.10.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 +40 -41
- package/custom-element/index.js +7 -0
- package/dist/cdn/beer.css +475 -542
- package/dist/cdn/beer.custom-element.js +38 -0
- package/dist/cdn/beer.custom-element.min.js +1 -0
- package/dist/cdn/beer.js +77 -150
- package/dist/cdn/beer.min.css +1 -1
- package/dist/cdn/beer.min.js +1 -1
- package/dist/cdn/beer.scoped.css +4348 -0
- package/dist/cdn/beer.scoped.min.css +1 -0
- package/package.json +5 -3
- package/scoped/index.js +6 -0
- package/src/cdn/beer.css +3 -3
- package/src/cdn/beer.ts +1 -1
- package/src/cdn/customElement.js +38 -0
- package/src/cdn/elements/badges.css +7 -21
- package/src/cdn/elements/buttons.css +7 -16
- package/src/cdn/elements/cards.css +2 -1
- package/src/cdn/elements/chips.css +5 -8
- package/src/cdn/elements/dialogs.css +52 -26
- package/src/cdn/elements/fields.css +25 -36
- package/src/cdn/elements/fields.ts +1 -1
- package/src/cdn/elements/grids.css +7 -7
- package/src/cdn/elements/icons.css +13 -13
- package/src/cdn/elements/layouts.css +17 -30
- package/src/cdn/elements/mainLayouts.css +163 -0
- package/src/cdn/elements/media.css +24 -46
- package/src/cdn/elements/menus.css +27 -27
- package/src/cdn/elements/navigations.css +31 -11
- package/src/cdn/elements/pages.css +6 -7
- package/src/cdn/elements/selections.css +13 -13
- package/src/cdn/elements/sliders.css +12 -13
- package/src/cdn/elements/sliders.ts +4 -4
- package/src/cdn/elements/tables.css +1 -0
- package/src/cdn/elements/tabs.css +1 -0
- package/src/cdn/elements/tooltips.css +10 -11
- package/src/cdn/helpers/blurs.css +7 -7
- package/src/cdn/helpers/forms.css +17 -56
- package/src/cdn/helpers/margins.css +11 -11
- package/src/cdn/helpers/paddings.css +10 -10
- package/src/cdn/helpers/ripples.css +4 -4
- package/src/cdn/helpers/shadows.css +4 -4
- package/src/cdn/helpers/spaces.css +4 -4
- package/src/cdn/settings/fonts.css +4 -4
- package/src/cdn/utils.ts +2 -2
- package/src/cdn/elements/containers.css +0 -176
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<p align="center">
|
|
5
5
|
<a href="https://github.com/beercss/beercss/blob/main/LICENSE"><img src="https://img.shields.io/github/license/beercss/beercss" alt="License"></a>
|
|
6
6
|
<a href="https://github.com/beercss/beercss"><img src="https://img.shields.io/jsdelivr/npm/hy/beercss" alt="Downloads"></a>
|
|
7
|
-
<a href="https://bundlephobia.com/package/beercss" target="_blank"><img src="https://img.shields.io/bundlephobia/minzip/beercss" alt="minzipped size"></a>
|
|
7
|
+
<a href="https://bundlephobia.com/package/beercss@3.10.0" target="_blank"><img src="https://img.shields.io/bundlephobia/minzip/beercss@3.10.0" alt="minzipped size"></a>
|
|
8
8
|
<a href="https://www.npmjs.com/package/beercss"><img src="https://img.shields.io/npm/v/beercss" alt="Version"></a>
|
|
9
9
|
<a href="https://github.com/beercss/beercss/pulls"><img src="https://img.shields.io/github/issues-pr/beercss/beercss" alt="Pull Request"></a>
|
|
10
10
|
<a href="https://github.com/beercss/beercss/issues"><img src="https://img.shields.io/github/issues/beercss/beercss" alt="Issues"></a>
|
|
@@ -22,19 +22,15 @@ Cheers, www.beercss.com
|
|
|
22
22
|
|
|
23
23
|
Beer CSS is an MIT-licensed open source project with its ongoing development made possible entirely by the support of these awesome sponsors and backers. If you'd like to join them, please consider sponsoring Beer CSS's development.
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<img src="https://avatars.githubusercontent.com/u/181576?s=40&v=4 alt="Sponsors">
|
|
35
|
-
<img src="https://avatars.githubusercontent.com/u/797439?s=40&v=4 alt="Sponsors">
|
|
36
|
-
<img src="https://avatars.githubusercontent.com/u/3647943?s=40&v=4 alt="Sponsors">
|
|
37
|
-
</a>
|
|
25
|
+
<p align="center">
|
|
26
|
+
<img src="https://opencollective.com/beercss/sponsors.svg?avatarHeight=56&button=false" alt="Sponsors">
|
|
27
|
+
<img src="https://opencollective.com/beercss/backers.svg?avatarHeight=56&button=false" alt="Sponsors">
|
|
28
|
+
<img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/40445940?s=56&v=4&mask=circle&maxage=7d" alt="Sponsors">
|
|
29
|
+
<img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/74856856?s=56&v=4&mask=circle&maxage=7d" alt="Sponsors">
|
|
30
|
+
<img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/419690?s=56&v=4&mask=circle&maxage=7d" alt="Sponsors">
|
|
31
|
+
<img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/181576?s=56&v=4&mask=circle&maxage=7d" alt="Sponsors">
|
|
32
|
+
<img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/797439?s=56&v=4&mask=circle&maxage=7d" alt="Sponsors">
|
|
33
|
+
<img src="https://images.weserv.nl/?url=avatars.githubusercontent.com/u/3647943?s=56&v=4&mask=circle&maxage=7d" alt="Sponsors">
|
|
38
34
|
</p>
|
|
39
35
|
|
|
40
36
|
# Why?
|
|
@@ -43,7 +39,7 @@ Beer CSS is an MIT-licensed open source project with its ongoing development mad
|
|
|
43
39
|
- ⬇️ 10x smaller than others CSS frameworks based on Material Design.
|
|
44
40
|
- 🧙♂️ Translates Material Design to HTML semantic standard.
|
|
45
41
|
- 🤓 Ready to use with any JS framework.
|
|
46
|
-
-
|
|
42
|
+
- 🎯 Highly focused on DX.
|
|
47
43
|
- 🚫 No build steps, configurations or dependencies.
|
|
48
44
|
- ✨ Build modern interfaces without any custom CSS.
|
|
49
45
|
|
|
@@ -133,60 +129,63 @@ This project was guided by the **"Germany Beer Purity Law"** or **"Reinheitsgebo
|
|
|
133
129
|
|
|
134
130
|
### CDN
|
|
135
131
|
|
|
136
|
-
|
|
132
|
+
**Default version**
|
|
137
133
|
|
|
138
134
|
```html
|
|
139
|
-
|
|
140
|
-
<
|
|
141
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.9.7/dist/cdn/beer.min.js"></script>
|
|
135
|
+
<link href="https://cdn.jsdelivr.net/npm/beercss@3.10.0/dist/cdn/beer.min.css" rel="stylesheet" />
|
|
136
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.10.0/dist/cdn/beer.min.js"></script>
|
|
142
137
|
<script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.2/dist/cdn/material-dynamic-colors.min.js"></script>
|
|
143
138
|
```
|
|
144
139
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
140
|
+
**Scoped version** applied on child elements of `<* class="beer">...</*>`.
|
|
141
|
+
|
|
142
|
+
```html
|
|
143
|
+
<link href="https://cdn.jsdelivr.net/npm/beercss@3.10.0/dist/cdn/beer.scoped.min.css" rel="stylesheet" />
|
|
144
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.10.0/dist/cdn/beer.min.js"></script>
|
|
145
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.2/dist/cdn/material-dynamic-colors.min.js"></script>
|
|
148
146
|
```
|
|
149
147
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
148
|
+
**Custom element version** applied on child elements of `<beer-css>...</beer-css>`.
|
|
149
|
+
|
|
150
|
+
```html
|
|
151
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.10.0/dist/cdn/beer.custom-element.min.js"></script>
|
|
152
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.2/dist/cdn/material-dynamic-colors.min.js"></script>
|
|
154
153
|
```
|
|
155
154
|
|
|
155
|
+
|
|
156
156
|
### NPM
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
**Install**
|
|
159
159
|
|
|
160
160
|
```js
|
|
161
|
-
// installing
|
|
162
161
|
npm i beercss
|
|
163
162
|
npm i material-dynamic-colors
|
|
164
163
|
```
|
|
165
164
|
|
|
165
|
+
**Default version**
|
|
166
|
+
|
|
166
167
|
```js
|
|
167
|
-
// importing as window.beercss and window.materialDynamicColors
|
|
168
168
|
import "beercss";
|
|
169
169
|
import "material-dynamic-colors";
|
|
170
170
|
```
|
|
171
171
|
|
|
172
172
|
```js
|
|
173
|
-
// importing as beercss and materialDynamicColors
|
|
174
173
|
import beercss from "beercss";
|
|
175
174
|
import materialDynamicColors from "material-dynamic-colors";
|
|
176
175
|
```
|
|
177
176
|
|
|
177
|
+
**Scoped version** applied on child elements of `<* class="beer">...</*>`.
|
|
178
|
+
|
|
178
179
|
```js
|
|
179
|
-
|
|
180
|
-
import "
|
|
181
|
-
import beercss from "beercss/dist/cdn/beer.min.js";
|
|
182
|
-
import materialDynamicColors from "material-dynamic-colors/dist/cdn/material-dynamic-colors.min.js";
|
|
180
|
+
import "beercss/scoped";
|
|
181
|
+
import "material-dynamic-colors";
|
|
183
182
|
```
|
|
184
183
|
|
|
184
|
+
**Custom element version** applied on child elements of `<beer-css>...</beer-css>`.
|
|
185
|
+
|
|
185
186
|
```js
|
|
186
|
-
|
|
187
|
-
import "
|
|
188
|
-
import beercss from "beercss/src/cdn/beer.ts";
|
|
189
|
-
import materialDynamicColors from "material-dynamic-colors/src/cdn/material-dynamic-colors.js";
|
|
187
|
+
import "beercss/custom-element";
|
|
188
|
+
import "material-dynamic-colors";
|
|
190
189
|
```
|
|
191
190
|
|
|
192
191
|
### HTML
|
|
@@ -201,8 +200,8 @@ You can use this html to setup your project. See on [Codepen](https://codepen.io
|
|
|
201
200
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
202
201
|
<meta name="google" content="notranslate">
|
|
203
202
|
<title>Hello world</title>
|
|
204
|
-
<link href="https://cdn.jsdelivr.net/npm/beercss@3.
|
|
205
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.
|
|
203
|
+
<link href="https://cdn.jsdelivr.net/npm/beercss@3.10.0/dist/cdn/beer.min.css" rel="stylesheet">
|
|
204
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/beercss@3.10.0/dist/cdn/beer.min.js"></script>
|
|
206
205
|
<script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.2/dist/cdn/material-dynamic-colors.min.js"></script>
|
|
207
206
|
</head>
|
|
208
207
|
<body class="dark">
|
|
@@ -291,7 +290,7 @@ You can use this html to setup your project. See on [Codepen](https://codepen.io
|
|
|
291
290
|
</html>
|
|
292
291
|
```
|
|
293
292
|
|
|
294
|
-
**We recommend
|
|
293
|
+
**We recommend using the material-dynamic-colors only when your app needs to change theme at runtime.**
|
|
295
294
|
|
|
296
295
|
# Documentation
|
|
297
296
|
|