Skip to content

Commit a823ea9

Browse files
committed
bump version #104
1 parent f9b9463 commit a823ea9

File tree

241 files changed

+14803
-10524
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+14803
-10524
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## v1.3.3
4+
5+
- [x] relative color computation bug #105
6+
- [x] allow duplicated declarations of whitelisted properties #106
7+
38
## v1.3.2
49

510
- [x] add missing return type

README.md

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ $ deno add @tbela99/css-parser
4141
- flatten @import rules
4242
- experimental CSS prefix removal
4343

44+
## Online documentation
45+
46+
See the full documentation at the [CSS Parser](https://tbela99.github.io/css-parser/docs) documentation site
47+
4448
## Playground
4549

4650
Try it [online](https://tbela99.github.io/css-parser/playground/)
@@ -97,8 +101,7 @@ Javascript module from cdn
97101

98102
<script type="module">
99103
100-
import {transform} from 'https://esm.sh/@tbela99/[email protected]/web';
101-
104+
import {transform} from 'https://esm.sh/@tbela99/[email protected]/web';
102105
103106
const css = `
104107
.s {
@@ -119,11 +122,44 @@ Javascript module
119122
<script src="dist/web.js" type="module"></script>
120123
```
121124

122-
Single Javascript file
125+
Javascript umd module from cdn
123126

124-
```javascript
127+
```html
128+
129+
<script src="https://unpkg.com/@tbela99/[email protected]/dist/index-umd-web.js"></script>
130+
<script>
131+
132+
(async () => {
133+
134+
const css = `
135+
136+
.table {
137+
border-collapse: collapse;
138+
width: 100%;
139+
}
125140
126-
<script src="dist/index-umd-web.js"></script>
141+
.table td, .table th {
142+
border: 1px solid #ddd;
143+
padding: 8px;
144+
}
145+
146+
.table tr:nth-child(even){background-color: #f2f2f2;}
147+
148+
.table tr:hover {background-color: #ddd;}
149+
150+
.table th {
151+
padding-top: 12px;
152+
padding-bottom: 12px;
153+
text-align: left;
154+
background-color: #4CAF50;
155+
color: white;
156+
}
157+
`;
158+
159+
console.debug(await CSSParser.transform(css, {beautify: true, convertColor: CSSParser.ColorType.OKLCH}).then(r => r.code));
160+
})();
161+
162+
</script>
127163
```
128164

129165
## Transform

0 commit comments

Comments
 (0)