Compare commits
15
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7481fbf711 | ||
|
|
42735005b1 | ||
|
|
22606e7f79 | ||
|
|
a9d3331044 | ||
|
|
08e3e8f46d | ||
|
|
5c45ac845d | ||
|
|
3bb59d6021 | ||
|
|
aaed0f3548 | ||
|
|
dbbedf9ab3 | ||
|
|
ea98a547c1 | ||
|
|
091e940013 | ||
|
|
493a969ca8 | ||
|
|
3caf21794d | ||
|
|
302128fdbc | ||
|
|
e0c33ca624 |
No files matched your search
@@ -10,3 +10,4 @@ ios/App/Pods/
|
||||
ios/App/DerivedData/
|
||||
ios/App/*.xcworkspace/xcuserdata/
|
||||
ios/App/*.xcodeproj/xcuserdata/
|
||||
bug_image/*
|
||||
@@ -30,7 +30,7 @@ Open the local web address shown by Vite. Choose a dance template or add a sound
|
||||
|
||||
## Mobile downloads
|
||||
|
||||
- [Android / e/OS debug APK](downloads/BeatHound-Android-eOS-1.0.0-debug.apk) — installable on Android API 24 or newer. The same APK is intended for compatible e/OS 4+ devices.
|
||||
- [Android / e/OS debug APK 1.0.2](downloads/BeatHound-Android-eOS-1.0.2-debug.apk) — installable on Android API 24 or newer. The same APK is intended for compatible e/OS 4+ devices.
|
||||
|
||||
The Android file is a debug-signed build for testing. It is not a Google Play release package. No iOS app or download is currently supported because of financial constraints.
|
||||
|
||||
@@ -42,7 +42,7 @@ The mobile prototype uses Capacitor for Android.
|
||||
npm run android:debug
|
||||
```
|
||||
|
||||
The Android build needs JDK 21 and Android SDK Platform 36 / Build Tools 36.0.0. It writes the Gradle output and copies the APK to `downloads/BeatHound-Android-eOS-1.0.0-debug.apk`. iOS is currently unsupported for financial reasons; see the [native build guide](docs/native-builds.md).
|
||||
The Android build needs JDK 21 and Android SDK Platform 36 / Build Tools 36.0.0. It writes the Gradle output and copies the APK to `downloads/BeatHound-Android-eOS-1.0.2-debug.apk`. iOS is currently unsupported for financial reasons; see the [native build guide](docs/native-builds.md).
|
||||
|
||||
## Project checks
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ android {
|
||||
applicationId "com.ninosaurier.beathound"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
versionName "1.0.0"
|
||||
versionCode 3
|
||||
versionName "1.0.2"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
android:label="@string/title_activity_main"
|
||||
android:theme="@style/AppTheme.NoActionBarLaunch"
|
||||
android:launchMode="singleTask"
|
||||
android:windowSoftInputMode="adjustResize"
|
||||
android:exported="true">
|
||||
|
||||
<intent-filter>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1
-1
@@ -11,7 +11,7 @@
|
||||
"docs:build": "vitepress build docs",
|
||||
"docs:preview": "vitepress preview docs --host 0.0.0.0",
|
||||
"cap:sync": "npm run build:mobile && cap sync",
|
||||
"android:debug": "npm run build:mobile && cap sync android && cd android && ./gradlew assembleDebug && cd .. && mkdir -p downloads && cp android/app/build/outputs/apk/debug/app-debug.apk downloads/BeatHound-Android-eOS-1.0.0-debug.apk",
|
||||
"android:debug": "npm run build:mobile && cap sync android && cd android && ./gradlew assembleDebug && cd .. && mkdir -p downloads && cp android/app/build/outputs/apk/debug/app-debug.apk downloads/BeatHound-Android-eOS-1.0.2-debug.apk",
|
||||
"ios:sync": "npm run build:mobile && cap sync ios",
|
||||
"ios:open": "cap open ios",
|
||||
"test": "vitest run",
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { useRef } from 'react';
|
||||
import { IonButton, IonIcon, IonPopover } from '@ionic/react';
|
||||
import { ellipsisVertical } from 'ionicons/icons';
|
||||
import { usePopoverDisclosure } from '../hooks/usePopoverDisclosure';
|
||||
@@ -10,11 +9,9 @@ interface AppHeaderProps {
|
||||
}
|
||||
|
||||
export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {
|
||||
const popoverRef = useRef<HTMLIonPopoverElement>(null);
|
||||
const popover = usePopoverDisclosure();
|
||||
|
||||
function selectView(view: AppView): void {
|
||||
void popoverRef.current?.dismiss();
|
||||
onNavigate(view);
|
||||
}
|
||||
|
||||
@@ -38,7 +35,7 @@ export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {
|
||||
|
||||
<div className="app-header-actions">
|
||||
<IonButton
|
||||
id="app-menu-trigger"
|
||||
id={popover.triggerId}
|
||||
className="app-menu-trigger"
|
||||
fill="clear"
|
||||
aria-label="Open app menu"
|
||||
@@ -51,11 +48,12 @@ export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {
|
||||
|
||||
<IonPopover
|
||||
className="app-menu-popover"
|
||||
ref={popoverRef}
|
||||
trigger="app-menu-trigger"
|
||||
triggerAction="click"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="auto"
|
||||
side="bottom"
|
||||
alignment="end"
|
||||
dismissOnSelect
|
||||
onDidPresent={popover.onDidPresent}
|
||||
onDidDismiss={popover.onDidDismiss}
|
||||
>
|
||||
|
||||
@@ -24,7 +24,7 @@ export const BeatTemplateSelector = memo(function BeatTemplateSelector({
|
||||
return (
|
||||
<div className="beat-template-selector">
|
||||
<IonButton
|
||||
id="beat-template-trigger"
|
||||
id={popover.triggerId}
|
||||
className="beat-template-trigger"
|
||||
fill="solid"
|
||||
aria-label={`Dance template: ${selectedTemplate?.label ?? 'Select a template'}`}
|
||||
@@ -39,8 +39,9 @@ export const BeatTemplateSelector = memo(function BeatTemplateSelector({
|
||||
|
||||
<IonPopover
|
||||
className="beat-template-popover"
|
||||
trigger="beat-template-trigger"
|
||||
triggerAction="click"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="bottom"
|
||||
alignment="center"
|
||||
dismissOnSelect
|
||||
|
||||
@@ -3,10 +3,11 @@ import {
|
||||
IonAccordion,
|
||||
IonAccordionGroup,
|
||||
IonButton,
|
||||
IonContent,
|
||||
IonIcon,
|
||||
IonItem,
|
||||
IonLabel,
|
||||
IonPopover,
|
||||
IonModal,
|
||||
IonSearchbar,
|
||||
} from '@ionic/react';
|
||||
import { add } from 'ionicons/icons';
|
||||
@@ -16,7 +17,8 @@ import {
|
||||
isInstrumentId,
|
||||
} from '../domain/instruments';
|
||||
import type { InstrumentId } from '../domain/instruments';
|
||||
import { usePopoverDisclosure } from '../hooks/usePopoverDisclosure';
|
||||
|
||||
const PICKER_SHEET_BREAKPOINTS = [0, 0.82, 1];
|
||||
|
||||
interface InstrumentSelectorProps {
|
||||
onSelectInstrument: (instrumentId: InstrumentId) => void;
|
||||
@@ -25,8 +27,8 @@ interface InstrumentSelectorProps {
|
||||
export function InstrumentSelector({ onSelectInstrument }: InstrumentSelectorProps) {
|
||||
const [searchQuery, setSearchQuery] = useState('');
|
||||
const [expandedCategoryIds, setExpandedCategoryIds] = useState<string[]>([]);
|
||||
const popoverRef = useRef<HTMLIonPopoverElement>(null);
|
||||
const popover = usePopoverDisclosure();
|
||||
const [isPickerOpen, setIsPickerOpen] = useState(false);
|
||||
const modalRef = useRef<HTMLIonModalElement>(null);
|
||||
|
||||
const filteredCategories = useMemo(() => {
|
||||
const query = searchQuery.trim().toLowerCase();
|
||||
@@ -80,8 +82,8 @@ export function InstrumentSelector({ onSelectInstrument }: InstrumentSelectorPro
|
||||
setExpandedCategoryIds(typeof value === 'string' ? [value] : []);
|
||||
}
|
||||
|
||||
function handlePopoverDidDismiss(): void {
|
||||
popover.onDidDismiss();
|
||||
function handlePickerDidDismiss(): void {
|
||||
setIsPickerOpen(false);
|
||||
setSearchQuery('');
|
||||
setExpandedCategoryIds([]);
|
||||
}
|
||||
@@ -89,7 +91,7 @@ export function InstrumentSelector({ onSelectInstrument }: InstrumentSelectorPro
|
||||
function addInstrument(value: unknown): void {
|
||||
if (!isInstrumentId(value)) return;
|
||||
|
||||
void popoverRef.current?.dismiss();
|
||||
void modalRef.current?.dismiss();
|
||||
onSelectInstrument(value);
|
||||
}
|
||||
|
||||
@@ -99,24 +101,26 @@ export function InstrumentSelector({ onSelectInstrument }: InstrumentSelectorPro
|
||||
id="instrument-add-trigger"
|
||||
className="instrument-add-button"
|
||||
fill="solid"
|
||||
onClick={() => setIsPickerOpen(true)}
|
||||
aria-label="Open samples"
|
||||
aria-haspopup="dialog"
|
||||
aria-expanded={popover.isOpen}
|
||||
aria-expanded={isPickerOpen}
|
||||
>
|
||||
<IonIcon icon={add} slot="start" />
|
||||
Samples
|
||||
</IonButton>
|
||||
|
||||
<IonPopover
|
||||
ref={popoverRef}
|
||||
className="instrument-picker-popover"
|
||||
trigger="instrument-add-trigger"
|
||||
triggerAction="click"
|
||||
side="top"
|
||||
alignment="start"
|
||||
onDidPresent={popover.onDidPresent}
|
||||
onDidDismiss={handlePopoverDidDismiss}
|
||||
<IonModal
|
||||
ref={modalRef}
|
||||
className="instrument-picker-modal"
|
||||
isOpen={isPickerOpen}
|
||||
breakpoints={PICKER_SHEET_BREAKPOINTS}
|
||||
initialBreakpoint={1}
|
||||
expandToScroll={false}
|
||||
handle
|
||||
onDidDismiss={handlePickerDidDismiss}
|
||||
>
|
||||
<IonContent className="instrument-picker-content" scrollY={false}>
|
||||
<div className="instrument-picker-menu">
|
||||
<IonSearchbar
|
||||
className="instrument-picker-search"
|
||||
@@ -168,7 +172,8 @@ export function InstrumentSelector({ onSelectInstrument }: InstrumentSelectorPro
|
||||
<p className="instrument-picker-empty" role="status">No matching samples.</p>
|
||||
)}
|
||||
</div>
|
||||
</IonPopover>
|
||||
</IonContent>
|
||||
</IonModal>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -24,7 +24,7 @@ export const SoundRingSelector = memo(function SoundRingSelector({
|
||||
return (
|
||||
<>
|
||||
<IonButton
|
||||
id="sound-ring-selector-trigger"
|
||||
id={popover.triggerId}
|
||||
className="sound-ring-selector-trigger"
|
||||
fill="clear"
|
||||
disabled={soundIds.length === 0}
|
||||
@@ -46,8 +46,9 @@ export const SoundRingSelector = memo(function SoundRingSelector({
|
||||
|
||||
<IonPopover
|
||||
className="sound-ring-popover"
|
||||
trigger="sound-ring-selector-trigger"
|
||||
triggerAction="click"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="bottom"
|
||||
alignment="end"
|
||||
dismissOnSelect
|
||||
@@ -63,7 +64,9 @@ export const SoundRingSelector = memo(function SoundRingSelector({
|
||||
className="sound-ring-option"
|
||||
fill={selected ? 'solid' : 'clear'}
|
||||
aria-pressed={selected}
|
||||
onClick={() => onSelectSound(soundId)}
|
||||
onClick={() => {
|
||||
onSelectSound(soundId);
|
||||
}}
|
||||
>
|
||||
<span className="sound-ring-option-content">
|
||||
<span
|
||||
|
||||
@@ -10,14 +10,19 @@ interface TempoControlProps {
|
||||
onTempoChange: (tempoBpm: number) => void;
|
||||
}
|
||||
|
||||
const TEMPO_TRACK_HEIGHT = 164;
|
||||
const TEMPO_THUMB_SIZE = 18;
|
||||
|
||||
export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange }: TempoControlProps) {
|
||||
const popover = usePopoverDisclosure();
|
||||
const tempoProgress = ((tempoBpm - MIN_TEMPO_BPM) / (MAX_TEMPO_BPM - MIN_TEMPO_BPM)) * 100;
|
||||
const tempoThumbCenter = TEMPO_THUMB_SIZE / 2
|
||||
+ ((100 - tempoProgress) / 100) * (TEMPO_TRACK_HEIGHT - TEMPO_THUMB_SIZE);
|
||||
|
||||
return (
|
||||
<>
|
||||
<IonButton
|
||||
id="main-tempo-control-trigger"
|
||||
id={popover.triggerId}
|
||||
className="tempo-trigger"
|
||||
fill="solid"
|
||||
aria-label={`Change tempo, currently ${tempoBpm} BPM`}
|
||||
@@ -32,8 +37,9 @@ export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange
|
||||
|
||||
<IonPopover
|
||||
className="tempo-popover"
|
||||
trigger="main-tempo-control-trigger"
|
||||
triggerAction="click"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="top"
|
||||
alignment="start"
|
||||
onDidPresent={popover.onDidPresent}
|
||||
@@ -41,7 +47,13 @@ export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange
|
||||
>
|
||||
<div className="tempo-popover-content">
|
||||
<output className="tempo-value" aria-live="polite">{tempoBpm} BPM</output>
|
||||
<div className="tempo-range-track">
|
||||
<div
|
||||
className="tempo-range-track"
|
||||
style={{
|
||||
'--tempo-progress': `${tempoProgress}%`,
|
||||
'--tempo-thumb-center': `${tempoThumbCenter}px`,
|
||||
} as CSSProperties}
|
||||
>
|
||||
<input
|
||||
className="tempo-range"
|
||||
type="range"
|
||||
@@ -50,9 +62,9 @@ export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange
|
||||
max={MAX_TEMPO_BPM}
|
||||
step={1}
|
||||
value={tempoBpm}
|
||||
style={{ '--tempo-progress': `${tempoProgress}%` } as CSSProperties}
|
||||
onChange={(event) => onTempoChange(event.currentTarget.valueAsNumber)}
|
||||
/>
|
||||
<span className="tempo-range-thumb" aria-hidden="true" />
|
||||
</div>
|
||||
</div>
|
||||
</IonPopover>
|
||||
|
||||
@@ -19,7 +19,7 @@ export const TimeSignatureSelector = memo(function TimeSignatureSelector({
|
||||
return (
|
||||
<>
|
||||
<IonButton
|
||||
id="time-signature-trigger"
|
||||
id={popover.triggerId}
|
||||
className="meter-trigger"
|
||||
fill="solid"
|
||||
aria-label={`Change time signature, currently ${beatsPerBar}/4`}
|
||||
@@ -34,8 +34,9 @@ export const TimeSignatureSelector = memo(function TimeSignatureSelector({
|
||||
|
||||
<IonPopover
|
||||
className="meter-popover"
|
||||
trigger="time-signature-trigger"
|
||||
triggerAction="click"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="bottom"
|
||||
alignment="start"
|
||||
dismissOnSelect
|
||||
@@ -49,7 +50,9 @@ export const TimeSignatureSelector = memo(function TimeSignatureSelector({
|
||||
className="meter-option"
|
||||
fill={option === beatsPerBar ? 'solid' : 'clear'}
|
||||
aria-pressed={option === beatsPerBar}
|
||||
onClick={() => onChange(option)}
|
||||
onClick={() => {
|
||||
onChange(option);
|
||||
}}
|
||||
>
|
||||
<span className="meter-option-content">{option}/4</span>
|
||||
</IonButton>
|
||||
|
||||
@@ -8,8 +8,8 @@ export const BEATS_PER_BAR_OPTIONS = [2, 3, 4, 5, 6, 7, 8] as const;
|
||||
export type BeatsPerBar = (typeof BEATS_PER_BAR_OPTIONS)[number];
|
||||
export const TOTAL_STEPS = DEFAULT_BEATS_PER_BAR * STEPS_PER_BEAT;
|
||||
export const TEMPO_BPM = 112;
|
||||
export const MIN_TEMPO_BPM = 60;
|
||||
export const MAX_TEMPO_BPM = 180;
|
||||
export const MIN_TEMPO_BPM = 30;
|
||||
export const MAX_TEMPO_BPM = 260;
|
||||
|
||||
export function getTotalSteps(beatsPerBar: BeatsPerBar): number {
|
||||
return beatsPerBar * STEPS_PER_BEAT;
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
import { useCallback, useState } from 'react';
|
||||
import { useCallback, useId, useState } from 'react';
|
||||
|
||||
export interface PopoverDisclosure {
|
||||
triggerId: string;
|
||||
isOpen: boolean;
|
||||
onDidPresent: () => void;
|
||||
onDidDismiss: () => void;
|
||||
}
|
||||
|
||||
export function usePopoverDisclosure(): PopoverDisclosure {
|
||||
const triggerId = useId();
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
|
||||
const onDidPresent = useCallback(() => setIsOpen(true), []);
|
||||
const onDidDismiss = useCallback(() => setIsOpen(false), []);
|
||||
|
||||
return { isOpen, onDidPresent, onDidDismiss };
|
||||
return { triggerId, isOpen, onDidPresent, onDidDismiss };
|
||||
}
|
||||
@@ -249,6 +249,8 @@ describe('sequencer state transitions', () => {
|
||||
const tooSlow = sequencerReducer(initial, { type: 'tempo-changed', tempoBpm: 10 });
|
||||
const tooFast = sequencerReducer(initial, { type: 'tempo-changed', tempoBpm: 300 });
|
||||
|
||||
expect(MIN_TEMPO_BPM).toBe(30);
|
||||
expect(MAX_TEMPO_BPM).toBe(260);
|
||||
expect(tooSlow.tempoBpm).toBe(MIN_TEMPO_BPM);
|
||||
expect(tooFast.tempoBpm).toBe(MAX_TEMPO_BPM);
|
||||
});
|
||||
|
||||
+50
-45
@@ -347,6 +347,7 @@ ion-content.app-content-studio {
|
||||
--background-activated: #3b3944;
|
||||
--border-radius: 9px;
|
||||
--border-width: 0;
|
||||
width: min(230px, calc(100vw - 32px));
|
||||
height: 40px;
|
||||
margin: 0;
|
||||
font-size: 11px;
|
||||
@@ -372,7 +373,6 @@ ion-content.app-content-studio {
|
||||
}
|
||||
|
||||
.beat-template-popover {
|
||||
--width: 230px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
--box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
|
||||
@@ -471,6 +471,7 @@ ion-content.app-content-studio {
|
||||
--color: var(--muted);
|
||||
--border-radius: 7px;
|
||||
height: 30px;
|
||||
min-width: 160px;
|
||||
margin: 0;
|
||||
font-family: var(--mono);
|
||||
font-size: 8px;
|
||||
@@ -506,7 +507,6 @@ ion-content.app-content-studio {
|
||||
}
|
||||
|
||||
.sound-ring-popover {
|
||||
--width: 160px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
--box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
|
||||
@@ -872,17 +872,25 @@ ion-content.app-content-studio {
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
ion-popover.instrument-picker-popover {
|
||||
ion-modal.instrument-picker-modal {
|
||||
--width: min(420px, calc(100vw - 24px));
|
||||
--height: min(620px, calc(100% - (var(--ion-modal-offset-top, 0px) + 10px)));
|
||||
--max-height: calc(100% - (var(--ion-modal-offset-top, 0px) + 10px));
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
--box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
|
||||
--border-radius: 18px 18px 0 0;
|
||||
--box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
ion-content.instrument-picker-content {
|
||||
--background: var(--surface);
|
||||
--overflow: hidden;
|
||||
}
|
||||
|
||||
.instrument-picker-menu {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
max-height: min(60vh, 420px);
|
||||
height: 100%;
|
||||
max-height: 100%;
|
||||
min-height: 0;
|
||||
box-sizing: border-box;
|
||||
flex-direction: column;
|
||||
@@ -1101,7 +1109,6 @@ ion-popover.instrument-picker-popover {
|
||||
|
||||
/* Popover contents */
|
||||
.tempo-popover {
|
||||
--width: var(--tempo-control-width);
|
||||
--height: 226px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
@@ -1121,28 +1128,20 @@ ion-popover.instrument-picker-popover {
|
||||
|
||||
.tempo-range-track {
|
||||
position: relative;
|
||||
display: flex;
|
||||
width: 44px;
|
||||
height: 164px;
|
||||
flex: 0 0 164px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tempo-range {
|
||||
width: 44px;
|
||||
height: 164px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
writing-mode: vertical-lr;
|
||||
direction: rtl;
|
||||
background: transparent;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.tempo-range::-webkit-slider-runnable-track {
|
||||
.tempo-range-track::before {
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
bottom: 9px;
|
||||
left: 50%;
|
||||
width: 3px;
|
||||
height: 100%;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(
|
||||
to top,
|
||||
@@ -1151,46 +1150,52 @@ ion-popover.instrument-picker-popover {
|
||||
#58537d var(--tempo-progress),
|
||||
#58537d 100%
|
||||
);
|
||||
content: '';
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.tempo-range::-webkit-slider-thumb {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-top: 0;
|
||||
.tempo-range {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
width: 164px;
|
||||
height: 44px;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18);
|
||||
z-index: 1;
|
||||
transform: translate(-50%, -50%) rotate(-90deg);
|
||||
background: transparent;
|
||||
cursor: ns-resize;
|
||||
opacity: 0;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.tempo-range::-moz-range-track {
|
||||
width: 3px;
|
||||
border-radius: 999px;
|
||||
background: #58537d;
|
||||
}
|
||||
|
||||
.tempo-range::-moz-range-progress {
|
||||
border-radius: 999px;
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.tempo-range::-moz-range-thumb {
|
||||
.tempo-range-thumb {
|
||||
position: absolute;
|
||||
top: var(--tempo-thumb-center);
|
||||
left: 50%;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18);
|
||||
pointer-events: none;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.tempo-range:focus-visible {
|
||||
.tempo-range-track:focus-within .tempo-range-thumb {
|
||||
box-shadow: 0 0 0 2px var(--base), 0 0 0 4px var(--accent);
|
||||
}
|
||||
|
||||
.tempo-range-track:focus-within {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 4px;
|
||||
}
|
||||
|
||||
.meter-popover {
|
||||
--width: 96px;
|
||||
--height: 224px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
|
||||
Reference in new issue
Block a user