mirror of https://github.com/ColorlibHQ/AdminLTE
added support for .text-sm with brand-link, main-sidebar & main-footer
parent
bc8b990c1a
commit
9b290fa5d0
|
@ -25,7 +25,6 @@
|
||||||
border-bottom: 1px solid $gray-300;
|
border-bottom: 1px solid $gray-300;
|
||||||
color: rgba($black, .8);
|
color: rgba($black, .8);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.brand-image {
|
.brand-image {
|
||||||
float: left;
|
float: left;
|
||||||
|
@ -40,17 +39,33 @@
|
||||||
.brand-image-xs {
|
.brand-image-xs {
|
||||||
float: left;
|
float: left;
|
||||||
line-height: .8;
|
line-height: .8;
|
||||||
margin-left: .8rem;
|
margin-top: -.1rem;
|
||||||
margin-right: .5rem;
|
|
||||||
margin-top: -3px;
|
|
||||||
max-height: 33px;
|
max-height: 33px;
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.brand-image-xl {
|
.brand-image-xl {
|
||||||
line-height: .8;
|
line-height: .8;
|
||||||
margin-bottom: -10px;
|
|
||||||
margin-top: -14px;
|
|
||||||
max-height: 40px;
|
max-height: 40px;
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.text-sm {
|
||||||
|
.brand-image {
|
||||||
|
height: 29px;
|
||||||
|
margin-bottom: -.25rem;
|
||||||
|
margin-left: .95rem;
|
||||||
|
margin-top: -.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-image-xs {
|
||||||
|
margin-top: -.2rem;
|
||||||
|
max-height: 29px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.brand-image-xl {
|
||||||
|
margin-top: -.225rem;
|
||||||
|
max-height: 38px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -37,15 +37,28 @@ body,
|
||||||
.control-sidebar {
|
.control-sidebar {
|
||||||
top: $main-header-height;
|
top: $main-header-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-header.text-sm ~ .control-sidebar {
|
||||||
|
top: $main-header-height-sm;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
margin-top: $main-header-height;
|
margin-top: $main-header-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.brand-link.text-sm ~ .sidebar {
|
||||||
|
margin-top: $main-header-height-sm;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout-navbar-fixed.sidebar-collapse & {
|
.layout-navbar-fixed.sidebar-collapse & {
|
||||||
.brand-link {
|
.brand-link {
|
||||||
height: $main-header-height;
|
height: $main-header-height;
|
||||||
width: $sidebar-mini-width;
|
width: $sidebar-mini-width;
|
||||||
|
|
||||||
|
&.text-sm {
|
||||||
|
height: $main-header-height-sm;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,6 +104,10 @@ body,
|
||||||
margin-top: $main-header-height;
|
margin-top: $main-header-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-header.text-sm ~ .content-wrapper {
|
||||||
|
margin-top: $main-header-height-sm;
|
||||||
|
}
|
||||||
|
|
||||||
.main-header {
|
.main-header {
|
||||||
left: 0;
|
left: 0;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -123,9 +140,18 @@ body,
|
||||||
.control-sidebar {
|
.control-sidebar {
|
||||||
top: $main-header-height;
|
top: $main-header-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-header.text-sm ~ .control-sidebar {
|
||||||
|
top: $main-header-height-sm;
|
||||||
|
}
|
||||||
|
|
||||||
.sidebar {
|
.sidebar {
|
||||||
margin-top: $main-header-height;
|
margin-top: $main-header-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.brand-link.text-sm ~ .sidebar {
|
||||||
|
margin-top: $main-header-height-sm;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.layout#{$infix}-navbar-fixed & {
|
.layout#{$infix}-navbar-fixed & {
|
||||||
|
@ -144,6 +170,10 @@ body,
|
||||||
height: $main-header-height;
|
height: $main-header-height;
|
||||||
transition: width $transition-speed $transition-fn;
|
transition: width $transition-speed $transition-fn;
|
||||||
width: $sidebar-mini-width;
|
width: $sidebar-mini-width;
|
||||||
|
|
||||||
|
&.text-sm {
|
||||||
|
height: $main-header-height-sm;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-sidebar:hover {
|
.main-sidebar:hover {
|
||||||
|
@ -178,6 +208,10 @@ body,
|
||||||
margin-top: $main-header-height;
|
margin-top: $main-header-height;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-header.text-sm ~ .content-wrapper {
|
||||||
|
margin-top: $main-header-height-sm;
|
||||||
|
}
|
||||||
|
|
||||||
.main-header {
|
.main-header {
|
||||||
left: 0;
|
left: 0;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
@ -393,6 +427,10 @@ body,
|
||||||
border-top: $main-footer-border-top;
|
border-top: $main-footer-border-top;
|
||||||
color: lighten($gray-700, 25%);
|
color: lighten($gray-700, 25%);
|
||||||
padding: $main-footer-padding;
|
padding: $main-footer-padding;
|
||||||
|
|
||||||
|
&.text-sm {
|
||||||
|
padding: $main-footer-padding * .812;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-header {
|
.content-header {
|
||||||
|
|
|
@ -11,6 +11,23 @@
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.text-sm {
|
||||||
|
.nav-link {
|
||||||
|
height: $nav-link-sm-height;
|
||||||
|
padding: $nav-link-sm-padding-y $nav-link-padding-x;
|
||||||
|
|
||||||
|
> .fa,
|
||||||
|
> .fas,
|
||||||
|
> .far,
|
||||||
|
> .fab,
|
||||||
|
> .glyphicon,
|
||||||
|
> .ion {
|
||||||
|
font-size: $font-size-sm;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.navbar-nav {
|
.navbar-nav {
|
||||||
.nav-item {
|
.nav-item {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
// Logo style
|
// Logo style
|
||||||
.logo-xs,
|
.logo-xs,
|
||||||
.logo-xl {
|
.logo-xl {
|
||||||
margin: 0;
|
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
|
|
|
@ -58,6 +58,11 @@ $main-header-brand-padding-y: $navbar-brand-padding-y !default;
|
||||||
$main-header-brand-padding-x: $navbar-padding-x !default;
|
$main-header-brand-padding-x: $navbar-padding-x !default;
|
||||||
$main-header-height-inner: ($nav-link-height + ($main-header-link-padding-y * 2)) !default;
|
$main-header-height-inner: ($nav-link-height + ($main-header-link-padding-y * 2)) !default;
|
||||||
$main-header-height: calc(#{$main-header-height-inner} + #{$main-header-bottom-border-width}) !default;
|
$main-header-height: calc(#{$main-header-height-inner} + #{$main-header-bottom-border-width}) !default;
|
||||||
|
$nav-link-sm-padding-y: .35rem !default;
|
||||||
|
$nav-link-sm-height: ($font-size-sm * $line-height-sm + $nav-link-sm-padding-y * 1.785) !default;
|
||||||
|
$main-header-height-sm-inner: ($nav-link-sm-height + ($main-header-link-padding-y * 2)) !default;
|
||||||
|
$main-header-height-sm: calc(#{$main-header-height-sm-inner} + #{$main-header-bottom-border-width}) !default;
|
||||||
|
|
||||||
|
|
||||||
// Main header skins
|
// Main header skins
|
||||||
$main-header-dark-form-control-bg: hsla(100, 100%, 100%, 0.2) !default;
|
$main-header-dark-form-control-bg: hsla(100, 100%, 100%, 0.2) !default;
|
||||||
|
|
Loading…
Reference in New Issue