ngx-admin/src/app/@theme/components/header/header.component.scss

128 lines
2.4 KiB
SCSS
Raw Normal View History

2017-09-11 11:44:04 +03:00
@import '~bootstrap/scss/mixins/breakpoints';
@import '~@nebular/theme/styles/global/breakpoints';
@import '../../styles/themes';
2017-06-21 17:34:10 +03:00
@include nb-install-component() {
display: flex;
justify-content: space-between;
width: 100%;
.logo-container {
2017-09-11 11:44:04 +03:00
display: flex;
align-items: center;
width: calc(#{nb-theme(sidebar-width)} - #{nb-theme(header-padding)});
}
nb-action {
height: auto;
2017-09-11 11:44:04 +03:00
display: flex;
align-content: center;
}
nb-user {
cursor: pointer;
2017-09-11 11:44:04 +03:00
}
2019-07-15 18:52:01 +03:00
.subtitle {
font-family: nb-theme(text-subtitle-font-family);
font-size: nb-theme(text-subtitle-font-size);
font-weight: nb-theme(text-subtitle-font-weight);
line-height: nb-theme(text-subtitle-line-height);
}
.downloads-count .number {
@include nb-ltr(margin-left, 0.5rem);
@include nb-rtl(margin-right, 0.5rem);
}
::ng-deep nb-search button {
padding: 0!important;
2017-09-11 11:44:04 +03:00
}
2019-07-15 18:52:01 +03:00
.contact-us {
padding: 0;
nb-icon {
font-size: 1.25rem;
}
}
.header-container {
display: flex;
align-items: center;
width: auto;
.sidebar-toggle {
@include nb-ltr(margin-right, 1.25rem);
@include nb-rtl(margin-left, 1.25rem);
2017-09-14 22:15:08 +03:00
text-decoration: none;
color: nb-theme(text-hint-color);
nb-icon {
font-size: 1.75rem;
2017-09-14 22:15:08 +03:00
}
}
.logo {
padding: 0 1.25rem;
font-size: 1.75rem;
@include nb-ltr(border-left, 1px solid nb-theme(divider-color));
@include nb-rtl(border-right, 1px solid nb-theme(divider-color));
white-space: nowrap;
text-decoration: none;
2017-08-30 17:22:05 +03:00
}
}
2017-09-11 11:44:04 +03:00
2019-07-15 18:52:01 +03:00
.github-stars {
width: 250px;
display: flex;
iframe {
width: 105px;
@include nb-ltr(margin-left, 1rem);
@include nb-rtl(margin-right, 1rem);
}
}
@include media-breakpoint-down(xl) {
.control-item.search,
.control-item.notifications,
.control-item.email,
.control-item.github-stars .text {
2017-09-11 11:44:04 +03:00
display: none;
}
2019-07-15 18:52:01 +03:00
.control-item.github-stars {
width: auto;
iframe {
margin: 0;
}
}
}
@include media-breakpoint-down(lg) {
.downloads-count {
display: none;
}
}
@include media-breakpoint-down(md) {
.theme-select {
display: none;
}
}
@include media-breakpoint-down(sm) {
.contact-us {
display: none;
2017-09-14 22:15:08 +03:00
}
2017-09-11 11:44:04 +03:00
}
2017-09-12 21:55:09 +03:00
@include media-breakpoint-down(is) {
2019-07-15 18:52:01 +03:00
.github-stars,
.user-action {
2017-09-11 11:44:04 +03:00
display: none;
}
}
}