Skip to content

Commit bb9b0b0

Browse files
author
Ahmad Awais
committed
👌 IMPROVE: CSS Width for Gutenberg Theme
1 parent 3078a02 commit bb9b0b0

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

‎packages/cgb-scripts/template/src/block/editor.scss‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66
*/
77

88
.wp-block-cgb-block-<% blockName % > {
9-
color: $black;
10-
background: $green;
11-
border: 0.2rem solid $black;
12-
padding: 2rem;
9+
background: $green;
10+
border: 0.2rem solid $black;
11+
color: $black;
12+
margin: 0 auto;
13+
max-width: 740px;
14+
padding: 2rem;
1315
}

‎packages/cgb-scripts/template/src/block/style.scss‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
*/
66

77
.wp-block-cgb-block-<% blockName % > {
8-
color: $black;
9-
background: $red;
10-
border: 0.2rem solid $black;
11-
padding: 2rem;
8+
background: $red;
9+
border: 0.2rem solid $black;
10+
color: $black;
11+
margin: 0 auto;
12+
max-width: 740px;
13+
padding: 2rem;
1214
}

0 commit comments

Comments
 (0)