full layout added

This commit is contained in:
Dawid Kubicki 2019-01-13 12:17:16 +01:00
parent ac24169069
commit 17c0a90807
3 changed files with 356 additions and 144 deletions

View File

@ -1,25 +1,68 @@
<div class="container">
<div class="row">
<div class="col-md-6">
<h3>Dodawanie nowych urządzeń</h3>
<form class="admin-form">
<div class="input-wrapper">
<mat-form-field class="admin-full-width">
<input matInput #message maxlength="256" placeholder="Message" />
<input
matInput
#nameDevice
maxlength="256"
placeholder="Nazwa urządzenia"
/>
<mat-hint align="start"
><strong>Don't disclose personal info</strong>
><strong
>Podaj nazwę czujnika (w przypadku ESPEasy name device)</strong
>
</mat-hint>
<mat-hint align="end">{{ message.value.length }} / 256</mat-hint>
<mat-hint align="end">{{ nameDevice.value.length }} / 100</mat-hint>
</mat-form-field>
</div>
<div class="input-wrapper">
<mat-form-field class="admin-full-width">
<input matInput #message maxlength="256" placeholder="Message" />
<input
matInput
#ipDevice
maxlength="256"
placeholder="Adres IP urządzenia"
/>
<mat-hint align="start"
><strong>Don't disclose personal info</strong>
><strong>Podaj przypisany do urządzenia stały adres IP</strong>
</mat-hint>
<mat-hint align="end">{{ message.value.length }} / 256</mat-hint>
<mat-hint align="end">{{ ipDevice.value.length }} / 15</mat-hint>
</mat-form-field>
</div>
<div class="example-button-row">
<button mat-flat-button color="primary">Dodaj urządzenie</button>
</div>
</form>
</div>
<div class="col-md-6">
<h3>Usuwanie urządzeń</h3>
<form class="admin-form">
<div class="input-wrapper">
<mat-form-field class="admin-full-width">
<input
matInput
#nameDeleteDevice
maxlength="256"
placeholder="Nazwa urządzenia"
/>
<mat-hint align="start"
><strong
>Podaj nazwę czujnika (w przypadku ESPEasy name device)</strong
>
</mat-hint>
<mat-hint align="end"
>{{ nameDeleteDevice.value.length }} / 100</mat-hint
>
</mat-form-field>
</div>
<div class="example-button-row">
<button mat-flat-button color="accent">Usuń urządzenie</button>
</div>
</form>
</div>
</div>
</div>

View File

