forked from parcel-bundler/website
-
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.
Styling tweaks and basic mobile support (parcel-bundler#606)
* don't max-width * basic breakpoints * navigation style fixes * make nav sections hideable * fix features * center content and limit it to 80rem * add margin back and add line under header cuz felt kinda weird in dark mode * hide only on mobile * update border color...
- Loading branch information
1 parent
9f173e3
commit f0485a6
Showing
6 changed files
with
135 additions
and
48 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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
"use strict"; | ||
(function () { | ||
var navToggles = document.querySelectorAll(".toggle-doc-nav-tree"); | ||
navToggles.forEach((toggle) => { | ||
toggle.addEventListener("change", function (evt) { | ||
try { | ||
var navTreeId = evt.target.id.replace("toggle", "nav-tree"); | ||
var target = document.getElementById(navTreeId); | ||
var isChecked = evt.target.checked; | ||
|
||
if (target) { | ||
target.setAttribute("class", isChecked ? "" : "doc-nav-group-hidden"); | ||
} | ||
} catch (err) { | ||
console.error(err); | ||
} | ||
}); | ||
}); | ||
})(); |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"tags": "💡Features" | ||
"tags": "💡 Features" | ||
} |
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,7 +1,7 @@ | ||
{ | ||
"tagOrder": [ | ||
"🚀 Getting Started", | ||
"💡Features", | ||
"💡 Features", | ||
"🔧 Configuration", | ||
"🍰 Recipes", | ||
"📚 Languages", | ||
|