Mobile Support
This commit is contained in:
+1
-1
@@ -14,7 +14,7 @@
|
||||
</head>
|
||||
<body class="body">
|
||||
<div class="container">
|
||||
<img src="resources/img/noalbum.jpg" id="song_coverart" alt="noalbum" height="400px">
|
||||
<img src="resources/img/noalbum.jpg" id="song_coverart" alt="noalbum">
|
||||
<h2 id="song_title">Sample Title</h3>
|
||||
<h5 id="song_author">John Krasinski</h5>
|
||||
<div class="status">
|
||||
|
||||
@@ -5,10 +5,7 @@
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
min-height: 100vh !important;
|
||||
}
|
||||
|
||||
.body {
|
||||
@@ -17,16 +14,70 @@ body {
|
||||
backdrop-filter: blur(120px);
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 32px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(0,0,0,0.2);
|
||||
box-shadow: 0 0 8px rgba(0,0,0,0.6);
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
color: white;
|
||||
text-align: center;
|
||||
@media screen and (max-width: 640px) {
|
||||
body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 90vw;
|
||||
padding: 32px;
|
||||
border: 1px solid rgba(0,0,0,0.2);
|
||||
box-shadow: 0 0 8px rgba(0,0,0,0.6);
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
img {
|
||||
width: 90%;
|
||||
}
|
||||
|
||||
.list {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
box-shadow: 0 0 4px rgba(0,0,0,0.6);
|
||||
border-radius: 0 0 8px 8px;
|
||||
padding: 16px;
|
||||
color: white;
|
||||
width: 90vw;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 640px) {
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
img {
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 32px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(0,0,0,0.2);
|
||||
box-shadow: 0 0 8px rgba(0,0,0,0.6);
|
||||
background-color: rgba(0,0,0,0.5);
|
||||
color: white;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.list {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
box-shadow: 0 0 4px rgba(0,0,0,0.6);
|
||||
border-radius: 0 8px 8px 0;
|
||||
padding: 16px;
|
||||
color: white;
|
||||
width: 25%;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.status {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 5fr 1fr;
|
||||
@@ -50,15 +101,6 @@ body {
|
||||
color: green;
|
||||
}
|
||||
|
||||
.list {
|
||||
background-color: rgba(255, 255, 255, 0.2);
|
||||
box-shadow: 0 0 4px rgba(0,0,0,0.6);
|
||||
border-radius: 0 8px 8px 0;
|
||||
padding: 16px;
|
||||
color: white;
|
||||
width: 25%;
|
||||
}
|
||||
|
||||
.list ul {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user