diff --git a/pages/_includes/layout/sidebar.html b/pages/_includes/layout/sidebar.html deleted file mode 100644 index ce88020b7..000000000 --- a/pages/_includes/layout/sidebar.html +++ /dev/null @@ -1,11 +0,0 @@ -
- - - - - {% include ui/icon.html icon="sidebar" %} - -
diff --git a/pages/_includes/layout/sidenav-content.html b/pages/_includes/layout/sidenav-content.html index 483f70c36..241e8fe8a 100644 --- a/pages/_includes/layout/sidenav-content.html +++ b/pages/_includes/layout/sidenav-content.html @@ -1,55 +1,57 @@ {% assign id = 0 | random_id %} - - - +
+ + + +
- +
+ - - - + + {% if item[1].children or item[1].docs %} + + {% endif %} + + {% endfor %} + + + +
diff --git a/pages/_includes/layout/sidenav.html b/pages/_includes/layout/sidenav.html index b3c9f9eac..91dc9f5db 100644 --- a/pages/_includes/layout/sidenav.html +++ b/pages/_includes/layout/sidenav.html @@ -1,12 +1,3 @@ -
-
- {% include layout/sidenav-content.html logo="white" %} -
+
+ {% include layout/sidenav-content.html logo="white" %}
-{% comment %} -
-
- {% include layout/sidenav-content.html%} -
-
-{% endcomment %} diff --git a/pages/_layouts/base.html b/pages/_layouts/base.html index 547f58d8d..fcbce86f3 100644 --- a/pages/_layouts/base.html +++ b/pages/_layouts/base.html @@ -23,7 +23,7 @@ {% include_cached layout/css.html %} {% include_cached layout/js.html %} - + {{ content}} diff --git a/pages/_layouts/error.html b/pages/_layouts/error.html index 581bef273..a8fd5aae5 100644 --- a/pages/_layouts/error.html +++ b/pages/_layouts/error.html @@ -1,5 +1,6 @@ --- layout: base +body-class: border-top-2 border-primary --- {% assign error = site.data.errors[page.error] %} @@ -13,7 +14,7 @@ layout: base {% else %}
{{ page.error }}
-

Oops… You just found an error page

+

Oops… You just found an error page 😭

{{ error }}

diff --git a/scss/layout/_core.scss b/scss/layout/_core.scss index 65ca1f723..1b81177c7 100644 --- a/scss/layout/_core.scss +++ b/scss/layout/_core.scss @@ -4,6 +4,7 @@ html { } body { + height: 100%; overflow-y: scroll; touch-action: manipulation; -webkit-tap-highlight-color: transparent; diff --git a/scss/layout/_sidenav.scss b/scss/layout/_sidenav.scss index 5770811b1..67ec4a320 100644 --- a/scss/layout/_sidenav.scss +++ b/scss/layout/_sidenav.scss @@ -4,7 +4,6 @@ Sidebar .sidenav { width: 16rem; min-width: 16rem; - padding: .75rem 1rem; background: $sidenav-bg; border-right: 1px solid $sidenav-border-color; @@ -40,8 +39,6 @@ Sidebar } .navbar-brand { - padding-top: 1rem; - padding-bottom: 1rem; text-align: center; } diff --git a/scss/utils/_border.scss b/scss/utils/_border.scss index b3d06fb2f..0db3ff555 100644 --- a/scss/utils/_border.scss +++ b/scss/utils/_border.scss @@ -1,9 +1,41 @@ // stylelint-disable declaration-no-important +$border-sizing: () !default; +$border-sizing: map-merge(( + 2: 2, + 4: 4 +), $border-sizing); -.b-dashed{ +@each $size, $value in $border-sizing { + + .border-#{$size} { + border-width: $border-width * $value !important; + } + + .border-top-#{$size} { + border-top-width: $border-width * $value !important; + border-top-style: solid; + } + + .border-right-#{$size} { + border-right-width: $border-width * $value !important; + border-right-style: solid; + } + + .border-bottom-#{$size} { + border-bottom-width: $border-width * $value !important; + border-bottom-style: solid; + } + + .border-left-#{$size} { + border-left-width: $border-width * $value !important; + border-left-style: solid; + } +} + +.border-dashed { border-style: dashed !important; } -.b-transparent{ +.border-transparent { border-color: transparent !important; }