fix(header): improve header styles, add nebular icons

This commit is contained in:
KostyaDanovsky 2017-09-07 16:43:31 +03:00
parent 429fd095cf
commit 3febc37ed7
5 changed files with 99 additions and 105 deletions

View file

@ -34,83 +34,83 @@
font-weight: nb-theme(font-weight-normal);
}
}
}
.theme-switch {
margin: 0 6rem;
width: 12rem;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
.theme-switch {
margin: 0 6rem;
width: 12rem;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
& > span {
font-size: 1.125rem;
font-weight: nb-theme(font-weight-bold);
transition: opacity 0.3s ease;
& > span {
font-size: 1.125rem;
font-weight: nb-theme(font-weight-bold);
transition: opacity 0.3s ease;
&.light {
color: nb-theme(color-fg-text);
}
&.cosmic {
color: nb-theme(color-fg);
}
@include nb-for-theme(cosmic) {
&.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);
}
&.cosmic {
color: nb-theme(color-white);
}
}
&:active {
opacity: 0.78;
}
&:active {
opacity: 0.78;
}
}
}
.switch {
position: relative;
display: inline-block;
width: 4rem;
height: 1.75rem;
margin: 0;
input {
display: none;
&:checked + .slider::before {
transform: translateX(2.25rem);
}
}
.switch {
position: relative;
display: inline-block;
width: 4rem;
.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;
margin: 0;
width: 1.75rem;
border-radius: 50%;
background-color: nb-theme(color-success);
transition: 0.2s;
input {
display: none;
box-shadow: 0 0 0.25rem 0 rgba(nb-theme(color-fg), 0.4);
&: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;
box-shadow: 0 0 0.25rem 0 rgba(nb-theme(color-fg), 0.4);
@include nb-for-theme(cosmic) {
@include btn-hero-primary-gradient();
}
@include nb-for-theme(cosmic) {
@include btn-hero-primary-gradient();
}
}
}