Skip to content

Commit

Permalink
website: responsive styling updates (#5858)
Browse files Browse the repository at this point in the history
* docs-sidenav version bump with required updates to #inner styles

* website - fix ie11 responsive rendering bug
  • Loading branch information
rjspiker authored and jefferai committed Dec 3, 2018
1 parent e9751fd commit 44209d5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
20 changes: 14 additions & 6 deletions website/assets/css/_inner.css
Expand Up @@ -6,24 +6,32 @@
position: relative;
width: 100%;

@media (min-width: 768px) {
@media (min-width: 940px) {
flex-direction: row;
margin-top: 72px;
margin-bottom: 72px;
}
}

#inner {
flex: 1;
margin: 100px 0;
margin: 64px 0;
overflow: auto;
width: 100%;

@media (min-width: 768px) {
@media (min-width: 940px) {
flex: 1;
margin: 0;
}

& .g-content > h1:first-child {
margin-top: 0;
& .g-content {
@media (max-width: 939px) {
padding-left: 0;
padding-right: 0;
}

& > h1:first-child {
margin-top: 0;
}
}

& .g-section-header {
Expand Down
2 changes: 1 addition & 1 deletion website/assets/package.json
Expand Up @@ -12,7 +12,7 @@
"@hashicorp/hashi-callouts": "^2.0.5",
"@hashicorp/hashi-content": "^0.1.0",
"@hashicorp/hashi-consent-manager": "^1.0.5",
"@hashicorp/hashi-docs-sidenav": "^0.3.0",
"@hashicorp/hashi-docs-sidenav": "^1.0.2",
"@hashicorp/hashi-docs-sitemap": "^0.1.4",
"@hashicorp/hashi-footer": "1.1.2",
"@hashicorp/hashi-ga-form-fields": "1.0.2",
Expand Down

0 comments on commit 44209d5

Please sign in to comment.