Skip to content

Commit

Permalink
Merge pull request #2200 from CityOfPhiladelphia/new-homepage
Browse files Browse the repository at this point in the history
Correct image size
  • Loading branch information
karissademi authored Oct 24, 2024
2 parents d79d26e + bb717c6 commit b618270
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function prepare_item_for_response( $post, $request ) {
if (isset( $schema['properties']['featured_image'] )) {
$featured_image_id = get_post_thumbnail_id($post);
if (wp_get_attachment_image_src($featured_image_id)) {
$medium_featured_image_url = wp_get_attachment_image_src($featured_image_id);
$medium_featured_image_url = wp_get_attachment_image_src($featured_image_id, 'medium');
$post_data['featured_image'] = (string) $medium_featured_image_url[0];
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
width: 100%;
}
}
.menu-wrapper {
width:100%;
}

.global-nav {
@include secondary-font(400);
Expand All @@ -16,7 +19,7 @@
ul {

font-size: 1rem;

li.gov-site.show-for-medium {
font-size: .85rem;

Expand Down Expand Up @@ -514,8 +517,8 @@

.menu-icon {
position: relative;
width: 70px;
height: 70px;
width: 80px;
height: 80px;
padding: 1.3rem;
margin-right: 1rem;
margin-left: 0;
Expand Down Expand Up @@ -652,7 +655,7 @@
.primary-menu .menu li > a {
font-size: 10.5px !important; //force main menu to shrink at smaller screen size. Prevents wrapping for mayor link
text-transform: none !important;
padding: 2rem 1.3rem 2rem 1rem !important;
padding: 2rem .5rem !important;
}
.logo {
margin:0;
Expand All @@ -662,9 +665,9 @@
}
}

@media screen and (min-width: 750px) and (max-width: 816px) {
@media screen and (min-width: 750px) and (max-width: 880px) {
a.icymi {
width:110px;
width:100px;
}
}

Expand Down Expand Up @@ -936,7 +939,7 @@
button.site-search {
color:white;
font-size: 1rem;
margin-right: 1rem;
padding: 1rem;

@include breakpoint(small only) {
min-width: 60px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
blockquote {
border-left: 2px solid black;
padding-left: 15px;
}
}
blockquote:before {
content: ' ' !important;
}
Expand Down
6 changes: 3 additions & 3 deletions wp/wp-content/themes/phila.gov-theme/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@
</div>
<!-- sticky/desktop nav -->
<div id="global-sticky-nav" class="row expanded">
<div>
<div class="small-24 columns phn">
<div class="primary-menu" data-sticky-container data-swiftype-index="false">
<div class="grid-container phila-sticky phn" data-margin-top="0" data-sticky data-sticky-on="medium">
<div class="grid-x align-middle align-justify">
<div class="menu-wrapper grid-x align-middle align-justify">
<div class="small-20 medium-12 branding-container cell">
<button aria-label="Global navigation menu" class="menu-icon" type="button">
<i class="fass fa-bars" aria-hidden="true"></i>
Expand Down Expand Up @@ -194,7 +194,7 @@
</div><!-- close columns -->
</div>
</div>
</div>
</div>
<?php include(locate_template('partials/global/translations-modal.php')); ?>
<div id="phila-mobile-menu"></div>
<div id="phila-site-wide-alerts"></div>
Expand Down

0 comments on commit b618270

Please sign in to comment.