434 lines
7.4 KiB
CSS
434 lines
7.4 KiB
CSS
.card {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
padding: 8px;
|
|
border: 1px solid #454545;
|
|
border-radius: 18px;
|
|
background: #262626;
|
|
color: #eee;
|
|
font-family: Arial, "PingFang SC", sans-serif;
|
|
}
|
|
.title {
|
|
position: absolute;
|
|
top: -28px;
|
|
left: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 14px;
|
|
color: #929292;
|
|
white-space: nowrap;
|
|
}
|
|
.preview {
|
|
position: relative;
|
|
height: calc(100% - 80px);
|
|
overflow: hidden;
|
|
border-radius: 10px 10px 0 0;
|
|
background: #202020;
|
|
}
|
|
.emptyCard .preview {
|
|
height: 100%;
|
|
border-radius: 10px;
|
|
}
|
|
.emptyActions {
|
|
position: absolute;
|
|
bottom: 24px;
|
|
left: 28px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
color: #a5a5a5;
|
|
font-size: 13px;
|
|
}
|
|
.emptyActions button {
|
|
padding: 0;
|
|
border: 0;
|
|
background: transparent;
|
|
color: #eee;
|
|
font-size: 14px;
|
|
line-height: 20px;
|
|
cursor: pointer;
|
|
}
|
|
.emptyActions button:hover {
|
|
color: white;
|
|
}
|
|
.preview > video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
opacity: 0.35;
|
|
}
|
|
.open {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 16px;
|
|
}
|
|
.open button {
|
|
height: 32px;
|
|
padding: 0 12px;
|
|
border: 0;
|
|
border-radius: 8px;
|
|
background: white;
|
|
color: #181818;
|
|
font-size: 16px;
|
|
cursor: pointer;
|
|
}
|
|
.ruler {
|
|
height: 26px;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
border-bottom: 1px solid #393939;
|
|
font-size: 8px;
|
|
color: #929292;
|
|
}
|
|
.tracks {
|
|
padding: 8px;
|
|
}
|
|
.tracks > div {
|
|
display: flex;
|
|
gap: 3px;
|
|
height: 20px;
|
|
margin-bottom: 3px;
|
|
}
|
|
.tracks i {
|
|
flex: 1;
|
|
background: #333;
|
|
border-radius: 3px;
|
|
}
|
|
.composer {
|
|
position: absolute;
|
|
z-index: 30;
|
|
transform: translateX(-50%);
|
|
width: 660px;
|
|
max-width: calc(100vw - 32px);
|
|
padding: 8px;
|
|
border: 0.5px solid #333;
|
|
border-radius: 16px;
|
|
background: #262626;
|
|
color: #eee;
|
|
box-shadow: 0 4px 16px #0002;
|
|
font:
|
|
14px / 1.5 Arial,
|
|
"PingFang SC",
|
|
sans-serif;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
.composer button {
|
|
cursor: pointer;
|
|
border: 0;
|
|
color: inherit;
|
|
font: inherit;
|
|
background: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 4px;
|
|
}
|
|
.composer button:disabled {
|
|
opacity: 0.4;
|
|
cursor: default;
|
|
}
|
|
.referenceRow {
|
|
height: 30px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 4px 4px 0;
|
|
}
|
|
.referenceRow > button:first-child {
|
|
font-size: 12px;
|
|
border-radius: 16px;
|
|
background: #333;
|
|
color: #999;
|
|
padding: 0 6px;
|
|
height: 26px;
|
|
}
|
|
.referenceRow > button:last-child {
|
|
color: #999;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
.sources {
|
|
display: flex;
|
|
gap: 8px;
|
|
min-height: 54.8px;
|
|
flex-wrap: wrap;
|
|
padding: 0 4px;
|
|
}
|
|
.source {
|
|
width: 48px;
|
|
height: 48px;
|
|
position: relative;
|
|
border-radius: 8px;
|
|
background: #191919;
|
|
}
|
|
.source video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
}
|
|
.source b {
|
|
position: absolute;
|
|
top: 3px;
|
|
left: 3px;
|
|
font-size: 9px;
|
|
font-weight: 400;
|
|
background: #0009;
|
|
border-radius: 8px;
|
|
padding: 0 3px;
|
|
}
|
|
.source > svg {
|
|
position: absolute;
|
|
top: 16px;
|
|
left: 16px;
|
|
width: 16px;
|
|
height: 16px;
|
|
padding: 3px;
|
|
border-radius: 50%;
|
|
background: #0009;
|
|
}
|
|
.source > span {
|
|
position: absolute;
|
|
bottom: 2px;
|
|
left: 3px;
|
|
font-size: 8px;
|
|
background: #0009;
|
|
line-height: 11px;
|
|
}
|
|
.source > button {
|
|
display: none;
|
|
position: absolute;
|
|
top: -4px;
|
|
right: -4px;
|
|
width: 15px;
|
|
height: 15px;
|
|
border-radius: 50%;
|
|
background: #666;
|
|
}
|
|
.source:hover > button,
|
|
.source:focus-within > button {
|
|
display: flex;
|
|
}
|
|
.composer textarea {
|
|
display: block;
|
|
width: 100%;
|
|
resize: none;
|
|
border: 0;
|
|
outline: 0;
|
|
background: transparent;
|
|
color: #eee;
|
|
padding: 8px 4px;
|
|
font:
|
|
14px / 1.8 Arial,
|
|
"PingFang SC",
|
|
sans-serif;
|
|
}
|
|
.composer textarea::placeholder {
|
|
color: #777;
|
|
}
|
|
.controls {
|
|
height: 32px;
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
.controls .mode,
|
|
.controls .parameters {
|
|
font-size: 12px;
|
|
height: 32px;
|
|
padding: 0 8px;
|
|
border-radius: 8px;
|
|
background: #333;
|
|
}
|
|
.controls .mode {
|
|
background: none;
|
|
}
|
|
.controls .send {
|
|
margin-left: auto;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 12px;
|
|
background: white;
|
|
color: #222;
|
|
}
|
|
.popup {
|
|
position: absolute;
|
|
z-index: 5;
|
|
bottom: 40px;
|
|
padding: 12px;
|
|
background: #262626;
|
|
border: 0.5px solid #393939;
|
|
border-radius: 16px;
|
|
box-shadow: 0 4px 16px #0006;
|
|
color: #929292;
|
|
}
|
|
.settings {
|
|
left: 112px;
|
|
width: 340px;
|
|
}
|
|
.musicDetails {
|
|
margin-top: 10px;
|
|
border-top: 1px solid #393939;
|
|
padding-top: 7px;
|
|
}
|
|
.musicDetails summary {
|
|
cursor: pointer;
|
|
font-size: 12px;
|
|
}
|
|
.settings label {
|
|
display: block;
|
|
font-size: 12px;
|
|
margin: 0 0 8px;
|
|
}
|
|
.ratios {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.ratios button {
|
|
height: 62px;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
border: 1px solid #393939;
|
|
border-radius: 8px;
|
|
}
|
|
.ratios i {
|
|
display: block;
|
|
border: 1.5px solid currentColor;
|
|
border-radius: 1px;
|
|
}
|
|
.settings button[aria-pressed="true"] {
|
|
color: white;
|
|
background: #414141;
|
|
border-color: #999;
|
|
}
|
|
.duration {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 8px;
|
|
height: 22px;
|
|
}
|
|
.duration input[type="range"] {
|
|
min-width: 0;
|
|
flex: 1;
|
|
accent-color: white;
|
|
height: 4px;
|
|
}
|
|
.duration input[type="number"] {
|
|
width: 48px;
|
|
height: 22px;
|
|
appearance: textfield;
|
|
background: #333;
|
|
border: 0;
|
|
outline: 0;
|
|
border-radius: 6px;
|
|
color: #eee;
|
|
text-align: center;
|
|
font-size: 12px;
|
|
}
|
|
.duration input::-webkit-inner-spin-button {
|
|
appearance: none;
|
|
}
|
|
.duration > span {
|
|
font-size: 12px;
|
|
}
|
|
.resolutions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
.resolutions button {
|
|
flex: 1;
|
|
height: 34px;
|
|
border: 1px solid #393939;
|
|
border-radius: 10px;
|
|
font-size: 12px;
|
|
}
|
|
.modeMenu {
|
|
left: 8px;
|
|
width: 160px;
|
|
padding: 6px;
|
|
}
|
|
.modeMenu button {
|
|
width: 100%;
|
|
height: 36px;
|
|
padding: 0 8px;
|
|
justify-content: space-between;
|
|
color: #ddd;
|
|
font-size: 13px;
|
|
border-radius: 8px;
|
|
}
|
|
.modeMenu button:hover,
|
|
.sourceMenu button:hover {
|
|
background: #383838;
|
|
}
|
|
.sourceMenu {
|
|
left: 8px;
|
|
bottom: calc(100% - 40px);
|
|
width: 260px;
|
|
max-height: 320px;
|
|
overflow: auto;
|
|
}
|
|
.sourceMenu > div,
|
|
.sourceMenu > p {
|
|
font-size: 12px;
|
|
padding: 8px 4px;
|
|
}
|
|
.sourceMenu button {
|
|
width: 100%;
|
|
height: 36px;
|
|
justify-content: flex-start;
|
|
padding: 0 8px;
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
color: #ddd;
|
|
}
|
|
.sourceMenu button span {
|
|
flex: 1;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
text-align: left;
|
|
}
|
|
.error {
|
|
color: #fca5a5;
|
|
font-size: 12px;
|
|
padding: 4px;
|
|
}
|
|
@media (max-width: 500px) {
|
|
.settings {
|
|
left: 4px;
|
|
max-width: calc(100vw - 48px);
|
|
}
|
|
}
|
|
|
|
.tracks { max-height: 54px; overflow: hidden; }
|
|
.tracks > div { position: relative; height: 12px; }
|
|
.tracks i { position: absolute; top: 0; bottom: 0; border-right: 2px solid #262626; }
|
|
|
|
.settings { max-height: min(600px, calc(100vh - 180px)); overflow-y: auto; }
|
|
.settings select { width: 100%; height: 30px; padding: 0 8px; border-radius: 6px; background: #333; color: #eee; border: 0; }
|
|
.musicUpload { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; }
|
|
.settings label.beatToggle { display: flex; gap: 8px; align-items: center; }
|
|
|
|
.emptyCard .open {
|
|
justify-content: flex-start;
|
|
padding-top: 94px;
|
|
gap: 16px;
|
|
color: #999;
|
|
font-size: 12px;
|
|
}
|
|
.emptyCard .open svg {
|
|
color: #aaa;
|
|
}
|