feat(theme): add corporate theme (#1727)

This commit is contained in:
Denis Strigo 2018-06-21 15:16:53 +03:00 committed by Dmitry Nehaychik
parent 6d705d2786
commit e37f12dfc9
45 changed files with 3747 additions and 2960 deletions

View file

@ -21,6 +21,7 @@
.logo-containter {
display: flex;
align-items: center;
width: calc(#{nb-theme(sidebar-width)} - #{nb-theme(header-padding)});
}
.control-item {
@ -30,7 +31,7 @@
.header-container {
display: flex;
align-items: center;
width: 100%;
width: auto;
.navigation {
@include nb-ltr(padding-right, nb-theme(padding));
@ -58,9 +59,33 @@
}
}
ngx-layout-direction-switcher,
@include nb-for-theme(corporate) {
$menu-action-separator-color: #3f4550;
nb-action {
@include nb-ltr(border-left-color, $menu-action-separator-color);
@include nb-rtl(border-right-color, $menu-action-separator-color);
}
.header-container .logo {
@include nb-ltr(border, none);
@include nb-rtl(border, none);
}
.header-container /deep/ ngx-theme-switcher .dropdown-toggle {
color: nb-theme(color-white);
background: transparent;
}
}
ngx-layout-direction-switcher {
margin: 0 1.5rem;
}
ngx-theme-switcher {
margin: 0 1em;
margin: nb-theme(layout-padding);
margin-top: 0;
margin-bottom: 0;
}
@include media-breakpoint-down(xl) {
@ -142,10 +167,13 @@
padding: 0;
}
ngx-layout-direction-switcher,
ngx-theme-switcher {
ngx-layout-direction-switcher {
display: none;
}
ngx-theme-switcher {
margin: 0 0.5rem;
}
}
@include media-breakpoint-down(sm) {
@ -167,6 +195,10 @@
display: none;
}
ngx-theme-switcher {
display: none;
}
nb-action:not(.toggle-layout) {
padding: 0;
}