Skip to content

Commit 6562e5c

Browse files
committed
- Fixing and updating docs
- Adding Josephine docs - Changing images to WEBP format
1 parent 1b6c727 commit 6562e5c

File tree

223 files changed

+1098
-321
lines changed

Some content is hidden

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

223 files changed

+1098
-321
lines changed

0app/assets/css/style.css

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
--color_footer_border: var(--color_header_border);
3535
--color_brand: #fbce2f;
3636
--color_accent: #06c;
37+
--color_accent_text: #fff;
3738
--color_mark: rgba(0, 102, 204, 0.1);
3839
--color_button_background: #fbce2f;
3940
--color_button_text: #000;
@@ -191,10 +192,10 @@ map, .screen-reader-text {
191192
word-wrap: normal !important;
192193
}
193194

194-
.link-video, .list-questions, .list-topics, figure, .alert {
195+
.link-video, .list-questions, .list-topics, figure:not(.is-plain), .alert {
195196
isolation: isolate;
196197
}
197-
.link-video::before, .list-questions::before, .list-topics::before, figure::before, .alert::before {
198+
.link-video::before, .list-questions::before, .list-topics::before, figure:not(.is-plain)::before, .alert::before {
198199
content: "";
199200
position: absolute;
200201
inset: 0;
@@ -2208,7 +2209,7 @@ summary::after {
22082209
width: 1.5em;
22092210
height: 1.5em;
22102211
margin-top: -0.25em;
2211-
margin-right: 0.382rem;
2212+
margin-right: 0.5em;
22122213
vertical-align: middle;
22132214
}
22142215

@@ -2219,32 +2220,34 @@ figure {
22192220
margin-left: 0;
22202221
margin-right: 0;
22212222
text-align: center;
2222-
border: 1em solid transparent;
22232223
border-radius: var(--border_radius);
22242224
}
2225+
figure:not(.is-plain) {
2226+
border: 1em solid transparent;
2227+
}
22252228
@media (min-width: 880px) {
2226-
figure {
2229+
figure:not(.is-plain) {
22272230
border-width: 2em;
22282231
}
22292232
}
2230-
body figure::before {
2233+
body figure:not(.is-plain)::before {
22312234
left: -1em;
22322235
right: -1em;
22332236
top: -1em;
22342237
bottom: -1em;
22352238
}
22362239
@media (min-width: 880px) {
2237-
body figure::before {
2240+
body figure:not(.is-plain)::before {
22382241
left: -2em;
22392242
right: -2em;
22402243
top: -2em;
22412244
bottom: -2em;
22422245
}
22432246
}
2244-
.alert figure {
2247+
.alert figure:not(.is-plain) {
22452248
border-width: 1em;
22462249
}
2247-
.alert figure::before {
2250+
.alert figure:not(.is-plain)::before {
22482251
left: -1em;
22492252
right: -1em;
22502253
top: -1em;
@@ -2365,11 +2368,11 @@ h2 + .list-questions, h2 + .list-topics {
23652368
position: relative;
23662369
padding: 1em;
23672370
font-size: 0.9em;
2368-
background: var(--color_palette_blue);
2369-
color: #fff;
2371+
background: var(--color_accent, var(--color_palette_blue));
2372+
color: var(--color_accent_text, #fff);
23702373
border: 2px solid;
23712374
border-top-width: 0.618em;
2372-
border-color: var(--color_palette_blue);
2375+
border-color: var(--color_accent, var(--color_palette_blue));
23732376
border-radius: var(--border_radius);
23742377
-webkit-box-shadow: none;
23752378
box-shadow: none;

0app/assets/images/demo/01.png

-10.4 KB
Binary file not shown.

0app/assets/images/demo/02.png

-19.6 KB
Binary file not shown.

0app/assets/images/demo/03.png

-232 KB
Binary file not shown.

0app/assets/images/demo/04-tip.png

-25 KB
Binary file not shown.

0app/assets/images/demo/04.jpg

-110 KB
Binary file not shown.
Binary file not shown.
49.7 KB
Binary file not shown.
-45.1 KB
Binary file not shown.
35.7 KB
Binary file not shown.
-79.1 KB
Binary file not shown.
35.2 KB
Binary file not shown.
Binary file not shown.
34.9 KB
Binary file not shown.

0app/assets/images/faq/margin.webp

29.7 KB
Binary file not shown.

0app/assets/images/fse/editing.png

-38.4 KB
Binary file not shown.

0app/assets/images/fse/editor.jpg

-51.2 KB
Binary file not shown.
-43.5 KB
Binary file not shown.
6.96 KB
Binary file not shown.

0app/assets/images/fse/menu-pages.jpg

-42.7 KB
Binary file not shown.
7 KB
Binary file not shown.
-43.2 KB
Binary file not shown.
7.03 KB
Binary file not shown.
-43 KB
Binary file not shown.
7.1 KB
Binary file not shown.
-42 KB
Binary file not shown.
7 KB
Binary file not shown.
-86 KB
Binary file not shown.
-84.8 KB
Binary file not shown.
36.5 KB
Binary file not shown.
-37 KB
Binary file not shown.
34.9 KB
Binary file not shown.
-23.3 KB
Binary file not shown.
15.2 KB
Binary file not shown.
-27.4 KB
Binary file not shown.

0app/assets/images/fse/styles.jpg

-54.6 KB
Binary file not shown.

0app/assets/images/fse/styles.webp

10.1 KB
Binary file not shown.
-26.4 KB
Binary file not shown.
-13.5 KB
Binary file not shown.
-37.8 KB
Binary file not shown.

0app/assets/images/fse/templates.jpg

-72.7 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-21.4 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-631 KB
Binary file not shown.
-22.8 KB
Binary file not shown.
54.8 KB
Binary file not shown.

0app/assets/images/posts/excerpt.png

-15.9 KB
Binary file not shown.

0app/assets/images/posts/excerpt.webp

23.7 KB
Binary file not shown.
Binary file not shown.

0app/assets/sass/_custom-properties/_colors.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737

3838
--color_brand: #fbce2f;
3939
--color_accent: #06c;
40+
--color_accent_text: #fff;
4041
--color_mark: #{ rgba( #06c, .1 ) };
4142
--color_button_background: #fbce2f;
4243
--color_button_text: #000;

0app/assets/sass/_extend/__index.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
}
44

55
%shaded_background {
6+
// Do not use `color-mix()` here
7+
// as we adapt the background color in notification boxes.
68
isolation: isolate;
79

810
&::before {
@@ -14,5 +16,4 @@
1416
opacity: var(--pseudo_background_opacity);
1517
z-index: -1;
1618
}
17-
1819
}

0app/assets/sass/content/blocks/_icons.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
width: 1.5em;
66
height: 1.5em;
77
margin-top: -.25em;
8-
margin-right: $ratio_min + rem;
8+
margin-right: .5em;
99
vertical-align: middle;
1010
}

0app/assets/sass/content/blocks/_image.scss

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,44 @@
11
/* FILE: content/blocks/_image.scss */
22

33
figure {
4-
@extend %shaded_background;
54
position: relative;
65
margin-top: 0;
76
margin-left: 0;
87
margin-right: 0;
98
text-align: center;
10-
border: 1em solid transparent;
119
border-radius: var(--border_radius);
1210

13-
@include media( map_get( $breakpoint, $mobile_menu_breakpoint ) ) {
14-
border-width: 2em;
15-
}
16-
17-
body &::before {
18-
left: -1em;
19-
right: -1em;
20-
top: -1em;
21-
bottom: -1em;
11+
&:not(.is-plain) {
12+
@extend %shaded_background;
13+
border: 1em solid transparent;
2214

2315
@include media( map_get( $breakpoint, $mobile_menu_breakpoint ) ) {
24-
left: -2em;
25-
right: -2em;
26-
top: -2em;
27-
bottom: -2em;
16+
border-width: 2em;
2817
}
29-
}
30-
31-
.alert & {
32-
border-width: 1em;
3318

34-
&::before {
19+
body &::before {
3520
left: -1em;
3621
right: -1em;
3722
top: -1em;
3823
bottom: -1em;
24+
25+
@include media( map_get( $breakpoint, $mobile_menu_breakpoint ) ) {
26+
left: -2em;
27+
right: -2em;
28+
top: -2em;
29+
bottom: -2em;
30+
}
31+
}
32+
33+
.alert & {
34+
border-width: 1em;
35+
36+
&::before {
37+
left: -1em;
38+
right: -1em;
39+
top: -1em;
40+
bottom: -1em;
41+
}
3942
}
4043
}
4144

0app/assets/sass/content/blocks/_video.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
position: relative;
77
padding: 1em;
88
font-size: .9em;
9-
background: var(--color_palette_blue);
10-
color: #fff;
9+
background: var( --color_accent, var(--color_palette_blue) );
10+
color: var( --color_accent_text, #fff );
1111
border: 2px solid;
1212
border-top-width: .618em;
13-
border-color: var(--color_palette_blue);
13+
border-color: var( --color_accent, var(--color_palette_blue) );
1414
border-radius: var(--border_radius);
1515
box-shadow: none;
1616
transition: box-shadow .3s;

0app/includes/_vars.pug

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,8 @@ if config.imageNote && 'core' === config.imageNote
9090
- config.imageNote = '<svg class="svg-icon" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 256 256"><path fill="currentColor" d="M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m0 192a88 88 0 1 1 88-88a88.1 88.1 0 0 1-88 88m16-40a8 8 0 0 1-8 8a16 16 0 0 1-16-16v-40a8 8 0 0 1 0-16a16 16 0 0 1 16 16v40a8 8 0 0 1 8 8m-32-92a12 12 0 1 1 12 12a12 12 0 0 1-12-12"/></svg> Illustrative image. May not represent this actual theme.';
9191

9292
-
93+
// Image note is a message such as "Illustrative image. May not represent this actual theme.".
9394
var image_notes = {
94-
'core/demo/01.png' : '',
95-
'core/demo/02.png' : '',
96-
'core/fse/styles-book.png' : '',
97-
'core/fse/template-parts-all.png' : '',
98-
'core/fse/template-parts.png' : '',
99-
'core/fse/templates-all.png' : '',
100-
'core/pages/templates.png' : '',
101-
'core/posts/excerpt.png' : '',
102-
'core/sidebars/edit-template-part.png' : '',
10395
'https://easycaptures.com/fs/uploaded/1625/5144473367.png' : '',
10496
'https://easycaptures.com/fs/uploaded/1839/9200486017.png' : '',
10597
};

0app/includes/content/customizer/fse.pug

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
block customizer/fse
22
block customizer/fse/about
3-
p Even though this theme allows you to <a href="#site-editor">edit your site fully</a>, including theme templates, you can still use WordPress Customizer (#[+mark( 'nav', 'Appearance', 'Customize' )]) where you'll find additional advanced theme options such as <a href="#typography">harmonious typography</a>, or <a href="#custom-background">website background image setup</a>.
3+
p Use WordPress Customizer (#[+mark( 'nav', 'Appearance', 'Customize' )]) to find advanced theme options such as <a href="#typography">harmonious typography</a>, or <a href="#custom-background">website background image setup</a>.
44

55
block customizer/fse/site-editor
66
+sub_section( '"Styles" section in site editor' )
77

8-
p If you are looking for options to modify <em>colors</em> or <em>layout widths</em>, these can be found in <a href="#site-editor-styles">"Styles" section of full site editor</a>.
8+
p If you are looking for options to modify <em>colors</em> or <em>layout widths</em>, these can be found in <a href="#site-editor-styles">"Styles" section of Site Editor</a>.
99

1010
if true === config.compatibility.hybrid
1111
+danger( 'Make sure site editor is enabled', 'h4' )

0app/includes/content/demo/fse.pug

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,26 @@ block demo/fse
55
block demo/fse/page-patterns
66
+sub_section( 'Complete page patterns', 'page-block-patterns' )
77

8-
+mark( 'nav', '+', 'Patterns', 'select "Pages" category', 'choose pattern' ).is-path-featured
8+
+mark( 'nav', '+', 'Patterns', 'select "Pages" category', 'choose a pattern' ).is-path-featured
99

1010
+video( 'https://youtu.be/hb0lxVNL6Uo?t=101' ) Using full page block patterns
1111

1212
p Use block patterns from dedicated "<strong>Pages</strong>" category to create whole page content easily at once:
1313

1414
ol
15-
li
16-
p On page/post edit screen (in <a href="#editor">block editor</a>) click the <em>block inserter</em> button (the #[+mark( 'btn', '+' )] button in the upper left corner of editor).
17-
+image( 'core/demo/01.png' )
18-
19-
li
20-
p Switch to "<strong>Patterns</strong>" tab. <br>(<em>Optional</em>: click the #[+mark( 'btn', 'Explore all patterns' )] button at the bottom of the list of pattern categories to open block pattern inserter pop-up window.)
21-
+image( 'core/demo/02.png' )
22-
23-
li
24-
p Choose "<strong>Pages</strong>" category and select a content you want to insert into your page/post content.
25-
+image( 'core/demo/03.png' )
26-
27-
li
28-
p Edit the inserted content to your needs, and set up recommended <a href="#page-templates">page template</a>.
29-
+image( 'core/demo/04.jpg' )
30-
31-
+tip( 'Set up recommended template', 'h4' )
32-
p Each page content pattern is suited for a specific page template.
33-
p Check the pattern description for information what <a href="#page-templates">page template to set</a>. If no page template info is provided, use a default template.
34-
+image( 'core/demo/04-tip.png' )
15+
li On page/post edit screen (in <a href="#editor">block editor</a>) click the <em>block inserter</em> button (the #[+mark( 'btn', '+' )] button in the upper left corner of editor). <br><small>(Point <strong>#1</strong> in the screenshot below.)</small>
16+
17+
li Switch to "<strong>Patterns</strong>" tab. <br>(<em>Optional</em>: click the #[+mark( 'btn', 'Explore all patterns' )] button at the bottom of the list of pattern categories to open block pattern inserter pop-up window.) <br><small>(Point <strong>#2</strong> and <strong>#3</strong> in the screenshot below.)</small>
18+
19+
li Choose "<strong>Pages</strong>" category and select a design you want to insert into your page/post content. <br><small>(Point <strong>#4</strong> and <strong>#5</strong> in the screenshot below.)</small>
20+
21+
li Edit the inserted content to your needs (and set up recommended <a href="#page-templates">template</a>).
22+
23+
block demo/fse/page-patterns/image
24+
+image( 'core/demo/patterns-pages.webp' )
25+
26+
+tip( 'Set up recommended template', 'h4' )
27+
p Each page content pattern is suited for a specific template.
28+
p Check the pattern description/title for the information about suitable <a href="#page-templates">template</a>. If no template info is provided, use a default template.
29+
block demo/fse/page-patterns/tip/image
30+
+image( 'core/demo/patterns-pages-template.webp' )

0app/includes/content/editor/_content.pug

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ if true === config.compatibility.block_patterns
33
include patterns.pug
44
if true === config.compatibility.block_styles
55
include styles.pug
6+
if true === config.compatibility.block_variations
7+
include variations.pug
68
else
79
include abs.pug

0app/includes/content/editor/abs.pug

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
+sub_section( 'Additional Block Styles plugin' )
2-
p You can further change block appearance with suplemental block styles provided by <a href="https://wordpress.org/plugins/additional-block-styles/"><strong>Additional Block Styles</strong> plugin</a>. Simply choose your preferred style from block options and you are done.
1+
block editor/abs
2+
+sub_section( 'Additional Block Styles plugin' )
3+
p You can further change block appearance with suplemental block styles provided by <a href="https://wordpress.org/plugins/additional-block-styles/"><strong>Additional Block Styles</strong> plugin</a>. Simply choose your preferred style from block options and you are done.
34

4-
+image( 'core/editor/apply-block-style.jpg', 'Applying a block style' )
5+
block editor/abs/image
6+
+image( 'core/editor/apply-block-style.webp', 'Applying a block style' )
Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,39 @@
1-
+sub_section( 'Block Patterns', 'block-patterns' )
1+
block editor/patterns
2+
+sub_section( 'Block Patterns', 'block-patterns' )
23

3-
+mark( 'nav', '+', 'Patterns', 'select category', 'choose pattern' ).is-path-featured
4+
+mark( 'nav', '+', 'Patterns', 'select category', 'choose pattern' ).is-path-featured
45

5-
+video( 'https://youtu.be/hb0lxVNL6Uo?t=101' ) Using block patterns
6+
+video( 'https://youtu.be/hb0lxVNL6Uo?t=101' ) Using block patterns
67

7-
p This theme contains a library of predesigned block patterns to help you <strong>create a custom website with ease and in no time</strong>.
8+
p This theme contains a library of predesigned block patterns to help you <strong>create a custom website with ease and in no time</strong>.
89

9-
h4 Using block patterns
10+
h4 Using block patterns
1011

11-
+image( 'core/editor/add-pattern.png', 'Adding a block pattern into page/post content' )
12+
block editor/patterns/image
13+
+image( 'core/editor/add-pattern.webp', 'Adding a block pattern into page/post content' )
1214

13-
ol
14-
li On page/post edit screen (in block editor) click the <em>block inserter</em> button (the #[+mark( 'btn', '+' )] button in the upper left corner of editor).
15+
ol
16+
li On page/post edit screen (in block editor) click the <em>block inserter</em> button (the #[+mark( 'btn', '+' )] button in the upper left corner of editor).
1517

16-
li Switch to "<strong>Patterns</strong>" tab. <br>(<em>Optional</em>: click the #[+mark( 'btn', 'Explore all patterns' )] button at the bottom of the list of pattern categories to open block pattern inserter pop-up window.)
18+
li Switch to "<strong>Patterns</strong>" tab. <br>(<em>Optional</em>: click the #[+mark( 'btn', 'Explore all patterns' )] button at the bottom of the list of pattern categories to open block pattern inserter pop-up window.)
1719

18-
li Choose a pattern category.
20+
li Choose a pattern category.
1921

20-
li Select a pattern you want to insert into your page/post content.
22+
li Select a pattern you want to insert into your page/post content.
2123

22-
li Edit the inserted pattern to your needs.
24+
li Edit the inserted pattern to your needs.
2325

24-
if true === config.compatibility.fse
25-
+info( 'Managing patterns', 'h4' )
26-
p You can manage all patterns and create custom ones in <a href="#site-editor">site editor</a> in #[+mark( 'nav', 'Appearance', 'Editor', 'Patterns' )].
26+
if true === config.compatibility.fse
27+
+info( 'Managing patterns', 'h4' )
28+
p You can manage all patterns and create custom ones in <a href="#site-editor">site editor</a> in #[+mark( 'nav', 'Appearance', 'Editor', 'Patterns' )].
2729

28-
+tip( 'Full page patterns', 'h4' )
29-
p Use block patterns from dedicated "<strong>Pages</strong>" category to <a href="#page-block-patterns">create whole page content</a> easily at once.
30+
+tip( 'Full page patterns', 'h4' )
31+
p Use block patterns from dedicated "<strong>Pages</strong>" category to <a href="#page-block-patterns">create whole page content</a> easily at once.
3032

31-
+tip( 'Tutorials', 'h4' )
32-
p If you are new to block patterns you can check out <a href="https://learn.wordpress.org/workshops/?search=pattern">tutorials at Learn WordPress website</a> for useful info.
33-
p Additional tutorial can be found at <a href="https://wordpress.com/support/block-pattern/">WordPress.com website</a>.
33+
+tip( 'Tutorials', 'h4' )
34+
p If you are new to block patterns you can check out <a href="https://learn.wordpress.org/workshops/?search=pattern">tutorials at Learn WordPress website</a> for useful info.
35+
p Additional tutorial can be found at <a href="https://wordpress.com/support/block-pattern/">WordPress.com website</a>.
3436

35-
+tip( 'More patterns', 'h4' )
36-
p You can get more block patterns at official <a href="https://wordpress.org/patterns/">WordPress pattern directory</a>. (Get <a href="https://wordpress.org/patterns/author/webmandesign/">free patterns I provided for you</a>.)
37-
+video( 'https://youtu.be/UlTC6yKzOJM' ) Insert WordPress directory patterns to your website
37+
+tip( 'More patterns', 'h4' )
38+
p You can get more block patterns at official <a href="https://wordpress.org/patterns/">WordPress pattern directory</a>. (Get <a href="https://wordpress.org/patterns/author/webmandesign/">free patterns I provided for you</a>.)
39+
+video( 'https://youtu.be/UlTC6yKzOJM' ) Insert WordPress directory patterns to your website
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
+sub_section( 'Block Styles', 'block-styles' )
2-
p With <strong>#{config.name}</strong> you can change block appearance with ease. Simply choose a preferred predefined style from block settings and you are done.
1+
block editor/styles
2+
+sub_section( 'Block Styles', 'block-styles' )
3+
p With <strong>#{config.name}</strong> you can change block appearance with ease. Simply choose a preferred predefined style from block settings and you are done.
34

4-
h4 Applying block styles
5+
h4 Applying block styles
56

6-
+mark( 'nav', 'select block', 'styles tab', 'select style' ).is-path-featured
7+
+mark( 'nav', 'select block', 'styles tab', 'select style' ).is-path-featured
78

8-
+image( 'core/editor/apply-block-style.jpg', 'Applying a block style' )
9+
block editor/styles/image
10+
+image( 'core/editor/apply-block-style.webp', 'Applying a block style' )
911

10-
ol
11-
li Click the block in page/post content.
12+
ol
13+
li Click the block in page/post content.
1214

13-
li If block settings sidebar is not displayed, click the <em>settings</em> button in the upper right corner of the editor.
15+
li If block settings sidebar is not displayed, click the <em>settings</em> button in the upper right corner of the editor.
1416

15-
li Make sure you are editing the block settings (choose "<strong>Block</strong>" tab).
17+
li Make sure you are editing the block settings (choose "<strong>Block</strong>" tab).
1618

17-
li In block settings click the <em>styles</em> tab.
19+
li In block settings click the <em>styles</em> tab.
1820

19-
li Choose a block style you want to apply on the selected block. (If there is no list of styles available, the selected block does not support any block style.)
21+
li Choose a block style you want to apply on the selected block. (If there is no list of styles available, the selected block does not support any block style.)
2022

21-
+tip( 'Additional block styles', 'h4' )
22-
p Use free <a href="https://wordpress.org/plugins/additional-block-styles/"><strong>Abs – Additional block styles</strong> plugin</a> for additional creative block styles.
23+
+tip( 'Additional block styles', 'h4' )
24+
p Use free <a href="https://wordpress.org/plugins/additional-block-styles/"><strong>Abs – Additional block styles</strong> plugin</a> for additional creative block styles.

0 commit comments

Comments
 (0)