Skip to content

Commit 5592e6d

Browse files
committed
v3.1.3
1 parent e09715a commit 5592e6d

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

README.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,32 @@
1-
# S2
2-
S2
1+
# S2 Attributes
2+
3+
**S2 Attributes** is a lightweight library of pre-defined attributes to help you
4+
work faster. It was originally developed alongside the [S2 Framework for Webflow](https://s2-framework.webflow.io).
5+
6+
This repo removes all Webflow-specific attributes so it can be used on any
7+
website.
8+
9+
The best way to understand attributes is to read the CSS directly, visit:
10+
`s2attr.css`.
11+
12+
## Usage
13+
14+
### CDN
15+
16+
Include the stylesheet in your HTML:
17+
18+
```html
19+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/SPACESODA/S2@3.1.3/s2attr.min.css" />
20+
```
21+
22+
### Local
23+
24+
Use the local file in this repo:
25+
26+
```html
27+
<link rel="stylesheet" href="s2attr.css" />
28+
```
29+
30+
## License
31+
32+
CC0 1.0 Universal. See `LICENSE`.

s2attr.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
/* -- S2 Attributes -- */
33
/* ------------------- */
44

5+
/* v3.1.3 */
6+
57
/* basics */
6-
[hide], .u-hide, [hidden="true"] { display: none; }
8+
[hide], [hidden="true"] { display: none; }
79
[disabled] { filter: saturate(0%); cursor: default; pointer-events: none; }
810
[user-select="none"] { -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
911
[events="none"] { -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; pointer-events: none; touch-action: none; }

0 commit comments

Comments
 (0)