diff --git a/emptytheme/assets/alignments-front.css b/emptytheme/assets/alignments-front.css deleted file mode 100644 index 15d7cf00..00000000 --- a/emptytheme/assets/alignments-front.css +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Alignments, loaded in the front-end only. - */ - -body { - margin: 0; -} - -* { - box-sizing: border-box; -} - -.wp-site-blocks, -.wp-block-template-part.alignfull { - padding: 0 var(--wp--custom--margin--horizontal); -} - -.wp-site-blocks > *:not(.wp-block-post-content), -.wp-site-blocks .wp-block-post-content > * { - max-width: var(--wp--custom--width--default); - margin-left: auto; - margin-right: auto; -} - -.wp-site-blocks .alignwide { - width: var(--wp--custom--width--wide); - max-width: 100%; - margin-left: auto; - margin-right: auto; -} - -.wp-site-blocks .alignfull { - transform: translateX(calc(0px - var(--wp--custom--margin--horizontal))); - width: calc(100% + (2 * var(--wp--custom--margin--horizontal))); - max-width: calc(100% + (2 * var(--wp--custom--margin--horizontal))); - margin-left: 0; - margin-right: 0; - box-sizing: content-box; -} - -.wp-site-blocks .wp-block-template-part.alignfull { - width: 100%; - max-width: 100%; -} - -.wp-site-blocks .wp-block-columns.alignfull { - width: 100%; - max-width: 100%; -} - -.aligncenter { - text-align: center; -} - -.wp-site-blocks .alignleft { - float: left; - margin-right: 2em; - max-width: 360px; -} - -.wp-site-blocks .alignright { - float: right; - margin-left: 2em; - max-width: 360px; -} - -@media screen and (min-width: 1290px) { - - .wp-site-blocks, - .wp-block-template-part.alignfull { - padding: 0; - } - - .wp-site-blocks .alignfull { - transform: translateX(0px); - width: 100%; - max-width: 100%; - } -} diff --git a/emptytheme/block-templates/singular.html b/emptytheme/block-templates/singular.html index 69eef0a7..789f0ff6 100644 --- a/emptytheme/block-templates/singular.html +++ b/emptytheme/block-templates/singular.html @@ -2,4 +2,4 @@ - \ No newline at end of file + diff --git a/emptytheme/experimental-theme.json b/emptytheme/experimental-theme.json index 95157e5f..864f8b85 100644 --- a/emptytheme/experimental-theme.json +++ b/emptytheme/experimental-theme.json @@ -14,14 +14,9 @@ "fontFamilies": [ ], "fontSizes": [ ] }, - "custom": { - "width": { - "default": "840px", - "wide": "1100px" - }, - "margin": { - "horizontal": "14px" - } + "layout": { + "contentSize": "840px", + "wideSize": "1100px" } } }, diff --git a/emptytheme/functions.php b/emptytheme/functions.php index 8d4d2101..047d47c2 100644 --- a/emptytheme/functions.php +++ b/emptytheme/functions.php @@ -31,11 +31,8 @@ function emptytheme_support() { * Enqueue scripts and styles. */ function emptytheme_scripts() { - // Enqueue theme stylesheet. wp_enqueue_style( 'emptytheme-style', get_template_directory_uri() . '/style.css', array(), wp_get_theme()->get( 'Version' ) ); - - // Enqueue alignments stylesheet. - wp_enqueue_style( 'emptytheme-alignments-style', get_template_directory_uri() . '/assets/alignments-front.css', array(), wp_get_theme()->get( 'Version' ) ); } + add_action( 'wp_enqueue_scripts', 'emptytheme_scripts' );