Mobile Support

This commit is contained in:
Christopher
2024-02-25 23:00:07 +01:00
committed by GitHub
parent 6e2811773a
commit 29cc04ca03
2 changed files with 65 additions and 25 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
</div> </div>
</div> </div>
<h3 class="feel_temp" id="feel_temp">Odczuwalne: 4</h3> <h3 class="feel_temp" id="feel_temp">Odczuwalne: 4</h3>
<div class="row"> <div class="row_info">
<div class="col"> <div class="col">
<p class="info" id="min_temp"></p> <p class="info" id="min_temp"></p>
<p class="info" id="max_temp"></p> <p class="info" id="max_temp"></p>
+64 -24
View File
@@ -17,11 +17,73 @@ body {
background-size: cover; 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 { .content {
padding: 16px; padding: 16px;
border-radius: 48px;
color: white; color: white;
box-shadow: 0 0 32px #000000;
backdrop-filter: blur(3px) brightness(60%); backdrop-filter: blur(3px) brightness(60%);
} }
@@ -35,7 +97,6 @@ body {
margin: 16px; margin: 16px;
margin-bottom: 0; margin-bottom: 0;
font-weight: 300; font-weight: 300;
font-size: 600%;
} }
.description { .description {
@@ -48,33 +109,12 @@ body {
text-align: center; 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 { .info {
text-align: left;
margin: 4px 24px 0 24px; margin: 4px 24px 0 24px;
font-weight: 300; font-weight: 300;
font-style: italic; font-style: italic;
} }
.info.right {
text-align: right;
}
.author { .author {
text-align: center; text-align: center;
font-weight: 300; font-weight: 300;