@ -16,4 +16,206 @@
}
}
}
.example-button-row button,
.example-button-row a {
margin-right: 8px;
}
}
table {
width: 100%;
}
.machine-row {
margin-top: 60px;
.machine-text {
color: #000000;
font-size: 36px;
font-weight: 300;
letter-spacing: 2px;
}
.machine-status {
color: #000000;
font-size: 23px;
font-weight: 300;
margin-left: 30px;
margin-top: 50px;
letter-spacing: 0.5px;
img {
width: 15px;
margin-top: -3px;
margin-left: 10px;
}
span {
font-size: 24px;
margin-left: 15px;
top: -10px;
}
}
.machine-status2 {
color: #000000;
font-size: 23px;
font-weight: 300;
margin-left: 30px;
margin-top: 10px;
letter-spacing: 0.5px;
img {
width: 15px;
margin-top: -3px;
margin-left: 10px;
}
span {
font-size: 24px;
margin-left: 15px;
top: -10px;
}
}
.machine-image {
width: 230px;
margin-top: 0px;
margin-left: 50px;
}
}
.stat-wrapper {
margin-left: 30px;
color: #000000;
font-size: 23px;
font-weight: 300;
.stat-text {
color: #000000;
font-size: 36px;
font-weight: 300;
letter-spacing: 2px;
margin-bottom: 30px;
}
}
.button-use {
margin-left: 30px;
margin-top: 20px;
}
.boldMe {
font-weight: 400;
}
.lists {
text-align: center;
font-size: 20px;
}
.machine-list {
margin-right: 0px;
margin-top: 60px;
text-align: center;
}
.row-list {
width: 700px;
display: inline-block;
}
.room-button {
border-radius: 12px;
background-color: white;
border: solid 1px red;
color: red;
padding: 10px;
width: 120px;
margin-bottom: 20px;
}
.room-button:hover {
-webkit-box-shadow: inset 0 0 0 2px #24a1fc;
box-shadow: inset 0 0 0 2px #24a1fc;
}
.room-button:active {
-webkit-box-shadow: inset 0 0 0 2px #24a1fc;
box-shadow: inset 0 0 0 2px #24a1fc;
}
.room-button:focus {
-webkit-box-shadow: inset 0 0 0 2px #24a1fc;
box-shadow: inset 0 0 0 2px #24a1fc;
}
@media only screen and (max-width: 1000px) {
.machine-image {
margin-left: 50px;
display: none;
}
}
@media only screen and (max-width: 800px) {
.machine-row {
.machine-text {
font-size: 30px;
}
}
.stat-wrapper {
.stat-text {
font-size: 30px;
}
}
}
.col-xs-3 {
margin-left: -5px;
}
@media only screen and (max-width: 700px) {
.row-list {
width: 100%;
}
}
@media only screen and (max-width: 600px) {
.room-button {
width: 100px;
font-size: 12px;
padding: 3px;
}
.machine-list {
margin-top: 60px;
}
}
@media only screen and (max-width: 500px) {
table {
width: 50%;
}
.room-button {
width: 80px;
font-size: 10px;
padding-top: 10px;
padding-bottom: 10px;
}
.machine-row {
.machine-text {
font-size: 24px;
}
}
.stat-wrapper {
.stat-text {
font-size: 20px;
font-weight: 600;
}
}
.stat-wrapper {
.list-group {
span {
font-size: 18px;
}
}
}
}

View File

@ -2,25 +2,16 @@ table{
width: 100%;
}
.machine-row {
margin-top: 60px;
.machine-text {
color: #000000;
font-size: 36px;
font-weight: 300;
letter-spacing: 2px;
}
.machine-status {
color: #000000;
font-size: 23px;
@ -62,19 +53,14 @@ table{
}
}
.machine-image {
width: 230px;
margin-top: 0px;
margin-left: 50px;
}
}
.stat-wrapper {
margin-left: 30px;
color: #000000;
font-size: 23px;
@ -87,13 +73,8 @@ table{
letter-spacing: 2px;
margin-bottom: 30px;
}
}
.button-use {
margin-left: 30px;
margin-top: 20px;
@ -106,7 +87,6 @@ table{
.lists {
text-align: center;
font-size: 20px;
}
.machine-list {
@ -118,10 +98,8 @@ table{
.row-list {
width: 700px;
display: inline-block;
}
.room-button {
border-radius: 12px;
background-color: white;
@ -130,10 +108,8 @@ table{
padding: 10px;
width: 120px;
margin-bottom: 20px;
}
.room-button:hover {
-webkit-box-shadow: inset 0 0 0 2px #24a1fc;
box-shadow: inset 0 0 0 2px #24a1fc;
@ -151,7 +127,6 @@ table{
margin-left: 50px;
display: none;
}
}
@media only screen and (max-width: 800px) {
@ -165,20 +140,16 @@ table{
font-size: 30px;
}
}
}
.col-xs-3 {
margin-left: -5px;
}
@media only screen and (max-width: 700px) {
.row-list {
width: 100%;
}
}
@media only screen and (max-width: 600px) {
@ -186,14 +157,12 @@ table{
width: 100px;
font-size: 12px;
padding: 3px;
}
.machine-list {
margin-top: 60px;
}
}
@media only screen and (max-width: 500px) {
table {
width: 50%;
@ -218,7 +187,6 @@ table{
}
}
.stat-wrapper {
.list-group {
span {
@ -227,4 +195,3 @@ table{
}
}
}