2017-08-03 13:53:18 +03:00
|
|
|
@import '../../styles/themes';
|
2017-09-05 16:41:03 +03:00
|
|
|
@import '~@nebular/theme/styles/global/bootstrap/hero-buttons';
|
2017-06-21 17:34:10 +03:00
|
|
|
|
2017-08-01 17:42:21 +03:00
|
|
|
@include nb-install-component() {
|
2017-04-18 19:12:29 +03:00
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
2017-07-20 18:13:11 +03:00
|
|
|
width: 100%;
|
2017-04-18 19:12:29 +03:00
|
|
|
|
2017-07-28 14:54:29 +03:00
|
|
|
.left {
|
|
|
|
|
order: 0;
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
}
|
|
|
|
|
.right {
|
|
|
|
|
order: 1;
|
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.header-container {
|
2017-04-18 19:12:29 +03:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2017-04-19 10:48:37 +03:00
|
|
|
|
2017-07-20 18:13:11 +03:00
|
|
|
.navigation {
|
2017-08-01 17:42:21 +03:00
|
|
|
padding-right: nb-theme(padding);
|
2017-06-21 17:34:10 +03:00
|
|
|
font-size: 2.5rem;
|
2017-04-18 19:12:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.logo {
|
2017-08-01 17:42:21 +03:00
|
|
|
padding: 0 nb-theme(padding);
|
2017-07-20 18:13:11 +03:00
|
|
|
font-size: 1.75rem;
|
2017-08-01 17:42:21 +03:00
|
|
|
font-weight: nb-theme(font-weight-bolder);
|
|
|
|
|
border-left: 1px solid nb-theme(separator);
|
2017-07-20 18:13:11 +03:00
|
|
|
|
|
|
|
|
span {
|
2017-08-01 17:42:21 +03:00
|
|
|
font-weight: nb-theme(font-weight-normal);
|
2017-07-20 18:13:11 +03:00
|
|
|
}
|
|
|
|
|
}
|
2017-04-26 20:11:54 +03:00
|
|
|
|
2017-09-05 16:41:03 +03:00
|
|
|
.theme-switch {
|
2017-09-06 13:58:29 +03:00
|
|
|
margin: 0 6rem;
|
2017-09-05 16:41:03 +03:00
|
|
|
width: 12rem;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
2017-09-05 18:56:26 +03:00
|
|
|
cursor: pointer;
|
2017-09-05 16:41:03 +03:00
|
|
|
|
2017-09-05 18:56:26 +03:00
|
|
|
& > span {
|
2017-09-05 16:41:03 +03:00
|
|
|
font-size: 1.125rem;
|
|
|
|
|
font-weight: nb-theme(font-weight-bold);
|
2017-09-05 18:56:26 +03:00
|
|
|
transition: opacity 0.3s ease;
|
2017-09-05 16:41:03 +03:00
|
|
|
|
|
|
|
|
&.light {
|
|
|
|
|
color: nb-theme(color-fg-text);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.cosmic {
|
|
|
|
|
color: nb-theme(color-fg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@include nb-for-theme(cosmic) {
|
|
|
|
|
&.light {
|
|
|
|
|
color: nb-theme(color-fg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.cosmic {
|
|
|
|
|
color: nb-theme(color-white);
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-05 18:56:26 +03:00
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
|
opacity: 0.78;
|
|
|
|
|
}
|
2017-09-05 16:41:03 +03:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.switch {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 4rem;
|
|
|
|
|
height: 1.75rem;
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
|
|
input {
|
|
|
|
|
display: none;
|
|
|
|
|
|
|
|
|
|
&:checked + .slider::before {
|
|
|
|
|
transform: translateX(2.25rem);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.slider {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
border-radius: 1.75rem;
|
|
|
|
|
background-color: nb-theme(layout-bg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.slider::before {
|
|
|
|
|
position: absolute;
|
|
|
|
|
content: '';
|
|
|
|
|
height: 1.75rem;
|
|
|
|
|
width: 1.75rem;
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
background-color: nb-theme(color-success);
|
|
|
|
|
transition: 0.2s;
|
|
|
|
|
|
2017-09-05 18:56:26 +03:00
|
|
|
box-shadow: 0 0 0.25rem 0 rgba(nb-theme(color-fg), 0.4);
|
2017-09-05 16:41:03 +03:00
|
|
|
|
|
|
|
|
@include nb-for-theme(cosmic) {
|
|
|
|
|
@include btn-hero-primary-gradient();
|
|
|
|
|
}
|
2017-04-26 20:11:54 +03:00
|
|
|
}
|
2017-04-18 19:12:29 +03:00
|
|
|
}
|
|
|
|
|
}
|
2017-08-30 17:22:05 +03:00
|
|
|
|
|
|
|
|
.toggle-layout /deep/ a {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
|
|
|
|
|
i {
|
2017-08-31 12:35:55 +03:00
|
|
|
color: nb-theme(color-success);
|
2017-08-30 17:22:05 +03:00
|
|
|
font-size: 1.75rem;
|
2017-08-31 12:35:55 +03:00
|
|
|
|
|
|
|
|
@include nb-for-theme(cosmic) {
|
|
|
|
|
color: nb-theme(link-color-active);
|
|
|
|
|
text-shadow: 0 0 12px rgba(nb-theme(color-fg-highlight), 0.4);
|
|
|
|
|
}
|
2017-08-30 17:22:05 +03:00
|
|
|
}
|
|
|
|
|
}
|
2017-04-18 19:12:29 +03:00
|
|
|
}
|
|
|
|
|
|