ngx-admin/src/app/pages/dashboard/temperature/temperature.component.scss

129 lines
2.3 KiB
SCSS
Raw Normal View History

2017-07-06 19:10:31 +03:00
@import '../../../@theme/styles/variables';
@include nga-install-component() {
nga-card {
2017-07-11 18:59:08 +03:00
background-image: nga-theme(radial-gradient);
}
nga-tabset {
display: flex;
flex-direction: column;
height: 100%;
/deep/ ul {
border: none;
}
}
2017-07-06 19:10:31 +03:00
nga-tab.content-active {
display: flex;
flex-direction: column;
justify-content: space-between;
position: relative;
height: 100%;
}
.slider-container {
2017-07-06 19:10:31 +03:00
display: flex;
flex: 1;
2017-07-06 19:10:31 +03:00
justify-content: center;
align-items: center;
2017-07-06 19:10:31 +03:00
}
ngx-temperature-dragger {
margin-top: -1.5rem;
2017-07-06 19:10:31 +03:00
width: 80%;
}
.slider-value-container {
display: flex;
flex-direction: column;
align-items: center;
.value {
position: relative;
color: nga-theme(color-fg-heading);
font-family: nga-theme(font-secondary);
font-size: 4rem;
font-weight: nga-theme(font-weight-bolder);
&.temperature::before {
position: absolute;
content: '°';
top: 0;
right: -1.25rem;
}
&.humidity::before {
position: absolute;
content: '%';
bottom: 0.5rem;
right: -2.5rem;
color: nga-theme(color-fg);
font-size: 2.5rem;
font-weight: nga-theme(font-weight-light);
}
}
.desc {
color: nga-theme(color-fg);
font-weight: nga-theme(font-weight-light);
}
&.off {
.value {
color: nga-theme(color-fg);
letter-spacing: 0.25rem;
padding-left: 0.5rem;
&::before {
display: none;
}
}
.desc {
display: none;
}
}
}
.btn-group {
padding: 1.25rem;
}
.btn-icon {
display: flex;
align-items: center;
justify-content: center;
border-color: nga-theme(form-control-border-color);
height: 4.5rem;
padding: 0;
margin-bottom: 0;
&.active {
border-color: nga-theme(color-fg-highlight);
box-shadow: 0 2px 12px 0 rgba(nga-theme(color-fg-highlight), 0.25);
background-color: rgba(nga-theme(color-fg-highlight), 0.25);
}
i {
font-size: 2rem;
line-height: 1;
}
.ion-ios-snowy {
font-size: 2.5rem;
}
.ion-ios-sunny-outline {
font-size: 2.5rem;
}
.ion-ios-flame-outline {
font-size: 2.25rem;
}
.ion-ios-loop {
font-size: 1.75rem;
}
}
2017-07-06 19:10:31 +03:00
}