diff --git a/assets/css/cube.css b/assets/css/cube.css index ccde748..c763aa9 100644 --- a/assets/css/cube.css +++ b/assets/css/cube.css @@ -203,9 +203,17 @@ font-size: var(--text-size-base); position: fixed; max-width: calc(var(--wrapper-width, var(--screen-lg)) - (2 * var(--space-size-0))); - top: 92%; + bottom: 2%; color: white; text-align: left; + text-shadow: -2px -2px 0 #000, + 0 -2px 0 #000, + 2px -2px 0 #000, + 2px 0 0 #000, + 2px 2px 0 #000, + 0 2px 0 #000, + -2px 2px 0 #000, + -2px 0 0 #000; padding: 0 var(--space-size-0); background-image: linear-gradient(135deg, transparent 30%, red 30%, red 40%, yellow 40%, yellow 50%, #44ff00 50%, #44ff00 60%, #00fff7 60%, #00fff7 70%, transparent 70%); background-size: 10rem 100%; @@ -223,8 +231,12 @@ padding-right: var(--space-size-0); } -.blogpost:not(:has(#mono:checked)) .e-content { - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; +.blogpost .e-content { + font-family: var(--font-family-mono-base); +} + +.blogpost:has(#mono:checked) .e-content { + font-family: var(--font-family-mono); } .post-title a:not(:hover) { @@ -584,4 +596,8 @@ pre .comment { .filter { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); +} + +.w-content { + width: fit-content; } \ No newline at end of file diff --git a/functions.php b/functions.php index c35c7ed..2c4c674 100644 --- a/functions.php +++ b/functions.php @@ -4,9 +4,10 @@ add_theme_support( 'title-tag' ); function zxs_add_themes() { wp_enqueue_style('zxs_globals', get_stylesheet_directory_uri() . "/style.css", array(), wp_get_theme()->get( 'Version' ), 'all'); - wp_enqueue_style('zxs_cubeCSS', get_stylesheet_directory_uri() . "/assets/css/cube.css", array(), wp_get_theme()->get( 'Version' ), 'all'); + wp_enqueue_style('zxs_cube', get_stylesheet_directory_uri() . "/assets/css/cube.css", array(), wp_get_theme()->get( 'Version' ), 'all'); } + add_action('wp_enqueue_scripts', 'zxs_add_themes'); function zxs_add_class( $classes ) { @@ -25,10 +26,10 @@ add_action('after_setup_theme', function() { // remove SVG and global styles remove_action('wp_enqueue_scripts', 'wp_enqueue_global_styles'); - // remove wp_footer actions which add's global inline styles + // remove wp_footer actions which adds global inline styles remove_action('wp_footer', 'wp_enqueue_global_styles', 1); - // remove render_block filters which adding unnecessary stuff + // remove render_block filters which add unnecessary stuff remove_filter('render_block', 'wp_render_duotone_support'); remove_filter('render_block', 'wp_restore_group_inner_container'); remove_filter('render_block', 'wp_render_layout_support_flag'); @@ -40,7 +41,20 @@ add_action('after_setup_theme', function() { wp_dequeue_style( 'wp-block-library' ); wp_dequeue_style( 'wp-block-library-theme' ); wp_dequeue_style( 'wc-blocks-style' ); // Remove WooCommerce block CSS -// wp_dequeue_style( 'classic-theme-styles' ); + wp_dequeue_style( 'hcb-style' ); + wp_dequeue_style( 'hcb-style-inline' ); + wp_dequeue_style( 'hcb-coloring' ); + wp_dequeue_style( 'semantic-linkbacks' ); + } add_action( 'wp_enqueue_scripts', 'zxs_remove_block_library_css', 100 ); + + function zxs_register_menus() { + register_nav_menus( + array( + 'home' => __( 'Home Menu' ), + ) + ); + } + add_action( 'init', 'zxs_register_menus' ); \ No newline at end of file diff --git a/header.php b/header.php index 725fc8f..9d5bfc8 100644 --- a/header.php +++ b/header.php @@ -1,5 +1,5 @@ - + diff --git a/index.php b/index.php index 0717044..d52673b 100644 --- a/index.php +++ b/index.php @@ -6,11 +6,8 @@ if ( is_front_page() ) { get_template_part( 'parts/home' ); } else if ( is_home() ) { get_template_part( 'parts/blog' ); -} else if ( false ) { - // This is a bad idea - echo 'Microblog'; +} else { + get_template_part( 'parts/page' ); } -?> - \ No newline at end of file diff --git a/parts/home.php b/parts/home.php index 146daaf..0a6e9de 100644 --- a/parts/home.php +++ b/parts/home.php @@ -3,11 +3,11 @@

LewisDale.dev