more responsive fixes
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
height: calc(100dvh - 1em);
|
height: calc(100dvh - 1em);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 575px) {
|
||||||
#mainContainer {
|
#mainContainer {
|
||||||
grid-template-columns: 100%;
|
grid-template-columns: 100%;
|
||||||
grid-template-rows: 70% 1fr;
|
grid-template-rows: 70% 1fr;
|
||||||
|
|||||||
@@ -199,9 +199,10 @@
|
|||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 575px) {
|
||||||
.stream-item-star {
|
.stream-item-star {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -41,4 +41,11 @@
|
|||||||
margin-right: 1px;
|
margin-right: 1px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 575px) {
|
||||||
|
#streamPage {
|
||||||
|
background: local url('/assets/result.png') top right / 80% no-repeat,
|
||||||
|
rgba(0, 0, 0, 0.8);
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -17,8 +17,10 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<div class="stream-information">
|
<div class="stream-information">
|
||||||
<h1 class="stream-date">{formattedStreamDate}</h1>
|
<div class="stream-information-flexbox">
|
||||||
<h3 class="stream-id">ID: {shorthandCode($currentStream.id)}</h3>
|
<h3 class="stream-id">ID: {shorthandCode($currentStream.id)}</h3>
|
||||||
|
<h1 class="stream-date">{formattedStreamDate}</h1>
|
||||||
|
</div>
|
||||||
<h5 class="stream-tags"><u>Tags</u>: {$currentStream.tags.join(', ')}</h5>
|
<h5 class="stream-tags"><u>Tags</u>: {$currentStream.tags.join(', ')}</h5>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -32,12 +34,15 @@
|
|||||||
{#each $currentStream.tracks as track, i}
|
{#each $currentStream.tracks as track, i}
|
||||||
<tr class:current={i == $currentSongIndex}>
|
<tr class:current={i == $currentSongIndex}>
|
||||||
<td class="timestamp-field"
|
<td class="timestamp-field"
|
||||||
>{formatTrackTime(track[0])}
|
><div class="timestamp-field-flex">
|
||||||
|
{formatTrackTime(track[0])}
|
||||||
<button
|
<button
|
||||||
on:click={() => jumpToTrack(track[0])}
|
on:click={() => jumpToTrack(track[0])}
|
||||||
class="material-icons"
|
class="material-icons"
|
||||||
style="padding:4px; margin:-3px">fast_forward</button
|
style="padding: 4px 6px; margin-top: -4px; margin-bottom: -4px; margin-right: -6px"
|
||||||
|
>fast_forward</button
|
||||||
>
|
>
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="artist-field">{track[1]}</td>
|
<td class="artist-field">{track[1]}</td>
|
||||||
<td class="track-field">{track[2]}</td>
|
<td class="track-field">{track[2]}</td>
|
||||||
@@ -56,6 +61,13 @@
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stream-information-flexbox {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: calc(1.17em - 4px); /* autism */
|
||||||
|
}
|
||||||
|
|
||||||
#table-container {
|
#table-container {
|
||||||
margin-left: 3%;
|
margin-left: 3%;
|
||||||
}
|
}
|
||||||
@@ -70,7 +82,7 @@
|
|||||||
|
|
||||||
th,
|
th,
|
||||||
td {
|
td {
|
||||||
padding: 2px;
|
padding: 3px;
|
||||||
line-height: 1.15;
|
line-height: 1.15;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,6 +90,11 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.timestamp-field-flex {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
.artist-field {
|
.artist-field {
|
||||||
padding-right: 2em;
|
padding-right: 2em;
|
||||||
}
|
}
|
||||||
@@ -85,9 +102,8 @@
|
|||||||
.stream-date {
|
.stream-date {
|
||||||
font-size: x-large;
|
font-size: x-large;
|
||||||
font-family: 'Montserrat';
|
font-family: 'Montserrat';
|
||||||
right: 0;
|
|
||||||
position: absolute;
|
|
||||||
margin-right: 3%;
|
margin-right: 3%;
|
||||||
|
margin-bottom: 0;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,6 +113,7 @@
|
|||||||
}
|
}
|
||||||
.stream-id {
|
.stream-id {
|
||||||
font-family: 'Montserrat';
|
font-family: 'Montserrat';
|
||||||
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.current {
|
.current {
|
||||||
@@ -162,9 +179,24 @@
|
|||||||
border: 0;
|
border: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 500px) {
|
@media (max-width: 575px) {
|
||||||
.material-icons {
|
.material-icons {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.stream-id {
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.stream-information {
|
||||||
|
width: initial;
|
||||||
|
}
|
||||||
|
.description-bubble {
|
||||||
|
max-width: initial;
|
||||||
|
}
|
||||||
|
|
||||||
|
.description-bubble::after {
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user