Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Blockbase: Remove code block CSS #4562

Merged
merged 1 commit into from
Sep 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions blockbase/assets/ponyfill.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion blockbase/rebuild-child-themes.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

declare -a ChildThemes=( "mayland-blocks" "seedlet-blocks" "quadrat" "skatepark" )
declare -a ChildThemes=( "mayland-blocks" "seedlet-blocks" "quadrat" "skatepark" "geologist" )

for child in ${ChildThemes[@]}; do
cd '../'${child}
Expand Down
4 changes: 0 additions & 4 deletions blockbase/sass/blocks/_code.scss

This file was deleted.

3 changes: 1 addition & 2 deletions blockbase/sass/ponyfill.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// - These styles replace key Gutenberg Block styles for fonts, colors, and
// spacing with CSS-variables overrides
@import "blocks/button";
@import "blocks/code";
@import "blocks/gallery";
@import "blocks/html";
@import "blocks/image";
Expand All @@ -29,4 +28,4 @@
@import "blocks/table";
@import "blocks/video";
@import "blocks/columns";
@import "post/meta";
@import "post/meta";
18 changes: 8 additions & 10 deletions blockbase/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,6 @@
"lineHeight": 2
}
},
"code": {
"typography": {
"fontFamily": "monospace"
}
},
"color": {
"foreground": "var(--wp--preset--color--foreground)",
"background": "var(--wp--preset--color--background)",
Expand Down Expand Up @@ -389,6 +384,12 @@
}
},
"core/code": {
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "2px"
},
"spacing": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)",
Expand All @@ -397,11 +398,8 @@
"bottom": "var(--wp--custom--margin--vertical)"
}
},
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "2px"
"typography": {
"fontFamily": "monospace"
}
},
"core/navigation": {
Expand Down
24 changes: 10 additions & 14 deletions geologist/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@
"lineHeight": 2
}
},
"code": {
"typography": {
"fontFamily": "monospace"
}
},
"color": {
"foreground": "var(--wp--preset--color--primary)",
"background": "var(--wp--preset--color--background)",
Expand Down Expand Up @@ -450,6 +445,12 @@
}
},
"core/code": {
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "0px"
},
"spacing": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)",
Expand All @@ -458,19 +459,14 @@
"bottom": "var(--wp--custom--margin--vertical)"
}
},
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "0px"
},
"color": {
"background": "var(--wp--custom--color--secondary)"
},
"typography": {
"fontFamily": "monospace",
"fontSize": "20px",
"fontWeight": "400",
"lineHeight": "1.6"
},
"color": {
"background": "var(--wp--custom--color--secondary)"
}
},
"core/navigation": {
Expand Down
18 changes: 8 additions & 10 deletions mayland-blocks/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,6 @@
"lineHeight": 2
}
},
"code": {
"typography": {
"fontFamily": "monospace"
}
},
"color": {
"foreground": "var(--wp--preset--color--foreground)",
"background": "var(--wp--preset--color--background)",
Expand Down Expand Up @@ -418,6 +413,12 @@
}
},
"core/code": {
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "2px"
},
"spacing": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)",
Expand All @@ -426,11 +427,8 @@
"bottom": "var(--wp--custom--margin--vertical)"
}
},
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "2px"
"typography": {
"fontFamily": "monospace"
}
},
"core/navigation": {
Expand Down
24 changes: 10 additions & 14 deletions quadrat/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,6 @@
"lineHeight": 2
}
},
"code": {
"typography": {
"fontFamily": "monospace"
}
},
"color": {
"foreground": "var(--wp--preset--color--primary)",
"background": "var(--wp--preset--color--background)",
Expand Down Expand Up @@ -445,6 +440,12 @@
}
},
"core/code": {
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "0px"
},
"spacing": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)",
Expand All @@ -453,19 +454,14 @@
"bottom": "var(--wp--custom--margin--vertical)"
}
},
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "0px"
},
"color": {
"background": "var(--wp--custom--color--secondary)"
},
"typography": {
"fontFamily": "monospace",
"fontSize": "20px",
"fontWeight": "400",
"lineHeight": "1.6"
},
"color": {
"background": "var(--wp--custom--color--secondary)"
}
},
"core/navigation": {
Expand Down
18 changes: 8 additions & 10 deletions seedlet-blocks/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@
"lineHeight": 2
}
},
"code": {
"typography": {
"fontFamily": "monospace"
}
},
"color": {
"foreground": "var(--wp--preset--color--foreground)",
"background": "var(--wp--preset--color--background)",
Expand Down Expand Up @@ -447,6 +442,12 @@
}
},
"core/code": {
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "2px"
},
"spacing": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)",
Expand All @@ -455,11 +456,8 @@
"bottom": "var(--wp--custom--margin--vertical)"
}
},
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "2px"
"typography": {
"fontFamily": "monospace"
}
},
"core/navigation": {
Expand Down
18 changes: 8 additions & 10 deletions skatepark/theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,6 @@
"lineHeight": 2
}
},
"code": {
"typography": {
"fontFamily": "monospace"
}
},
"color": {
"foreground": "var(--wp--preset--color--primary)",
"background": "var(--wp--preset--color--background)",
Expand Down Expand Up @@ -446,6 +441,12 @@
}
},
"core/code": {
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "2px"
},
"spacing": {
"padding": {
"left": "var(--wp--custom--margin--horizontal)",
Expand All @@ -454,11 +455,8 @@
"bottom": "var(--wp--custom--margin--vertical)"
}
},
"border": {
"color": "#CCCCCC",
"radius": "0px",
"style": "solid",
"width": "2px"
"typography": {
"fontFamily": "monospace"
}
},
"core/navigation": {
Expand Down