Skip to content

Commit b5ad979

Browse files
committedApr 20, 2018
feat: Added css-blocks.com website package and custom docs theme.
1 parent 622936e commit b5ad979

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+18353
-331
lines changed
 

Diff for: ‎README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ CSS Blocks is under active development and there are a number of features that h
7777
| **Selectors** ||
7878
|| `:scope` | Scope selector for component root. |
7979
|| `.class` | Class selectors for component sub-elements. |
80-
|| `.class[state\|name]` | State that is applied to scope and class selectors on state existence. |
81-
|| `.class[state\|name="value"]` | Mutually exclusive sub-states for scope and class selectors to be applied when a sub-state value matches. |
82-
|| `[state\|name=value]` | Bare state (not associated with an Originating Element) and optional substate selectors for targeting all elements in the Block that possess the state an/or sub-state. |
83-
| 🖌 | `.class[state\|name default]` | Default state value to be applied when there is no other match. |
80+
|| <code>.class[state&#124;name]</code> | State that is applied to scope and class selectors on state existence. |
81+
|| <code>.class[state&#124;name="value"]</code> | Mutually exclusive sub-states for scope and class selectors to be applied when a sub-state value matches. |
82+
|| <code>[state&#124;name=value]</code> | Bare state (not associated with an Originating Element) and optional substate selectors for targeting all elements in the Block that possess the state an/or sub-state. |
83+
| 🖌 | <code>.class[state&#124;name default]</code> | Default state value to be applied when there is no other match. |
8484
| **At Rules** ||
8585
|| `@block-reference local-name from "./file/path.css"` | Reference another Block using a local name. |
8686
|| `@block-debug block-name to channel` | Debug call that will print a block interface to a "channel": `comment`, `stderr`, or `stdout`. |
@@ -402,11 +402,11 @@ All the following syntaxes are legal to select any given stylable on a reference
402402
|Stylable|Syntax|
403403
|:--|:--|
404404
|Scope|`block`|
405-
|Scope State|`block[state\|name]`|
406-
|Scope Sub-State|`block[state\|name=value]`|
405+
|Scope State|<code>block[state&#124;name]</code>|
406+
|Scope Sub-State|<code>block[state&#124;name=value]</code>|
407407
|Class|`block.class`|
408-
|Scope State|`block.class[state\|name]`|
409-
|Scope Sub-State|`block.class[state\|name=value]`|
408+
|Scope State|<code>block.class[state&#124;name]</code>|
409+
|Scope Sub-State|<code>block.class[state&#124;name=value]</code>|
410410

411411
> 🔮 **Future Feature: Block Path Wildcards**
412412
>
@@ -425,7 +425,7 @@ For Glimmer, using multiple blocks in a single template will look something like
425425
transition: box-shadow .28s;
426426
}
427427
:scope:hover {
428-
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2)
428+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2)
429429
}
430430
.button {
431431
background-color: rgba(255, 255, 255, .5);
@@ -511,7 +511,7 @@ Here, we tell css-blocks to use the `color` value from `my-class` instead of `ot
511511
```css
512512
.my-class {
513513
color: resolve("other.selector");
514-
color: red;
514+
color: red;
515515
}
516516
```
517517

@@ -522,7 +522,7 @@ Here, we tell css-blocks to use the `color` value from `other.selector` instead
522522

523523
```css
524524
.my-class {
525-
color: red;
525+
color: red;
526526
color: resolve("other.selector");
527527
}
528528
```
@@ -533,8 +533,8 @@ Here, we tell css-blocks to use the `color` value from `other.selector` instead
533533
534534
```css
535535
.my-class {
536-
color: red;
537-
background: blue;
536+
color: red;
537+
background: blue;
538538

539539
/* Yields all conflicts to `other.selector` */
540540
all: resolve("other.selector");
@@ -664,6 +664,6 @@ app[state|is-saving] .signout {
664664

665665
/* Animate the logo when app is loading data */
666666
app[state|is-loading] .logo {
667-
animation-name: bounce;
667+
animation-name: bounce;
668668
}
669669
```

Diff for: ‎lerna.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
22
"version": "0.17.0",
3-
"lerna": "2.5.1",
43
"packages": [
5-
"packages/*"
4+
"packages/@css-blocks/*"
65
],
76
"npmClient": "yarn",
87
"useWorkspaces": true

0 commit comments

Comments
 (0)
Please sign in to comment.