diff --git a/data/img/arrow_up.svg b/data/img/arrow.svg similarity index 100% rename from data/img/arrow_up.svg rename to data/img/arrow.svg diff --git a/data/img/arrow_down.svg b/data/img/arrow_down.svg deleted file mode 100644 index 138d871..0000000 --- a/data/img/arrow_down.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - diff --git a/data/img/arrow_down_offset.svg b/data/img/arrow_down_offset.svg deleted file mode 100644 index d1288c3..0000000 --- a/data/img/arrow_down_offset.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - diff --git a/data/img/arrow_up_offset.svg b/data/img/arrow_up_offset.svg deleted file mode 100644 index 2c24f6a..0000000 --- a/data/img/arrow_up_offset.svg +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - image/svg+xml - - - - - - - - - - diff --git a/data/index.html b/data/index.html index f5d12bf..c9c5dda 100644 --- a/data/index.html +++ b/data/index.html @@ -11,38 +11,36 @@ -
-
-
+ + +
+

Požadovaná teplota

+
+ Zvýšit teplotu +
0
+ Snížit teplotu + Offset + Zvýšit offset +
0
+ Snížit offset +
+
+ diff --git a/data/style.css b/data/style.css index 39c0c20..078a4cb 100644 --- a/data/style.css +++ b/data/style.css @@ -10,13 +10,13 @@ html { margin: 0; font-family: bebas; - font-size: 7vw; + font-size: min(4vh, 6vw); color: #404040; } -main { - height: 100vh; - width: 100vw; +body { + display: flex; + flex-direction: column; } header { @@ -39,6 +39,7 @@ header { grid-template-rows: auto; align-items: center; } + .logo h1 { display: inline-block; font-weight: 200; @@ -46,6 +47,7 @@ header { margin-left: -0.3rem; font-size: 1.7rem; } + .logo img { height: 1.4rem; margin-top: -0.3rem; @@ -56,15 +58,24 @@ header { text-align: right; align-self: center; } + #actual-state.topi { color: #31B907; } + #actual-state { color: #e10000; } + .state img { vertical-align: middle; margin-left: 0.2rem; + width: .8rem; +} + +section { + flex-grow: 4; + overflow: scroll; } section h2 { @@ -76,16 +87,16 @@ section h2 { .inputs { display: grid; - grid-template-columns: 10vw auto auto 8vw; + grid-template-columns: auto auto; grid-template-rows: auto auto auto auto; justify-items: center; align-items: center; text-align: center; grid-template-areas: - ". . offsetText ." - ". tempUp offsetUp ." - ". reqTemp offset ." - ". tempDown offsetDown ."; + ". offsetText" + "tempUp offsetUp" + "reqTemp offset" + "tempDown offsetDown"; } .inputs #tempUp { @@ -96,6 +107,7 @@ section h2 { .inputs #tempDown { grid-area: tempDown; height: 3.2rem; + transform: rotate(180deg); } .inputs #reqTemp { @@ -115,6 +127,7 @@ section h2 { grid-area: offsetUp; height: 2.5rem; margin-bottom: -1.5rem; + filter: invert(61%) sepia(81%) saturate(13%) hue-rotate(26deg) brightness(88%) contrast(86%); } .inputs #offset { @@ -127,12 +140,12 @@ section h2 { grid-area: offsetDown; height: 2.5rem; margin-top: -1.5rem; + transform: rotate(180deg); + filter: invert(61%) sepia(81%) saturate(13%) hue-rotate(26deg) brightness(88%) contrast(86%); } footer { background-color: #404040; - position: absolute; - bottom: 0; width: 100vw; color: white; } @@ -162,4 +175,15 @@ a { a:visited { color: #c1c1c1; +} + +@media only screen and (min-width: 768px) { + .inputs { + grid-template-columns: 35vw auto auto 30vw; + grid-template-areas: + ". . offsetText ." + ". tempUp offsetUp ." + ". reqTemp offset ." + ". tempDown offsetDown ."; + } } \ No newline at end of file