File tree Expand file tree Collapse file tree 2 files changed +35
-3
lines changed
Expand file tree Collapse file tree 2 files changed +35
-3
lines changed Original file line number Diff line number Diff line change 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 ` .
Original file line number Diff line number Diff line change 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; }
You can’t perform that action at this time.
0 commit comments