changed the style to a minified version, use the main one as template

This commit is contained in:
Jacob Haddon 2020-03-19 19:10:38 -04:00
parent 2ecb13e1c9
commit dba4d52f10
4 changed files with 26 additions and 33 deletions

View File

@ -5,7 +5,7 @@
// enqueue the stye
function mytheme_enqueue_style() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
wp_enqueue_style( 'style.min', get_stylesheet_uri() );
}
add_action( 'wp_enqueue_scripts', 'mytheme_enqueue_style' );
@ -23,5 +23,4 @@ function register_my_menus() {
add_action( 'init', 'register_my_menus' );
?>

View File

@ -1,17 +1,13 @@
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title(); ?></title>
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_nav_menu( array(
'theme_location' => 'header-menu',
'container_class' => 'mfwpt_menu'
)
);?>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title(); ?></title>
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<?php wp_nav_menu( array(
'theme_location' => 'header-menu',
'container_class' => 'mfwpt_menu'
) );?>

View File

@ -24,9 +24,6 @@ body{
h1,h2,h3{line-height:1.2}
/* menu styles */
.mfwpt_menu ul {list-style: none; padding:0px;}
.mfwpt_menu ul ul {display: none;position:absolute;background-color: white;}

1
style.min.css vendored Normal file
View File

@ -0,0 +1 @@
body{margin:40px auto;max-width:650px;line-height:1.6;font-size:18px;padding:0 10px}h1,h2,h3{line-height:1.2}.mfwpt_menu ul{list-style:none;padding:0}.mfwpt_menu ul ul{display:none;position:absolute;background-color:#fff}.mfwpt_menu li{display:inline-block;padding-right:20px}.mfwpt_menu li a{text-decoration:none}.mfwpt_menu li li,.mfwpt_menu li:hover ul{display:block}