graphicek/client/src/assets/pages/_sensors-page.scss

100 lines
1.6 KiB
SCSS
Raw Normal View History

2022-08-28 11:56:03 +02:00
.sensors-page {
2022-08-28 21:22:33 +02:00
.sensors-head {
display: flex;
align-items: center;
flex: 1;
2022-08-28 11:56:03 +02:00
2022-08-28 21:22:33 +02:00
> button {
margin-left: auto;
}
}
2022-08-28 11:56:03 +02:00
section.content {
2022-08-28 21:22:33 +02:00
.sensors-list {
display: grid;
grid-template-columns: repeat(6, 1fr);
2022-08-28 11:56:03 +02:00
overflow: auto;
2022-08-28 21:22:33 +02:00
padding: 1rem;
2022-08-28 11:56:03 +02:00
2022-08-28 21:22:33 +02:00
@media screen and (max-width: 1500px) {
grid-template-columns: repeat(4, 1fr);
}
2022-08-28 11:56:03 +02:00
2022-08-28 21:22:33 +02:00
@media screen and (max-width: 1200px) {
grid-template-columns: repeat(3, 1fr);
}
@media screen and (max-width: 900px) {
grid-template-columns: repeat(2, 1fr);
}
@media screen and (max-width: 768px) {
grid-template-columns: repeat(1, 1fr);
}
.sensor-item {
margin: 0.25rem;
padding: 0.5rem;
2022-08-28 11:56:03 +02:00
> div {
flex-grow: 0;
flex-shrink: 0;
overflow: hidden;
text-overflow: ellipsis;
}
2022-08-28 23:34:21 +02:00
> .name {
margin-bottom: 0.5rem;
}
2022-08-28 21:22:33 +02:00
> .auth {
.auth-value {
display: flex;
font-size: 85%;
margin: 0.25rem 0;
2022-08-28 11:56:03 +02:00
2022-08-28 21:22:33 +02:00
.label {
width: 2rem;
background-color: #666;
2022-08-28 23:34:21 +02:00
padding: 0 0.25rem;
2022-08-28 21:22:33 +02:00
border-radius: 0.25rem;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
2022-08-28 23:34:21 +02:00
display: flex;
align-items: center;
2022-08-28 21:22:33 +02:00
}
2022-08-28 11:56:03 +02:00
2022-08-28 21:22:33 +02:00
.value {
flex: 1;
display: flex;
2022-08-28 11:56:03 +02:00
2022-08-28 21:22:33 +02:00
input {
flex: 1;
border-radius: 0;
}
button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding: 0rem 0.5rem;
flex-grow: 0;
flex-shrink: 0;
font-size: 120%;
}
}
2022-08-28 11:56:03 +02:00
}
}
> .actions {
text-align: right;
2022-08-28 21:22:33 +02:00
margin-top: 0.5rem;
2022-08-28 11:56:03 +02:00
button {
margin-left: 0.25rem;
}
}
}
}
}
}