Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix banner styles #4808

Merged
merged 1 commit into from
Apr 2, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions www/src/components/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export default ({ pathname }) => {
zIndex: `2`,
left: 0,
right: 0,
top: `calc(2.8rem - 1px)`,
[presets.Tablet]: {
position: isHomepage || isBlog ? `absolute` : `fixed`,
},
Expand Down
3 changes: 3 additions & 0 deletions www/src/layouts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ class DefaultLayout extends React.Component {
fontFamily: options.headerFontFamily.join(`,`),
textAlign: `center`,
boxShadow: `inset 0px -3px 2px 0px ${colors.ui.bright}`,
zIndex: `2`,
position: isHomepage || isBlog ? `absolute` : `fixed`,
}}
>
Live 2-day Gatsby training with Kyle Mathews! Sign up for{" "}
Expand Down Expand Up @@ -230,6 +232,7 @@ class DefaultLayout extends React.Component {

<div
css={{
marginTop: isHomepage || isBlog ? 0 : `calc(2.8rem - 1px)`,
...childrenMobileDisplay,
[presets.Tablet]: {
paddingLeft: leftPadding(10),
Expand Down
1 change: 1 addition & 0 deletions www/src/pages/blog/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class BlogPostsIndex extends React.Component {
return (
<div
css={{
marginTop: `calc(2.8rem - 1px)`,
[presets.Tablet]: {
background: colors.ui.whisper,
paddingBottom: rhythm(options.blockMarginBottom * 4),
Expand Down
10 changes: 5 additions & 5 deletions www/src/pages/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import logo from "../monogram.svg"
import { rhythm, options } from "../utils/typography"
import presets, { colors } from "../utils/presets"

class Packages extends Component {
class Plugins extends Component {
render() {
return (
<Container
css={{
alignItems: `center`,
display: `flex`,
minHeight: `calc(100vh - ${presets.headerHeight})`,
minHeight: `calc(100vh - (${presets.headerHeight} + 2.8rem - 1px))`,
}}
>
<div
Expand Down Expand Up @@ -40,7 +40,7 @@ class Packages extends Component {
textAlign: `center`,
}}
>
Welcome to the Gatsby Package Library!
Welcome to the Gatsby Plugin Library!
</h1>
<p
css={{
Expand All @@ -52,7 +52,7 @@ class Packages extends Component {
textAlign: `center`,
}}
>
Please use the search bar to find packages that will make your
Please use the search bar to find plugins that will make your
blazing-fast site even more awesome.
</p>
</div>
Expand All @@ -61,4 +61,4 @@ class Packages extends Component {
}
}

export default Packages
export default Plugins