Skip to content

Commit

Permalink
#105 mention multibytes support in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tbela99 committed Jan 11, 2022
1 parent c82ccd5 commit 8494ec9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ A CSS parser, beautifier and minifier written in PHP. It supports the following

## Features

- multibyte characters encoding support
- sourcemap
- CSS Nesting module
- partial CSS Syntax module level 3
Expand Down
30 changes: 16 additions & 14 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,19 @@ A CSS parser, beautifier and minifier written in PHP. It supports the following

## Features

- multibyte characters encoding support
- sourcemap
- CSS Nesting module
- partial CSS Syntax module level 3
- CSS colors module level 4
- parse and render CSS
- optimize css:
- merge duplicate rules
- remove duplicate declarations
- remove empty rules
- compute css shorthand (margin, padding, outline, border-radius, font, background)
- process @import document to reduce the number of HTTP requests
- remove @charset directive
- merge duplicate rules
- remove duplicate declarations
- remove empty rules
- compute css shorthand (margin, padding, outline, border-radius, font, background)
- process @import document to reduce the number of HTTP requests
- remove @charset directive
- query api with xpath like or class name syntax
- traverser api to transform the css and ast

Expand All @@ -33,7 +34,8 @@ $ composer require tbela99/css

## Requirements

This library requires PHP version >= 7.4. If you need support for older versions of PHP 5.6 - 7.3 then checkout [this branch](https://github.com/tbela99/css/tree/php56-backport)
- PHP version >= 7.4. If you need support for older versions of PHP 5.6 - 7.3 then checkout [this branch](https://github.com/tbela99/css/tree/php56-backport)
- mbstring extension

## Usage:

Expand Down Expand Up @@ -192,7 +194,7 @@ h1 {
@font-face {
font-family: MaHelvetica;
src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
url(MgOpenModernaBold.ttf);
url(MgOpenModernaBold.ttf);
font-weight: bold;
}
body {
Expand All @@ -207,7 +209,7 @@ h1 {
@font-face {
font-family: Arial, MaHelvetica;
src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
url(MgOpenModernaBold.ttf);
url(MgOpenModernaBold.ttf);
font-weight: bold;
}
}
Expand Down Expand Up @@ -245,13 +247,13 @@ result
@media print {
@font-face {
src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
url(MgOpenModernaBold.ttf);
url(MgOpenModernaBold.ttf);
}
}
@media print {
@font-face {
src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"),
url(MgOpenModernaBold.ttf);
url(MgOpenModernaBold.ttf);
}
}
```
Expand All @@ -273,9 +275,9 @@ result
src: url(/static/styles/libs/font-awesome/fonts/fontawesome-webfont.fdf491ce5ff5.woff)
}
@media print {
@font-face {
src: local("Helvetica Neue Bold"), local(HelveticaNeue-Bold), url(MgOpenModernaBold.ttf)
}
@font-face {
src: local("Helvetica Neue Bold"), local(HelveticaNeue-Bold), url(MgOpenModernaBold.ttf)
}
}
```

Expand Down

0 comments on commit 8494ec9

Please sign in to comment.