Update styles.css

This commit is contained in:
xixu-me committed 2024-11-28 22:07:27 +08:00
1 parent 5693ab54bf
commit 89d01fe2c1
1 file changed
+37 -7
+37 -7
View File
@@ -22,19 +22,33 @@ h1 {
.disk-track { .disk-track {
position: relative; position: relative;
width: 100%; width: 100%;
height: 80px; height: 120px;
background: linear-gradient(to right, #e9ecef, #dee2e6); background: linear-gradient(to right, #e9ecef, #dee2e6);
border-radius: 8px; border-radius: 8px;
margin: 2rem 0; margin: 2rem 0;
padding: 1rem 0;
}
.track-scale {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 24px;
display: flex;
justify-content: space-between;
padding: 0 20px;
color: #666;
font-size: 0.8rem;
} }
.head { .head {
position: absolute; position: absolute;
width: 20px; width: 20px;
height: 50px; height: 60px;
background: linear-gradient(45deg, #ff4d4d, #ff6b6b); background: linear-gradient(45deg, #ff4d4d, #ff6b6b);
border-radius: 6px; border-radius: 6px;
top: 15px; top: 25px;
transform: translateX(-50%); transform: translateX(-50%);
transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1); transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 2px 8px rgba(255, 77, 77, 0.3); box-shadow: 0 2px 8px rgba(255, 77, 77, 0.3);
@@ -46,7 +60,7 @@ h1 {
height: 12px; height: 12px;
background-color: #339af0; background-color: #339af0;
border-radius: 50%; border-radius: 50%;
top: 34px; top: 49px;
transform: translateX(-50%); transform: translateX(-50%);
transition: background-color 0.3s ease; transition: background-color 0.3s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
@@ -66,14 +80,15 @@ h1 {
.input-row { .input-row {
display: grid; display: grid;
grid-template-columns: auto 1fr; grid-template-columns: auto 1fr auto 1fr;
gap: 1rem; gap: 1rem;
margin-bottom: 1rem; margin-bottom: 1rem;
align-items: center;
} }
.buttons-row { .buttons-row {
display: flex; display: grid;
flex-wrap: wrap; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 12px; gap: 12px;
align-items: center; align-items: center;
} }
@@ -272,3 +287,18 @@ select:focus {
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
@media (max-width: 768px) {
.seek-time-comparison {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
#comparisonTable {
min-width: 600px;
}
.input-row {
grid-template-columns: auto 1fr;
}
}