Files
lrc-local-win/web/styles.css
T

192 lines
2.8 KiB
CSS

:root {
font-family:
system-ui,
-apple-system,
'Segoe UI',
'PingFang SC',
sans-serif;
color: #1f2937;
background: #f7f8fa;
line-height: 1.55;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
}
main {
width: min(900px, calc(100% - 28px));
margin: auto;
padding: 30px 0 55px;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #dfe3e8;
padding-bottom: 14px;
margin-bottom: 24px;
}
h1 {
font-size: 1.45rem;
margin: 0;
}
header span,
footer,
.meta {
color: #667085;
font-size: 0.86rem;
}
p {
margin: 10px 0;
}
code {
background: #eceff3;
padding: 1px 4px;
border-radius: 4px;
}
form {
margin-top: 24px;
}
label {
display: block;
font-weight: 650;
margin-bottom: 7px;
}
.row {
display: flex;
gap: 8px;
}
input {
flex: 1;
min-width: 0;
border: 1px solid #b8c0cc;
border-radius: 7px;
padding: 11px;
font: inherit;
}
button {
border: 1px solid #b8c0cc;
border-radius: 7px;
background: #fff;
color: #344054;
padding: 7px 11px;
font: inherit;
font-weight: 650;
cursor: pointer;
}
button.primary,
.row button {
background: #2563eb;
color: #fff;
border-color: #2563eb;
}
.row button {
padding: 0 20px;
}
button:disabled {
opacity: 0.55;
cursor: wait;
}
#notice {
min-height: 28px;
margin: 10px 0;
color: #475467;
}
#notice.error {
color: #b42318;
}
#results {
display: grid;
gap: 8px;
}
.song {
background: #fff;
border: 1px solid #dfe3e8;
border-radius: 8px;
padding: 14px;
min-width: 0;
}
.top {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 14px;
align-items: center;
}
.info {
min-width: 0;
}
.info h2 {
font-size: 1.02rem;
margin: 0 0 7px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.meta {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 6px;
}
.preview {
margin-top: 11px;
border-top: 1px solid #eaecf0;
padding-top: 9px;
}
.preview summary {
color: #155eef;
cursor: pointer;
font-size: 0.9rem;
}
.controls {
font-size: 0.86rem;
margin: 9px 0 7px;
}
.controls select {
border: 1px solid #b8c0cc;
border-radius: 6px;
padding: 5px;
font: inherit;
}
.lyrics {
max-height: 60vh;
overflow: auto;
white-space: pre-wrap;
overflow-wrap: anywhere;
background: #f8fafc;
border: 1px solid #dfe3e8;
border-radius: 7px;
padding: 11px;
margin: 0;
font: ui-monospace, Consolas, monospace;
font-size: 0.8rem;
line-height: 1.65;
}
footer {
margin-top: 34px;
padding-top: 18px;
border-top: 1px solid #dfe3e8;
}
@media (max-width: 680px) {
.row,
.top {
display: grid;
}
.row button {
padding: 10px;
}
.actions {
justify-content: flex-start;
}
.actions button {
flex: 1 1 auto;
}
}