beercss 4.0.5 → 4.0.7

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
@@ -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><img src="https://img.shields.io/badge/brotli_size-14.5kb-green" alt="brotli size"></a>
7
+ <a><img src="https://img.shields.io/badge/brotli_size-14.4kb-green" alt="brotli 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>
@@ -84,8 +84,8 @@ This project was guided by the **"Germany Beer Purity Law"** or **"Reinheitsgebo
84
84
  ### DEFAULT VERSION
85
85
 
86
86
  ```html
87
- <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.min.css" rel="stylesheet" />
88
- <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.min.js"></script>
87
+ <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.min.css" rel="stylesheet" />
88
+ <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.min.js"></script>
89
89
  <script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/material-dynamic-colors.min.js"></script>
90
90
  ```
91
91
 
@@ -103,8 +103,8 @@ import "material-dynamic-colors";
103
103
  Applied on child elements of `<* class="beer">...</*>`.
104
104
 
105
105
  ```html
106
- <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.scoped.min.css" rel="stylesheet" />
107
- <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.min.js"></script>
106
+ <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.scoped.min.css" rel="stylesheet" />
107
+ <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.min.js"></script>
108
108
  <script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/material-dynamic-colors.min.js"></script>
109
109
  ```
110
110
 
@@ -122,7 +122,7 @@ import "material-dynamic-colors";
122
122
  Applied on child elements of `<beer-css>...</beer-css>`.
123
123
 
124
124
  ```html
125
- <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.custom-element.min.js"></script>
125
+ <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.custom-element.min.js"></script>
126
126
  <script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/material-dynamic-colors.min.js"></script>
127
127
  ```
128
128
 
@@ -138,7 +138,7 @@ import "material-dynamic-colors";
138
138
 
139
139
  ### LOCAL CDN VERSION
140
140
 
141
- Download all files from CDN https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/ and https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/. Now put the files inside a new folder in your project (like `/beercss` for example):
141
+ Download all files from CDN https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/ and https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/. Now put the files inside a new folder in your project (like `/beercss` for example):
142
142
 
