platypush/platypush/backend/http/webapp/src/components/panels/ZigbeeMqtt/common.scss

276 lines
4.5 KiB
SCSS

@import "vars";
.zigbee-container {
.params, .info-body {
.row {
&:nth-child(even) {
background: $param-even-row-bg;
}
&:nth-child(odd) {
background: $param-odd-row-bg;
}
}
}
.view, .info-body {
.row {
display: flex;
align-items: center;
border-radius: 1em;
padding: .3em;
&:hover {
background: $hover-bg;
}
}
.item {
&.selected {
box-shadow: $selected-item-box-shadow;
}
.name.header {
padding: 1em !important;
cursor: pointer;
text-transform: uppercase;
letter-spacing: .06em;
&.selected {
border-radius: 1.5em;
}
&.selected {
background: $selected-bg;
}
}
.title {
font-size: 1.2em;
padding-left: .5em;
}
.buttons {
margin: 0;
}
&:hover {
background: $hover-bg;
&.selected {
background: $selected-bg;
}
}
&:not(:last-child) {
border-bottom: $item-border;
}
&:first-child {
border-radius: 1.5em 1.5em 0 0;
}
&:last-child {
border-radius: 0 0 1.5em 1.5em;
}
.params {
.section {
padding: 1.5em 0 0 0;
}
}
.value {
.param-name {
display: inline-block;
.name {
font-family: monospace;
font-size: .8em;
text-transform: unset;
padding: 0;
&:before {
content: '[';
}
&:after {
content: ']';
}
}
.unit {
font-size: .8em;
&:before {
content: ' [unit: ';
}
&:after {
content: ']';
}
}
}
.param-value {
label {
width: 90%;
}
input {
width: 100%;
}
}
}
button {
border: 0;
background: none;
padding: 0 .5em;
&:hover {
color: $default-hover-fg;
}
}
@media screen and (max-width: $tablet) {
.name-edit {
justify-content: left;
}
}
@media screen and (min-width: $tablet) {
.name-edit {
justify-content: right;
}
}
.name-edit {
width: 100%;
display: inline-flex;
align-items: center;
form {
width: 100%;
display: inline-flex;
align-items:center;
justify-content: right;
flex-direction: row;
}
.buttons {
display: inline-flex;
justify-content: right;
margin: 0 0 0 .5em;
}
form {
background: none;
padding: 0;
border: none;
box-shadow: none;
}
}
}
}
.row {
display: flex;
flex-wrap: wrap;
@media screen and (max-width: $tablet) {
.param-name {
width: 100%;
font-weight: bold;
}
.param-value {
width: 100%;
margin-left: 1%;
}
}
@media screen and (min-width: $tablet) {
.param-name {
width: 40%;
}
.param-value {
width: 58%;
justify-content: right;
}
}
.param-name {
display: inline-flex;
margin-left: 1%;
vertical-align: top;
letter-spacing: .04em;
}
.param-value {
display: inline-flex;
align-items: center;
.value-edit {
display: flex;
align-items: center;
}
.value-data {
display: inline-block;
font-weight: bold;
}
.slider-container {
display: flex;
align-items: center;
}
.unit {
font-size: .8em;
margin-left: 1em;
display: inline;
}
select {
width: 100%;
}
.numeric {
input.slider {
text-align: left;
}
input[type=text] {
text-align: right;
width: 100%;
}
.row {
background: none;
&:hover {
background: none;
}
}
.value-min, .value-max {
width: 50%;
font-size: .85em;
opacity: .75;
}
.value-min {
text-align: left;
}
.value-max {
text-align: right;
}
}
}
}
select {
width: 100%;
}
}