Skip to content

Commit

Permalink
Merge pull request #216 from wri/fix/static-header-layout-issues
Browse files Browse the repository at this point in the history
fix static header layout issues
  • Loading branch information
tsubik authored Aug 6, 2024
2 parents b505d36 + c8d8c32 commit 90675d6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
5 changes: 1 addition & 4 deletions components/ui/static-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ class StaticHeader extends React.Component {
{logo && (
<div className="logo-container">
<img
src={`${process.env.NODE_ENV !== 'production'
? process.env.OTP_API
: ''
}${logo}`}
src={logo}
alt={`${title} logo`}
className="logo"
/>
Expand Down
13 changes: 6 additions & 7 deletions css/components/page/_static-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
align-items: center;

width: 100%;
height: 220px;
min-height: 220px;

background-size: cover;
background-repeat: no-repeat;
Expand All @@ -24,19 +24,16 @@
}

&.-tabs {
padding-bottom: 45px;

.container {
margin-bottom: 45px;
text-align: left;
}
}

&.-logo {
height: auto;

.container {
margin-bottom: 75px;
}

.logo-container {
display: inline-block;
background-color: $color-white;
Expand All @@ -51,10 +48,11 @@
}

h2 {
margin: 0;
margin: $space-1*2 0 $space-1;
padding: 0;
font-size: $font-size-extrahuge;
font-weight: $font-weight-default;
line-height: 1.1;
color: $color-white;

@media screen and (max-width: 1024px) {
Expand All @@ -68,6 +66,7 @@

h3 {
margin: 0;
margin-bottom: $space-1 * 2;
padding: 0;
font-size: $font-size-big;
font-weight: $font-weight-default;
Expand Down

0 comments on commit 90675d6

Please sign in to comment.