@master/css 1.35.11 → 1.35.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
##### On this page
|
|
32
32
|
|
|
33
|
+
- [Core Concept](#core-concept)
|
|
33
34
|
- [Quick Start](#quick-start)
|
|
34
35
|
- [1. Download](#1-download)
|
|
35
36
|
- [2. Import](#2-import)
|
|
@@ -38,6 +39,34 @@
|
|
|
38
39
|
- [Inspiration](#inspiration)
|
|
39
40
|
- [Related](#related)
|
|
40
41
|
|
|
42
|
+
# Core Concept
|
|
43
|
+
This is your current/traditional code:
|
|
44
|
+
```html
|
|
45
|
+
<style>
|
|
46
|
+
.home-section {
|
|
47
|
+
background-color: blue;
|
|
48
|
+
padding: 2rem;
|
|
49
|
+
text-align: center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.home-section:hover {
|
|
53
|
+
background-color: red;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (min-width: 1024px) {
|
|
57
|
+
.home-section {
|
|
58
|
+
padding: 3rem;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
</style>
|
|
62
|
+
|
|
63
|
+
<section class="home-section">...</section>
|
|
64
|
+
```
|
|
65
|
+
Now, writing CSS in a whole new language makes UI development easier. ↓ 86% code
|
|
66
|
+
```html
|
|
67
|
+
<section class="bg:blue bg:red:hover p:32 p:48@md text:center">...</section>
|
|
68
|
+
```
|
|
69
|
+
|
|
41
70
|
# Quick Start
|
|
42
71
|
This is just a quick start guide, the official [documentation](https://docs.master.co/styles/setup) here.
|
|
43
72
|
|
|
@@ -61,20 +90,20 @@ import '@master/css'
|
|
|
61
90
|
Hello World
|
|
62
91
|
</h1>
|
|
63
92
|
```
|
|
64
|
-
Next, learn the
|
|
93
|
+
Next, learn the structured [Syntax - Master CSS](https://docs.master.co/styles/syntax)!
|
|
65
94
|
|
|
66
95
|
# Original Design
|
|
67
|
-
- __Master CSS Syntax__
|
|
68
|
-
- __Class Highlight__
|
|
69
|
-
- __Hybrid Rendering__
|
|
70
|
-
- __Group Styles__
|
|
71
|
-
- __Reactive Styles__
|
|
72
|
-
- __Arbitrary selectors and media queries__
|
|
96
|
+
- __Master CSS Syntax__ - As a whole new language, Master created our own unique syntax.
|
|
97
|
+
- __Class Highlight__ - Master is the first language to highlight class names in markup.
|
|
98
|
+
- __Hybrid Rendering__ - Apply both JIT and AOT to CSS compilation. Similar to [Hydration](https://en.wikipedia.org/wiki/Hydration_(web_development)) technology.
|
|
99
|
+
- __Group Styles__ - The one of groundbreaking features that allows you to extract the same selectors and media query styles and make it short. Inspired by [SerKo](https://github.com/serkodev).
|
|
100
|
+
- __Reactive Styles__ - The one of groundbreaking features that allows you style an element based on parent/sibling state.
|
|
101
|
+
- __Arbitrary selectors and media queries__ - Apply arbitrary selectors and media queries directly in class="", which is the most powerful and comprehensive language on the market.
|
|
73
102
|
|
|
74
103
|
# Inspiration
|
|
75
104
|
Some of our core concepts and designs are inspired by these giants.
|
|
76
|
-
- __Language__
|
|
77
|
-
- __Virtual CSS__
|
|
105
|
+
- __Language__ - Master is a language, but it was originally inspired by [ACSS](https://acss.io/)'s concept of atomic classes.
|
|
106
|
+
- __Virtual CSS__ - Difference algorithms, virtual models, etc. are inspired by [Virtual DOM](https://reactjs.org/docs/faq-internals.html).
|
|
78
107
|
|
|
79
108
|
# Related
|
|
80
109
|
- [Master CSS Language Service](https://marketplace.visualstudio.com/items?itemName=masterco.master-css-language-service) - A Visual Studio Code extension for Master CSS. Provides code-completion and syntax highlighting.
|
package/package.json
CHANGED