304 lines
6.4 KiB
SCSS
304 lines
6.4 KiB
SCSS
:root {
|
|
--anil: #1c2b8f;
|
|
--anil-fundo: #15216f;
|
|
--creme: #fff4d6;
|
|
--sol: #ffc61a;
|
|
--tinta: #1a1408;
|
|
--display: "Alfa Slab One", Georgia, serif;
|
|
--texto: "Karla", system-ui, sans-serif;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--anil);
|
|
color: var(--creme);
|
|
font: 400 1.0625rem/1.45 var(--texto);
|
|
}
|
|
|
|
button, input { font: inherit; color: inherit; }
|
|
button:not(:disabled) { cursor: pointer; }
|
|
:focus-visible { outline: 3px solid var(--creme); outline-offset: 3px; }
|
|
input[type="range"] { width: 100%; accent-color: var(--sol); }
|
|
|
|
.mixer {
|
|
display: grid;
|
|
grid-template-columns: minmax(18rem, 22rem) 1fr;
|
|
align-items: start;
|
|
}
|
|
|
|
.console {
|
|
position: sticky;
|
|
top: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
padding: 1.5rem 2rem;
|
|
background: var(--anil-fundo);
|
|
|
|
h1 {
|
|
margin: 0;
|
|
color: var(--sol);
|
|
font: 400 clamp(2.75rem, 5vw, 3.75rem)/1 var(--display);
|
|
}
|
|
}
|
|
|
|
.andamento { display: grid; gap: .4rem; }
|
|
|
|
.bpm {
|
|
font: 400 clamp(4rem, 8vw, 5.75rem)/.95 var(--display);
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.bpm-linha {
|
|
display: grid;
|
|
grid-template-columns: 2.75rem 1fr 2.75rem;
|
|
gap: .75rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.passo, .tap {
|
|
background: none;
|
|
border: 2px solid var(--creme);
|
|
border-radius: 999px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.passo { height: 2.75rem; font-size: 1.5rem; line-height: 1; }
|
|
.tap { min-height: 2.75rem; padding: .25rem 1.25rem; }
|
|
.passo:active, .tap:active, .tap[aria-pressed="true"] { background: var(--creme); color: var(--anil-fundo); }
|
|
|
|
.tocar {
|
|
flex: none;
|
|
min-height: 4.25rem;
|
|
border: 0;
|
|
background: var(--sol);
|
|
color: var(--tinta);
|
|
font: 400 2rem/1 var(--display);
|
|
// Borda irregular, como um corte de xilogravura.
|
|
clip-path: polygon(1% 7%, 22% 2%, 48% 6%, 76% 0, 99% 5%, 100% 48%, 98% 94%, 71% 100%, 44% 95%, 19% 99%, 0 93%, 2% 46%);
|
|
|
|
&:disabled { opacity: .6; }
|
|
&[aria-pressed="true"] { background: var(--creme); }
|
|
}
|
|
|
|
.status { margin: -.25rem 0 0; min-height: 2.9em; }
|
|
|
|
.inicio-bloco { display: grid; gap: .4rem; font-weight: 700; }
|
|
|
|
.inicio {
|
|
display: grid;
|
|
grid-template-columns: repeat(12, 1fr);
|
|
gap: 3px;
|
|
|
|
button {
|
|
min-width: 0;
|
|
height: 1.75rem;
|
|
padding: 0;
|
|
border: 0;
|
|
background: rgba(255, 244, 214, .16);
|
|
font-size: .75rem;
|
|
font-weight: 700;
|
|
|
|
&.forte { background: rgba(255, 244, 214, .34); }
|
|
&.atual { background: var(--sol); color: var(--tinta); }
|
|
}
|
|
}
|
|
|
|
.bip-linha {
|
|
display: grid;
|
|
grid-template-columns: max-content 1fr;
|
|
gap: .75rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.geral { display: grid; gap: .25rem; font-weight: 700; margin-top: auto; }
|
|
|
|
.ritmos {
|
|
display: grid;
|
|
gap: 2.5rem;
|
|
min-width: 0;
|
|
padding: 1.5rem clamp(1.25rem, 3vw, 3rem) 3rem;
|
|
}
|
|
|
|
.ritmo h2 {
|
|
margin: 0 0 1rem;
|
|
color: var(--cor);
|
|
font: 400 2.25rem/1.1 var(--display);
|
|
}
|
|
|
|
.roda {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
|
|
gap: 1.5rem clamp(1rem, 2vw, 1.75rem);
|
|
}
|
|
|
|
.canal { display: grid; gap: .5rem; min-width: 0; }
|
|
|
|
.disco {
|
|
position: relative;
|
|
display: block;
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: 50%;
|
|
background: rgba(255, 244, 214, .07);
|
|
color: var(--cor);
|
|
transition: background-color .12s linear, color .12s linear;
|
|
|
|
svg { position: absolute; inset: 0; width: 100%; height: 100%; }
|
|
|
|
&:disabled { opacity: .45; }
|
|
&:not(:disabled):hover { background: rgba(255, 244, 214, .15); }
|
|
|
|
.aceso { display: none; }
|
|
|
|
&[aria-pressed="true"], &.soando {
|
|
background: var(--cor);
|
|
color: var(--tinta);
|
|
|
|
.base .barras { opacity: .32; }
|
|
.aceso {
|
|
display: block;
|
|
-webkit-mask: conic-gradient(#000 var(--p, 0deg), transparent 0);
|
|
mask: conic-gradient(#000 var(--p, 0deg), transparent 0);
|
|
}
|
|
}
|
|
}
|
|
|
|
.barras { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
|
|
.pontos { fill: currentColor; }
|
|
|
|
.nome {
|
|
position: absolute;
|
|
inset: 0;
|
|
margin: auto;
|
|
width: 50%;
|
|
height: max-content;
|
|
font-size: .875rem;
|
|
font-weight: 700;
|
|
line-height: 1.1;
|
|
text-align: center;
|
|
}
|
|
|
|
.volume {
|
|
display: grid;
|
|
grid-template-columns: 1.5rem 1fr;
|
|
gap: .5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
kbd {
|
|
color: var(--cor);
|
|
font: 700 .875rem/1 var(--texto);
|
|
text-align: center;
|
|
}
|
|
|
|
[hidden] { display: none !important; }
|
|
|
|
.palco { min-width: 0; }
|
|
|
|
.abas {
|
|
display: flex;
|
|
gap: 1.75rem;
|
|
padding: 1.25rem clamp(1.25rem, 3vw, 3rem) 0;
|
|
|
|
button {
|
|
padding: 0 0 .25rem;
|
|
border: 0;
|
|
border-bottom: 4px solid transparent;
|
|
background: none;
|
|
font: 400 1.25rem/1.2 var(--display);
|
|
opacity: .7;
|
|
|
|
&[aria-selected="true"] { border-color: var(--sol); color: var(--sol); opacity: 1; }
|
|
}
|
|
}
|
|
|
|
.joystick {
|
|
display: grid;
|
|
gap: 1rem;
|
|
justify-items: start;
|
|
padding: 1.5rem clamp(1.25rem, 3vw, 3rem) 3rem;
|
|
|
|
h2 { margin: 0; color: var(--sol); font: 400 2.25rem/1.1 var(--display); }
|
|
p { margin: 0; max-width: 34rem; }
|
|
}
|
|
|
|
.joy-paineis { display: grid; gap: 2.5rem; width: 100%; }
|
|
|
|
.joy-painel {
|
|
display: grid;
|
|
gap: 1rem;
|
|
justify-items: start;
|
|
|
|
h3 { margin: 0; font: 400 1.5rem/1.2 var(--display); }
|
|
}
|
|
|
|
.joy-botoes {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
|
|
gap: 1rem 2rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.joy-linha {
|
|
display: grid;
|
|
grid-template-columns: 3.5rem 1fr;
|
|
gap: .75rem;
|
|
align-items: center;
|
|
|
|
select {
|
|
width: 100%;
|
|
min-height: 2.75rem;
|
|
padding: 0 .5rem;
|
|
border: 2px solid var(--creme);
|
|
background: var(--anil-fundo);
|
|
color: var(--creme);
|
|
font: inherit;
|
|
}
|
|
}
|
|
|
|
.joy-tecla {
|
|
display: grid;
|
|
place-items: center;
|
|
width: 3.5rem;
|
|
height: 3.5rem;
|
|
border: 3px solid var(--creme);
|
|
border-radius: 50%;
|
|
font-size: .875rem;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
text-align: center;
|
|
|
|
&.apertado { background: var(--sol); border-color: var(--sol); color: var(--tinta); }
|
|
}
|
|
|
|
@media (max-width: 52rem) {
|
|
.abas { padding: 1rem 1rem 0; }
|
|
.joystick { padding: 1.25rem 1rem 7rem; }
|
|
.mixer { display: block; }
|
|
.console { position: static; height: auto; padding: 1.25rem 1rem; }
|
|
.geral { margin-top: 0; }
|
|
.ritmos { padding: 1.25rem 1rem 7rem; }
|
|
.roda { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
.volume { grid-template-columns: 1fr; }
|
|
kbd { display: none; }
|
|
|
|
.tocar {
|
|
position: fixed;
|
|
right: 1rem;
|
|
bottom: 1rem;
|
|
left: 1rem;
|
|
z-index: 2;
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.disco { transition: none; }
|
|
}
|