mirror of
https://github.com/tabler/tabler.git
synced 2025-12-22 09:54:24 +04:00
sidebar menu fixes
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{% assign breakpoint = include.breakpoint | default: 'md' %}
|
||||
{% assign secondary = include.secondary | default: false %}
|
||||
|
||||
<header class="navbar navbar-expand-{{ breakpoint }}{% unless include.transparent %} {% if include.dark %}navbar-dark{% else %}navbar-light{% endif %}{% if include.background %} bg-{{ include.background }}{% endif %}{% endunless %}{% if include.sticky %} sticky-top{% endif %}"{% if include.background-color %} style="background: {{ include.background-color }}"{% endif %}>
|
||||
<header class="navbar navbar-expand-{{ breakpoint }}{% unless include.transparent %} {% if include.dark %}navbar-dark{% else %}navbar-light{% endif %}{% if include.background %} bg-{{ include.background }}{% endif %}{% endunless %}{% if include.sticky %} sticky-top{% endif %}{% if include.class %} {{ include.class }}{% endif %}"{% if include.background-color %} style="background: {{ include.background-color }}"{% endif %}>
|
||||
<div class="container{% if page.layout-fluid %}-fluid{% else %}-xl{% endif %}">
|
||||
{% include layout/navbar-toggler.html target="navbar-menu" %}
|
||||
|
||||
|
||||
@@ -2,10 +2,14 @@
|
||||
|
||||
<aside class="navbar navbar-vertical{% if include.right %} navbar-right{% endif %} navbar-expand-{{ breakpoint }}{% unless include.transparent %} {% if include.dark %}navbar-dark{% else %}navbar-light{% endif %}{% if include.background %} bg-{{ include.background }}{% endif %}{% endunless %}"{% if include.background-color %} style="background: {{ include.background-color }}"{% endif %}>
|
||||
<div class="container-fluid">
|
||||
{% include layout/navbar-toggler.html target="navbar-menu" %}
|
||||
|
||||
{% unless include.hide-brand %}
|
||||
{% include layout/navbar-logo.html dark=include.dark breakpoint=breakpoint %}
|
||||
{% endunless %}
|
||||
|
||||
{% include layout/navbar-side.html class="d-lg-none" hide-username=include.hide-username person-id=include.person-id %}
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbar-menu">
|
||||
{% include layout/navbar-menu.html %}
|
||||
</div>
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
layout: base
|
||||
---
|
||||
|
||||
{% include layout/sidebar.html dark=true %}
|
||||
{% include layout/sidebar.html dark=true breakpoint="lg" %}
|
||||
|
||||
<div class="page">
|
||||
{% include layout/navbar.html hide-brand=true hide-menu=true %}
|
||||
{% include layout/navbar.html hide-brand=true hide-menu=true class="d-none d-lg-flex" %}
|
||||
{% include layout/content.html %}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -387,7 +387,7 @@ $navbar-brand-padding-y: $nav-link-padding-y !default;
|
||||
$navbar-brand-image-height: 2rem !default;
|
||||
$navbar-brand-margin-right: 0 !default;
|
||||
$navbar-brand-font-size: $h3-font-size !default;
|
||||
$navbar-brand-font-weight: 600 !default;
|
||||
$navbar-brand-font-weight: 500 !default;
|
||||
|
||||
$navbar-toggler-font-size: 1rem !default;
|
||||
$navbar-toggler-padding-x: 0 !default;
|
||||
|
||||
@@ -3,6 +3,7 @@ Navbar
|
||||
*/
|
||||
.navbar {
|
||||
min-height: $navbar-height;
|
||||
align-items: stretch;
|
||||
|
||||
.navbar-nav {
|
||||
min-height: subtract($navbar-height, 2 * $navbar-padding-y);
|
||||
@@ -148,7 +149,7 @@ Navbar
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: subtract(-$navbar-padding-y, 1px);
|
||||
bottom: subtract(-.25rem, 1px);
|
||||
border-bottom: 2px solid $primary;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
padding: 0;
|
||||
z-index: $zindex-fixed;
|
||||
align-items: flex-start;
|
||||
transition: .3s transform;
|
||||
|
||||
Reference in New Issue
Block a user