You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/docs/php-docs/pattern-managing-assets.md
+5-10Lines changed: 5 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,18 @@
1
1
---
2
2
title: Managing Pattern Assets
3
3
tags:
4
-
- docs
4
+
- docs
5
5
---
6
6
7
-
8
-
9
7
Assets for patterns - including JavaScript, CSS, and images - should be stored and edited in the `./source/` directory. Pattern Lab will move these assets to the `./public/` directory for you when you generate your site or when you watch the `./source/` directory for changes. **You can name and organize your assets however you like.** If you would like to use `./source/stylesheets/` to store your styles instead of `./source/css/` you can do that. There is nothing to configure. The structure will be maintained when they're moved to the `./public/` directory.
10
8
11
9
## Ignoring and Not Moving Assets Based on File Extension
12
10
13
11
By default, Pattern Lab will not move assets with the following file extensions:
14
12
15
-
*`.less`
16
-
*`.scss`
17
-
*`.DS_Store`
13
+
-`.less`
14
+
-`.scss`
15
+
-`.DS_Store`
18
16
19
17
To ignore more file extensions edit the `ie` configuration option in `./config/config.yml`. For example, to ignore `*.png` files your `ie` configuration option would look like:
20
18
@@ -28,7 +26,7 @@ To ignore more file extensions edit the `ie` configuration option in `./config/c
28
26
29
27
By default, the PHP version of Pattern Lab will ignore **all** assets in directories that exactly match:
30
28
31
-
*`scss`
29
+
-`scss`
32
30
33
31
To ignore more directories just edit the `id` configuration option in `./config/config.yml`. For example, to ignore directories named `test/` your `id` configuration option would look like:
34
32
@@ -41,6 +39,3 @@ To ignore more directories just edit the `id` configuration option in `./config/
41
39
## Adding Assets to the Pattern Header & Footer
42
40
43
41
Static assets like Javascript and CSS **are not** added automagically to your patterns. You need to add them manually to the [shared pattern header and footer](/docs/pattern-header-footer.html).
Copy file name to clipboardExpand all lines: packages/docs/php-docs/pattern-states.md
+4-9Lines changed: 4 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,20 +1,18 @@
1
1
---
2
2
title: Using Pattern States
3
3
tags:
4
-
- docs
4
+
- docs
5
5
---
6
6
7
-
8
-
9
7
Pattern states provide your team and client a simple visual of the current state of patterns in Pattern Lab. Pattern states can track progress of a pattern from development, through client review, to completion or they can be used to give certain patterns specific classes. It's important to note that the state of a pattern can be influenced by its pattern partials.
10
8
11
9
## The Default Pattern States
12
10
13
11
Pattern Lab comes with the following default pattern states:
14
12
15
-
***inprogress**: pattern is in development or being worked upon. a red dot.
16
-
***inreview**: pattern is ready for a client to look at and comment upon. a yellow dot.
17
-
***complete**: pattern is ready to be moved to production. a green dot.
13
+
-**inprogress**: pattern is in development or being worked upon. a red dot.
14
+
-**inreview**: pattern is ready for a client to look at and comment upon. a yellow dot.
15
+
-**complete**: pattern is ready to be moved to production. a green dot.
18
16
19
17
Any pattern that includes a pattern partial that has a lower pattern state will inherit that state. For example, a pattern with the state of `inreview` that includes a pattern partial with the state of `inprogress` will have its state overridden and set to `inprogress`. It will not change to `inreview` until the pattern partial has a state of `inreview` or `complete`.
20
18
@@ -45,6 +43,3 @@ You can use the following as your CSS template for new pattern states:
45
43
```
46
44
47
45
Then add `@newpatternstate` to your patterns to have the new look show up. If you want to add it to the cascade of the default patterns you can modify `./config/config.yml`. Simply add your new pattern state to the `patternStates` list.
Copy file name to clipboardExpand all lines: packages/docs/src/docs/a-post-with-code-samples.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@ tags:
4
4
- demo-content
5
5
- code
6
6
- blog
7
+
eleventyNavigation:
8
+
key: DOCS DOCS DOCS
9
+
order: 300
7
10
---
8
11
9
12
The best way to demo a code post is to display a real life post, so check out this one from [andy-bell.design](https://andy-bell.design/wrote/creating-a-full-bleed-css-utility/) about a full bleed CSS utility.
@@ -22,9 +25,9 @@ It’s small, but hella mighty:
22
25
23
26
```css
24
27
.full-bleed {
25
-
width: 100vw;
26
-
margin-left: 50%;
27
-
transform: translateX(-50%);
28
+
width: 100vw;
29
+
margin-left: 50%;
30
+
transform: translateX(-50%);
28
31
}
29
32
```
30
33
@@ -43,9 +46,9 @@ The `.full-bleed` utility gives those elements prominence and _importantly_ keep
Copy file name to clipboardExpand all lines: packages/docs/src/docs/advanced-auto-regenerate.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,10 @@ title: Watching for Changes and Auto Regenerating Patterns
3
3
tags:
4
4
- docs
5
5
category: advanced
6
+
eleventyNavigation:
7
+
key: Watching for Changes and Auto Regenerating Patterns
8
+
parent: advanced
9
+
order: 300
6
10
---
7
11
8
12
Pattern Lab has the ability to watch for changes to patterns and frontend assets. When these files change, it will automatically rebuild the entire Pattern Lab website. You simply make your changes, save the file, and Pattern Lab will take care of the rest.
@@ -38,5 +42,3 @@ By default, Pattern Lab monitors the following files:
38
42
- all of the Javascript files under `source/js/`
39
43
40
44
The watch configuration is found within the Gruntfile or Gulpfile at the root of the project.
0 commit comments