Skip to content

Commit

Permalink
Update css-generator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
jessuppi authored Oct 6, 2024
1 parent 33f90bd commit 2d04000
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/css-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ function hovercraft_generate_css(){
$site_name_mobile_font_size = get_theme_mod( 'hovercraft_site_name_mobile_font_size', '24' );
$site_name_desktop_font_size = get_theme_mod( 'hovercraft_site_name_desktop_font_size', '36' );
$site_name_font_weight = get_theme_mod( 'hovercraft_site_name_font_weight', '700' );
$site_name_text_transform = get_theme_mod( 'hovercraft_site_name_text_transform', 'none' );
$main_menu_font_family = get_theme_mod( 'hovercraft_main_menu_font', 'noto_sans' );
$main_menu_desktop_font_size = get_theme_mod( 'hovercraft_main_menu_desktop_font_size', '18' );
$main_menu_font_weight = get_theme_mod( 'hovercraft_main_menu_font_weight', '600' );
Expand Down Expand Up @@ -792,6 +793,7 @@ function hovercraft_generate_css(){
font-family: <?php echo ucwords(str_replace("_", " ", $site_name_font_family)); ?>;
font-weight: <?php echo $site_name_font_weight; ?>;
font-size: <?php echo $site_name_mobile_font_size; ?>px;
text-transform: <?php echo $site_name_text_transform; ?>;
line-height: 1; /* site-tagline is hidden on mobile anyways */
display: <?php echo $site_name_display_mobile; ?>;
}
Expand All @@ -802,6 +804,7 @@ function hovercraft_generate_css(){
font-family: <?php echo ucwords(str_replace("_", " ", $site_name_font_family)); ?>;
font-weight: <?php echo $site_name_font_weight; ?>;
font-size: <?php echo $site_name_desktop_font_size; ?>px;
text-transform: <?php echo $site_name_text_transform; ?>;
line-height: 1; /* therefore site-tagline requires padding-top */
display: block;
}
Expand Down

0 comments on commit 2d04000

Please sign in to comment.