143
143
  ```html
144
144
  <link href="/beercss/beer.min.css" rel="stylesheet" />
@@ -159,8 +159,8 @@ You can use this html to setup your project. See on [Codepen](https://codepen.io
159
159
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
160
160
  <meta name="google" content="notranslate">
161
161
  <title>Hello world</title>
162
- <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.min.css" rel="stylesheet">
163
- <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.min.js"></script>
162
+ <link href="https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.min.css" rel="stylesheet">
163
+ <script type="module" src="https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.min.js"></script>
164
164
  <script type="module" src="https://cdn.jsdelivr.net/npm/material-dynamic-colors@1.1.4/dist/cdn/material-dynamic-colors.min.js"></script>
165
165
  </head>
166
166
  <body class="dark">
package/dist/cdn/beer.css CHANGED
@@ -140,7 +140,7 @@ body.dark {
140
140
  font-style: normal;
141
141
  font-weight: 400;
142
142
  font-display: swap;
143
- src: url(material-symbols-outlined.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/material-symbols-outlined.woff2) format("woff2");
143
+ src: url(material-symbols-outlined.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/material-symbols-outlined.woff2) format("woff2");
144
144
  }
145
145
 
146
146
  /* rounded icons */
@@ -150,7 +150,7 @@ body.dark {
150
150
  font-style: normal;
151
151
  font-weight: 400;
152
152
  font-display: swap;
153
- src: url(material-symbols-rounded.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/material-symbols-rounded.woff2) format("woff2");
153
+ src: url(material-symbols-rounded.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/material-symbols-rounded.woff2) format("woff2");
154
154
  }
155
155
 
156
156
  /* sharp icons */
@@ -160,7 +160,7 @@ body.dark {
160
160
  font-style: normal;
161
161
  font-weight: 400;
162
162
  font-display: swap;
163
- src: url(material-symbols-sharp.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/material-symbols-sharp.woff2) format("woff2");
163
+ src: url(material-symbols-sharp.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/material-symbols-sharp.woff2) format("woff2");
164
164
  }
165
165
 
166
166
  /* subset of only required icons */
@@ -170,7 +170,7 @@ body.dark {
170
170
  font-style: normal;
171
171
  font-weight: 400;
172
172
  font-display: swap;
173
- src: url(material-symbols-subset.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/material-symbols-subset.woff2) format("woff2");
173
+ src: url(material-symbols-subset.woff2) format("woff2"), url(https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/material-symbols-subset.woff2) format("woff2");
174
174
  }
175
175
 
176
176
  /* begin scoped */
@@ -1551,19 +1551,17 @@ hr.small,
1551
1551
  margin: 0.5rem 0 !important;
1552
1552
  }
1553
1553
 
1554
- li:has(> hr),
1555
- li:has(> .divider) {
1554
+ li:has(> :is(hr, .divider)) {
1556
1555
  padding: 0 !important;
1557
1556
  align-self: normal !important;
1558
1557
  min-inline-size: auto !important;
1559
1558
  min-block-size: auto !important;
1560
1559
  inline-size: -webkit-fill-available;
1560
+ background: none !important;
1561
1561
  }
1562
1562
 
1563
- hr.vertical,
1564
- .divider.vertical,
1565
- li:has(> hr.vertical),
1566
- li:has(> .divider.vertical) {
1563
+ :is(hr, .divider).vertical,
1564
+ li:has(> :is(hr, .divider).vertical) {
1567
1565
  padding: 0 !important;
1568
1566
  align-self: center !important;
1569
1567
  min-inline-size: auto;
@@ -2593,9 +2591,9 @@ menu {
2593
2591
  text-align: start;
2594
2592
  border-radius: 1rem;
2595
2593
  transform: scale(0.8) translateY(120%);
2596
- transition: all var(--speed2) var(--speed2), background-color 0s;
2594
+ transition: all var(--speed2) var(--speed2);
2597
2595
  justify-content: flex-start;
2598
- padding: 0.125rem 0.25rem;
2596
+ padding: 0.25rem;
2599
2597
  display: flex;
2600
2598
  flex-direction: column;
2601
2599
  gap: 0.125rem;
@@ -2667,7 +2665,7 @@ menu > li:last-child {
2667
2665
  border-bottom-right-radius: inherit;
2668
2666
  }
2669
2667
 
2670
- menu:not(.transparent) > li:not(.transparent):hover {
2668
+ menu > li:hover {
2671
2669
  background-color: color-mix(in srgb, currentColor 10%, transparent);
2672
2670
  }
2673
2671
 
@@ -4264,13 +4262,11 @@ progress.max + * {
4264
4262
  background: var(--primary);
4265
4263
  color: var(--on-primary);
4266
4264
  z-index: 0;
4267
- inset: calc(50% - (var(--_track, 0) / 2)) var(--_end) auto var(--_start);
4268
- clip-path: polygon(0 0, calc(100% - 0.5rem) 0, calc(100% - 0.5rem) 100%, 0 100%);
4265
+ inset: calc(50% - (var(--_track, 0) / 2)) calc(var(--_end) + 0.5rem) auto calc(var(--_start) + 0.5rem);
4269
4266
  }
4270
4267
 
4271
4268
  .slider > input[type=range] + input[type=range] ~ span:not([class]) {
4272
4269
  border-radius: 0;
4273
- clip-path: polygon(0.5rem 0, max(0.5rem, calc(100% - 0.5rem)) 0, max(0.5rem, calc(100% - 0.5rem)) 100%, 0.5rem 100%);
4274
4270
  }
4275
4271
 
4276
4272
  .field > .slider {
@@ -4440,7 +4436,6 @@ progress.max + * {
4440
4436
  .slider.max > span:not([class]) {
4441
4437
  block-size: auto !important;
4442
4438
  inset: 0 var(--_end) 0 var(--_start);
4443
- clip-path: none;
4444
4439
  background: currentcolor;
4445
4440
  color: inherit;
4446
4441
  border-radius: 0;
@@ -12,7 +12,7 @@ class BeerCssCustomElement extends HTMLElement {
12
12
  BeerCssCustomElement.isJsLoaded = true;
13
13
 
14
14
  if (window.ui) return;
15
- return await import("https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.min.js");
15
+ return await import("https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.min.js");
16
16
  }
17
17
 
18
18
  async addCss() {
@@ -23,7 +23,7 @@ class BeerCssCustomElement extends HTMLElement {
23
23
 
24
24
  const head = document.querySelector("head");
25
25
  const element = document.createElement("link");
26
- element.setAttribute("href", "https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.scoped.min.css");
26
+ element.setAttribute("href", "https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.scoped.min.css");
27
27
  element.setAttribute("rel", "stylesheet");
28
28
  head.appendChild(element);
29
29
  }
@@ -1 +1 @@
1
- class BeerCssCustomElement extends HTMLElement {static isCssLoaded = false;static isJsLoaded = false;constructor() {super();this.run();}async addJs() {if (BeerCssCustomElement.isJsLoaded) return;BeerCssCustomElement.isJsLoaded = true;if (window.ui) return;return await import("https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.min.js");}async addCss() {if (BeerCssCustomElement.isCssLoaded) return;BeerCssCustomElement.isCssLoaded = true;const isScoped = !!getComputedStyle(document.documentElement).getPropertyValue("--scoped");if (isScoped) return;const head = document.querySelector("head");const element = document.createElement("link");element.setAttribute("href", "https://cdn.jsdelivr.net/npm/beercss@4.0.5/dist/cdn/beer.scoped.min.css");element.setAttribute("rel", "stylesheet");head.appendChild(element);}async run() {await Promise.all([this.addJs(), this.addCss()]);ui();}}customElements.define("beer-css", BeerCssCustomElement);export default BeerCssCustomElement;
1
+ class BeerCssCustomElement extends HTMLElement {static isCssLoaded = false;static isJsLoaded = false;constructor() {super();this.run();}async addJs() {if (BeerCssCustomElement.isJsLoaded) return;BeerCssCustomElement.isJsLoaded = true;if (window.ui) return;return await import("https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.min.js");}async addCss() {if (BeerCssCustomElement.isCssLoaded) return;BeerCssCustomElement.isCssLoaded = true;const isScoped = !!getComputedStyle(document.documentElement).getPropertyValue("--scoped");if (isScoped) return;const head = document.querySelector("head");const element = document.createElement("link");element.setAttribute("href", "https://cdn.jsdelivr.net/npm/beercss@4.0.7/dist/cdn/beer.scoped.min.css");element.setAttribute("rel", "stylesheet");head.appendChild(element);}async run() {await Promise.all([this.addJs(), this.addCss()]);ui();}}customElements.define("beer-css", BeerCssCustomElement);export default BeerCssCustomElement;