-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48 from texastribune/blast-header
Standardize blast header component
- Loading branch information
Showing
11 changed files
with
87 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
// Blast Header (c-blast-header) | ||
// | ||
// Header for Blast product. | ||
// | ||
// Markup: 6-components/blast-header/blast-header.html | ||
// | ||
// Styleguide 6.1.1 | ||
$blast-header-height: 18rem; | ||
|
||
// Header w/ logos | ||
.c-blast-header { | ||
background-size: cover; | ||
height: $blast-header-height; | ||
|
||
&__col { | ||
margin-left: auto; | ||
margin-right: auto; | ||
|
||
&--brand { | ||
margin-bottom: $size-m; | ||
max-width: px-to-rem(450px); | ||
} | ||
|
||
&--title { | ||
max-width: px-to-rem(250px); | ||
} | ||
|
||
&__logo { | ||
height: px-to-rem(20px); | ||
} | ||
} | ||
@supports (display: grid) { | ||
@include mq($from: bp-m) { | ||
&__inner { | ||
@include gap; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
} | ||
|
||
&__col { | ||
margin: 0; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<header class="c-blast-header l-align-center-children has-bg-black-off has-text-white has-l-btm-marg" style="background-image: url('/img/blast-header/c-blast-header-bg.jpg')"> | ||
<div class="c-blast-header__inner l-container l-width-full has-page-padding"> | ||
<div class="c-blast-header__col c-blast-header__col--brand"> | ||
<a class="l-display-block" href="/theblast/"><img class="l-width-max" src="/img/blast-header/c-blast-header-logo.png" alt="The Blast Logo"></a> | ||
</div> | ||
<div class="c-blast-header__col c-blast-header__col--title l-align-center-self"> | ||
<h1 class="is-hidden-until-bp-m t-size-m has-s-btm-marg">The best political<br>newsletter in Texas.</h1> | ||
<a class="l-display-block" href="/"><img class="c-blast-header__logo l-width-max" src="/img/blast-header/c-blast-header-attribution-logo.svg" alt="A project by The Texas Tribune"></a> | ||
</div> | ||
</div> | ||
</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
docs/src/img/blast-header/c-blast-header-attribution-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.