-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Constrain the nav and contribute element to the same width as the related content menu, allowing the main article to stretch the full height of the viewport
- Loading branch information
Showing
10 changed files
with
165 additions
and
129 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
<header> | ||
<nav aria-label="Main" class="navbar"> | ||
<ul> | ||
<li> | ||
<a href="/" aria-label="Homepage"> | ||
<img src="/assets/images/dxw-logo.png" alt="" /> | ||
</a> | ||
</li> | ||
<li class="navbar__search"> | ||
{% include search_form.html %} | ||
</li> | ||
</ul> | ||
</nav> | ||
</header> | ||
<nav aria-label="Main" class="navbar"> | ||
<ul> | ||
<li> | ||
<a href="/" aria-label="Homepage"> | ||
<img src="/assets/images/dxw-logo.png" alt="" /> | ||
</a> | ||
</li> | ||
<li class="navbar__search"> | ||
{% include search_form.html %} | ||
</li> | ||
</ul> | ||
</nav> |
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,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="en-GB"> | ||
<head> | ||
<meta charset="utf-8"/> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, initial-scale=1, shrink-to-fit=no" | ||
/> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/assets/images/favicon/apple-touch-icon.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/assets/images/favicon/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/assets/images/favicon/favicon-16x16.png"> | ||
<link rel="manifest" href="/assets/images/favicon/site.webmanifest"> | ||
<link rel="mask-icon" href="/assets/images/favicon/safari-pinned-tab.svg" color="#5bbad5"> | ||
<meta name="msapplication-TileColor" content="#243746"> | ||
<meta name="theme-color" content="#f9f8f5"> | ||
<title> | ||
{% if page.title and page.title != "dxw's Playbook" %}{{ page.title | escape }} - {% endif %}Playbook - dxw | ||
</title> | ||
|
||
{% if page.url == "/" %} | ||
<script src="/assets/js/redirect.js"></script> | ||
{% endif %} | ||
|
||
<link rel="stylesheet" href="/assets/main.css"/> | ||
<script defer data-domain="playbook.dxw.com" src="https://plausible.io/js/script.manual.js"></script> | ||
</head> | ||
<body> | ||
{% include navbar.html %} | ||
<main> | ||
{% include related.html %} | ||
{% include page-content.html %} | ||
</main> | ||
{% include contribute.html %} | ||
<script src="/assets/js/plausible.js"></script> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,19 +1,34 @@ | ||
@use "./breakpoints"; | ||
@use "./navbar"; | ||
|
||
$large-screen-header-width: 330px; | ||
|
||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
main { | ||
@include breakpoints.on-large-screens { | ||
flex-direction: row; | ||
height: calc(100vh - navbar.$height-large - 3em); | ||
margin-top: navbar.$height-large; | ||
header { | ||
width: 100%; | ||
} | ||
|
||
@include breakpoints.on-large-screens { | ||
body { | ||
display: flex; | ||
} | ||
|
||
display: flex; | ||
flex-direction: column; | ||
height: calc(100vh - navbar.$height); | ||
margin-top: navbar.$height; | ||
header { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
|
||
width: $large-screen-header-width; | ||
height: 100vh; | ||
} | ||
|
||
main { | ||
flex: 1; | ||
height: 100%; | ||
min-height: 100vh; | ||
margin-left: $large-screen-header-width; | ||
} | ||
} |
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
Oops, something went wrong.