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 Dec 11, 2024
1 parent 466168c commit a4c0de8
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions inc/css-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,13 @@ function hovercraft_generate_css(){

@media screen and (max-width: 1200px) {
.site-title {
font-family: <?php echo ucwords(str_replace("_", " ", $site_name_font_family)); ?>;
font-family: <?php
echo !empty($site_name_font_family)
? ucwords(str_replace("_", " ", $site_name_font_family))
: (!empty($default_font_family)
? ucwords(str_replace("_", " ", $default_font_family))
: 'sans-serif');
?>;
text-transform: <?php echo $site_name_text_transform; ?>;
font-size: <?php echo $site_name_mobile_font_size; ?>px;
font-weight: <?php echo $site_name_font_weight; ?>;
Expand All @@ -859,7 +865,13 @@ function hovercraft_generate_css(){

@media screen and (min-width: 1200px) {
.site-title {
font-family: <?php echo ucwords(str_replace("_", " ", $site_name_font_family)); ?>;
font-family: <?php
echo !empty($site_name_font_family)
? ucwords(str_replace("_", " ", $site_name_font_family))
: (!empty($default_font_family)
? ucwords(str_replace("_", " ", $default_font_family))
: 'sans-serif');
?>;
text-transform: <?php echo $site_name_text_transform; ?>;
font-size: <?php echo $site_name_desktop_font_size; ?>px;
font-weight: <?php echo $site_name_font_weight; ?>;
Expand Down Expand Up @@ -1717,7 +1729,13 @@ function hovercraft_generate_css(){
}

.menu-desktop > .main-menu a {
font-family: <?php echo ucwords(str_replace("_", " ", $main_menu_font_family)); ?>;
font-family: <?php
echo !empty($main_menu_font_family)
? ucwords(str_replace("_", " ", $main_menu_font_family))
: (!empty($default_font_family)
? ucwords(str_replace("_", " ", $default_font_family))
: 'sans-serif');
?>;
font-size: <?php echo $main_menu_desktop_font_size; ?>px;
text-transform: <?php echo $main_menu_text_transform; ?>;
font-weight: <?php echo $main_menu_font_weight; ?>;
Expand Down

0 comments on commit a4c0de8

Please sign in to comment.