From 29cc04ca03fcd59e97829ac94a8199c8c159170a Mon Sep 17 00:00:00 2001 From: Christopher Date: Sun, 25 Feb 2024 23:00:07 +0100 Subject: [PATCH] Mobile Support --- index.html | 2 +- style.css | 88 +++++++++++++++++++++++++++++++++++++++--------------- 2 files changed, 65 insertions(+), 25 deletions(-) diff --git a/index.html b/index.html index 9ece2e1..21b39c3 100644 --- a/index.html +++ b/index.html @@ -23,7 +23,7 @@

Odczuwalne: 4

-
+

diff --git a/style.css b/style.css index 153f832..c529525 100644 --- a/style.css +++ b/style.css @@ -17,11 +17,73 @@ body { background-size: cover; } +@media screen and (max-width: 640px) { + .content { + width: 100vw; + height: 100vh; + display: flex; + flex-direction: column; + justify-content: center; + } + + .temperature { + font-size: 300%; + } + + .icon { + display: inline-block; + height: 128px; + } + + .info { + text-align: center; + } +} + +@media screen and (min-width: 640px) { + .content { + border-radius: 48px; + box-shadow: 0 0 32px #000000; + } + + .temperature { + font-size: 600%; + } + + .icon { + display: inline-block; + height: 256px; + } + + .col { + text-align: center; + flex: 1 0 0%; + } + + .info { + text-align: left; + } + + .info.right { + text-align: right; + } + + .row_info { + display: flex; + justify-content: center; + align-items: center; + } +} + +.row { + display: flex; + justify-content: center; + align-items: center; +} + .content { padding: 16px; - border-radius: 48px; color: white; - box-shadow: 0 0 32px #000000; backdrop-filter: blur(3px) brightness(60%); } @@ -35,7 +97,6 @@ body { margin: 16px; margin-bottom: 0; font-weight: 300; - font-size: 600%; } .description { @@ -48,33 +109,12 @@ body { text-align: center; } -.icon { - display: inline-block; - height: 256px; -} - -.row { - display: flex; - justify-content: center; - align-items: center; -} - -.col { - text-align: center; - flex: 1 0 0%; -} - .info { - text-align: left; margin: 4px 24px 0 24px; font-weight: 300; font-style: italic; } -.info.right { - text-align: right; -} - .author { text-align: center; font-weight: 300;