manual submission redesign phase H - finetuning
This commit is contained in:
@@ -23,7 +23,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{% include "fireworks_detect/includes/manual_direction_panel.html" %}
|
{% include "fireworks_detect/includes/manual_direction_panel.html" %}
|
||||||
</div>
|
</div>
|
||||||
<button id="manual-submit" class="manual-report__submit" type="button"><span aria-hidden="true">🔥</span> <span id="manual-submit-label">{% trans "I heard fireworks" %}</span></button>
|
|
||||||
<section class="manual-report__supporting" data-state="off" aria-labelledby="manual-listening-title">
|
<section class="manual-report__supporting" data-state="off" aria-labelledby="manual-listening-title">
|
||||||
<div class="manual-report__supporting-header">
|
<div class="manual-report__supporting-header">
|
||||||
<span class="manual-report__microphone" aria-hidden="true">🎙</span>
|
<span class="manual-report__microphone" aria-hidden="true">🎙</span>
|
||||||
@@ -48,6 +47,7 @@
|
|||||||
<p id="burst-error" role="alert" hidden></p>
|
<p id="burst-error" role="alert" hidden></p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
<button id="manual-submit" class="manual-report__submit" type="button"><span aria-hidden="true">🔥</span> <span id="manual-submit-label">{% trans "I heard fireworks" %}</span></button>
|
||||||
</form>
|
</form>
|
||||||
<div id="manual-submission" class="manual-report__submission" aria-live="polite"></div>
|
<div id="manual-submission" class="manual-report__submission" aria-live="polite"></div>
|
||||||
<div id="manual-compass-home">
|
<div id="manual-compass-home">
|
||||||
|
|||||||
@@ -2,9 +2,11 @@
|
|||||||
max-width: 42rem;
|
max-width: 42rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.manual-report { --manual-report-section-gap: 1rem; }
|
||||||
|
|
||||||
.manual-report__primary {
|
.manual-report__primary {
|
||||||
display: grid;
|
display: grid;
|
||||||
gap: 1rem;
|
gap: var(--manual-report-section-gap);
|
||||||
max-width: 36rem;
|
max-width: 36rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -15,7 +17,7 @@
|
|||||||
background: #151932;
|
background: #151932;
|
||||||
}
|
}
|
||||||
|
|
||||||
.manual-report__quantity #manual-occurrences {
|
.manual-report .manual-report__quantity #manual-occurrences {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
min-height: 3.75rem;
|
min-height: 3.75rem;
|
||||||
@@ -35,10 +37,10 @@
|
|||||||
.manual-report__quantity #manual-occurrences::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
|
.manual-report__quantity #manual-occurrences::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
|
||||||
|
|
||||||
.manual-report__stepper { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; align-items: center; gap: .5rem; }
|
.manual-report__stepper { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem; align-items: center; gap: .5rem; }
|
||||||
.manual-report__stepper button { width: 3.5rem; min-height: 3.5rem; border: 1px solid #6d54ac; border-radius: 50%; color: #f5f0ff; font: inherit; font-size: 2rem; background: #302553; cursor: pointer; }
|
.manual-report__stepper button { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; min-height: 0; padding: 0; border: 1px solid #6d54ac; border-radius: 50%; color: #f5f0ff; font: inherit; font-size: 2rem; line-height: 1; background: #302553; cursor: pointer; }
|
||||||
.manual-report__stepper button:disabled { opacity: .4; cursor: default; }
|
.manual-report__stepper button:disabled { opacity: .4; cursor: default; }
|
||||||
|
|
||||||
.manual-report__primary .manual-direction-panel {
|
.manual-report .manual-report__primary .manual-direction-panel {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border-radius: 1rem;
|
border-radius: 1rem;
|
||||||
@@ -58,7 +60,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 36rem;
|
max-width: 36rem;
|
||||||
min-height: 4.5rem;
|
min-height: 4.5rem;
|
||||||
margin-top: 1rem;
|
margin-top: var(--manual-report-section-gap);
|
||||||
}
|
}
|
||||||
|
|
||||||
.manual-report__submit:disabled { cursor: wait; opacity: .72; }
|
.manual-report__submit:disabled { cursor: wait; opacity: .72; }
|
||||||
@@ -75,7 +77,7 @@
|
|||||||
|
|
||||||
.manual-report__supporting {
|
.manual-report__supporting {
|
||||||
max-width: 36rem;
|
max-width: 36rem;
|
||||||
margin-top: 1.5rem;
|
margin-top: var(--manual-report-section-gap);
|
||||||
padding-top: 1.25rem;
|
padding-top: 1.25rem;
|
||||||
border-top: 1px solid #584891;
|
border-top: 1px solid #584891;
|
||||||
}
|
}
|
||||||
@@ -115,7 +117,7 @@
|
|||||||
|
|
||||||
@media (max-width: 42rem) {
|
@media (max-width: 42rem) {
|
||||||
.home-grid { grid-template-columns: minmax(0, 1fr); }
|
.home-grid { grid-template-columns: minmax(0, 1fr); }
|
||||||
body:not(.dashboard-page) { padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px)); }
|
body:not(.dashboard-page) { padding: max(1rem, env(safe-area-inset-top, 0px)) max(.5rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(.5rem, env(safe-area-inset-left, 0px)); }
|
||||||
.home-grid .manual-report, .dashboard-report, .dashboard-report .manual-report { overflow: visible; }
|
.home-grid .manual-report, .dashboard-report, .dashboard-report .manual-report { overflow: visible; }
|
||||||
.manual-report { padding: 1.25rem; }
|
.manual-report { padding: 1.25rem; }
|
||||||
.manual-report__header { padding-right: 2.5rem; }
|
.manual-report__header { padding-right: 2.5rem; }
|
||||||
@@ -139,7 +141,7 @@
|
|||||||
.manual-report { padding: 1rem; }
|
.manual-report { padding: 1rem; }
|
||||||
.manual-report__quantity { padding: .75rem; }
|
.manual-report__quantity { padding: .75rem; }
|
||||||
.manual-report__stepper { grid-template-columns: 3rem minmax(0, 1fr) 3rem; gap: .25rem; }
|
.manual-report__stepper { grid-template-columns: 3rem minmax(0, 1fr) 3rem; gap: .25rem; }
|
||||||
.manual-report__stepper button { width: 3rem; min-height: 3rem; }
|
.manual-report__stepper button { width: 3rem; height: 3rem; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.manual-report__heading-row { display: flex; align-items: center; gap: .7rem; }
|
.manual-report__heading-row { display: flex; align-items: center; gap: .7rem; }
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
/* empty css */import"./fireworks-home.js-BqdOneRR.js";import"./map.js-BLPiBo7S.js";import"../../../manual-report-F-gAwzUu.js";import"../../../theme-DXAi27ON.js";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/* empty css */import"./fireworks-home.js-BqdOneRR.js";import"./map.js-BLPiBo7S.js";import"../../../manual-report-BZJOqD3n.js";import"../../../theme-DXAi27ON.js";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/* empty css */import"./fireworks-home.js-BqdOneRR.js";import"./map.js-BLPiBo7S.js";import"../../../manual-report-C5I5hNgz.js";import"../../../theme-DXAi27ON.js";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/* empty css */import"./fireworks-home.js-BqdOneRR.js";import"./map.js-BLPiBo7S.js";import"../../../manual-report-lZw4VGX1.js";import"../../../theme-DXAi27ON.js";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
/* empty css */import"./fireworks-home.js-BqdOneRR.js";import"./map.js-BLPiBo7S.js";import"../../../manual-report-Bn_wPR6q.js";import"../../../theme-DXAi27ON.js";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import"../../../manual-report-C5I5hNgz.js";import"../../../theme-DXAi27ON.js";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import"../../../manual-report-BZJOqD3n.js";import"../../../theme-DXAi27ON.js";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import"../../../manual-report-Bn_wPR6q.js";import"../../../theme-DXAi27ON.js";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import"../../../manual-report-lZw4VGX1.js";import"../../../theme-DXAi27ON.js";
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
import"../../../manual-report-F-gAwzUu.js";import"../../../theme-DXAi27ON.js";
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user