Skip to content

Commit

Permalink
Merge pull request #1129 from vektor-inc/change/css-l4-unit
Browse files Browse the repository at this point in the history
Allow using CSS level 4 viewport-relative units
  • Loading branch information
kurudrive authored Apr 1, 2024
2 parents d287b8a + 1ba7455 commit c22897a
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 5 deletions.
30 changes: 29 additions & 1 deletion _g2/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,35 @@ function lightning_theme_setup() {
// Block Editor line height @since WordPress 5.5.
add_theme_support( 'custom-line-height' );
// Block Editor custom unit @since WordPress 5.5.
add_theme_support( 'custom-units' );
add_theme_support(
'custom-units',
'px',
'%',
'vw',
'vh',
'em',
'rem',
'svw',
'lvw',
'dvw',
'svh',
'lvh',
'dvh',
'svi',
'lvi',
'dvi',
'svb',
'lvb',
'dvb',
'vmin',
'svmin',
'lvmin',
'dvmin',
'vmax',
'svmax',
'lvmax',
'dvmax'
);
// Block Editor custom unit @since WordPress 5.8.
add_theme_support( 'custom-spacing' );

Expand Down
30 changes: 29 additions & 1 deletion _g3/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,35 @@ function lightning_theme_setup() {
// Block Editor line height @since WordPress 5.5.
add_theme_support( 'custom-line-height' );
// Block Editor custom unit @since WordPress 5.5.
add_theme_support( 'custom-units' );
add_theme_support(
'custom-units',
'px',
'%',
'vw',
'vh',
'em',
'rem',
'svw',
'lvw',
'dvw',
'svh',
'lvh',
'dvh',
'svi',
'lvi',
'dvi',
'svb',
'lvb',
'dvb',
'vmin',
'svmin',
'lvmin',
'dvmin',
'vmax',
'svmax',
'lvmax',
'dvmax'
);
// Block Editor custom unit @since WordPress 5.8.
add_theme_support( 'custom-spacing' );

Expand Down
26 changes: 23 additions & 3 deletions _theme.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,31 @@
],
"units": [
"px",
"%",
"vw",
"vh",
"em",
"rem",
"vh",
"vw",
"%"
"svw",
"lvw",
"dvw",
"svh",
"lvh",
"dvh",
"svi",
"lvi",
"dvi",
"svb",
"lvb",
"dvb",
"vmin",
"svmin",
"lvmin",
"dvmin",
"vmax",
"svmax",
"lvmax",
"dvmax"
]
},
"layout": {
Expand Down
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ https://www.vektor-inc.co.jp/inquiry/

== Changelog ==

[ G3 / G2 ] Allow using CSS level 4 viewport-relative units

v15.20.2
[ G3 ][ Design Bug Fix ][ OriginIII ] Fixed margin-bottom of vk_button does not work if vk_button is adjacent within an element of .is-layout-flow or .is-layout-constrained.
[ G3 ][ Design Bug Fix ][ OriginIII ] Fixed the issue where the OriginIII title design was incorrectly applied to the post title block.
Expand Down

0 comments on commit c22897a

Please sign in to comment.