Skip to content

Commit

Permalink
v1.2.0 (#1)
Browse files Browse the repository at this point in the history
* Add classes to change the `font-style` property. Add more `font-family` classes
  • Loading branch information
ivteplo authored Sep 8, 2024
1 parent bacd594 commit 90d3e6f
Show file tree
Hide file tree
Showing 12 changed files with 219 additions and 174 deletions.
3 changes: 1 addition & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
root = true

[*]
indent_style = space
indent_size = 2
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"semi": false
"semi": false,
"useTabs": true
}
67 changes: 44 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,47 @@ yarn add @ivteplo/utilities.css
### Via CDN

Add this piece of code into the `<head>` tag in your HTML file:

```html
<link rel="stylesheet" href="https://unpkg.com/@ivteplo/utilities.css/build/main.css">
<link
rel="stylesheet"
href="https://unpkg.com/@ivteplo/utilities.css/build/main.css"
/>
```

Or, if you want to use the minified version:

```html
<link rel="stylesheet" href="https://unpkg.com/@ivteplo/utilities.css/build/main.min.css">
<link
rel="stylesheet"
href="https://unpkg.com/@ivteplo/utilities.css/build/main.min.css"
/>
```

### Import from JavaScript

This requires a bundler that supports importing CSS:

```javascript
import "@ivteplo/utilities.css/build/main.css"
```

Or minified version:

```javascript
import "@ivteplo/utilities.css/build/main.min.css"
```

### Import from CSS

Using bundler:

```css
@import "@ivteplo/utilities.css";
```

Using CDN:

```css
@import "https://unpkg.com/@ivteplo/utilities.css/build/main.min.css";
```
Expand All @@ -52,23 +64,23 @@ Using CDN:

### Flexbox

- `.row` - flexbox container with horizontal direction
- `.reversed-order` - reverse the order of items
- `.wrap` - wrap the items that overflow the horizontal axis to a new line
- `.reversed-wrap` - the same as `.wrap`, but in reverse order
- `.no-wrap` - disable wrapping of children
- `.items-start`, `.items-center`, `.items-end`, `.items-stretch`, `.items-baseline` - vertical alignment of children
- `.content-start`, `.content-center`, `.content-end`, `.content-stretch`, `.content-baseline` - vertical alignment of children if there some children have been wrapped to a new row
- `.justify-start`, `.justify-center`, `.justify-end`, `.justify-stretch`, `.justify-baseline` - horizontal alignment of children
- `.column` - flexbox container with vertical direction
- `.reversed-order` - reverse the order of items
- `.wrap` - wrap the items that overflow the vertical axis to a new column
- `.reversed-wrap` - the same as `.wrap`, but in reverse order
- `.no-wrap` - disable wrapping of children
- `.items-start`, `.items-center`, `.items-end`, `.items-stretch`, `.items-baseline` - horizontal alignment of children
- `.content-start`, `.content-center`, `.content-end`, `.content-stretch`, `.content-baseline` - horizontal alignment of children if there some children have been wrapped to a new column
- `.justify-start`, `.justify-center`, `.justify-end`, `.justify-stretch`, `.justify-baseline` - vertical alignment of children
- `.fill` - fill the parent, applies to a child of a flexbox container
- `.row` flexbox container with horizontal direction
- `.reversed-order` reverse the order of items
- `.wrap` wrap the items that overflow the horizontal axis to a new line
- `.reversed-wrap` the same as `.wrap`, but in reverse order
- `.no-wrap` disable wrapping of children
- `.items-start`, `.items-center`, `.items-end`, `.items-stretch`, `.items-baseline` vertical alignment of children
- `.content-start`, `.content-center`, `.content-end`, `.content-stretch`, `.content-baseline` vertical alignment of children if there some children have been wrapped to a new row
- `.justify-start`, `.justify-center`, `.justify-end`, `.justify-stretch`, `.justify-baseline` horizontal alignment of children
- `.column` flexbox container with vertical direction
- `.reversed-order` reverse the order of items
- `.wrap` wrap the items that overflow the vertical axis to a new column
- `.reversed-wrap` the same as `.wrap`, but in reverse order
- `.no-wrap` disable wrapping of children
- `.items-start`, `.items-center`, `.items-end`, `.items-stretch`, `.items-baseline` horizontal alignment of children
- `.content-start`, `.content-center`, `.content-end`, `.content-stretch`, `.content-baseline` horizontal alignment of children if there some children have been wrapped to a new column
- `.justify-start`, `.justify-center`, `.justify-end`, `.justify-stretch`, `.justify-baseline` vertical alignment of children
- `.fill` fill the parent, applies to a child of a flexbox container

### Fonts

Expand All @@ -82,8 +94,15 @@ Using CDN:
- `.font-bold` (700)
- `.font-extra-bold` (800)
- `.font-black` (900)
- Font styles
- `.font-normal` — normal style
- `.font-italic` — italic font
- `.font-oblique` — oblique font
- Font families
- `.font-system` - default system font
- `.font-system` — default system font
- `.font-monospace` — cross-platform monospace font
- `.font-serif` — cross-platform serif font
- `.font-sans-serif` — cross-platform sans-serif font

### Text

Expand All @@ -96,11 +115,13 @@ Using CDN:
### Miscellaneous

Selection of text and other objects:
- `.selectable` - enable selection
- `.not-selectable` - disable selection

- `.selectable` — enable selection
- `.not-selectable` — disable selection

Mouse cursor:
- `.cursor-pointer` - show pointer cursor on hover

- `.cursor-pointer` — show pointer cursor on hover

## Development

Expand Down
Loading

0 comments on commit 90d3e6f

Please sign in to comment.