mirror of
https://github.com/meshcore-dev/flasher.meshcore.io.git
synced 2026-11-23 13:18:05 +00:00
238 lines
5.1 KiB
CSS
238 lines
5.1 KiB
CSS
[v-cloak] {
|
|
display: none;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
height: 100vh;
|
|
}
|
|
|
|
body:has([v-cloak]):after {
|
|
content: '';
|
|
position: absolute;
|
|
top: calc(50% - 50px);
|
|
left: calc(50% - 50px);
|
|
width: 50px;
|
|
aspect-ratio: 1;
|
|
border-radius: 50%;
|
|
border: 8px solid #f0f0f0;
|
|
animation:
|
|
l20-1 0.8s infinite linear alternate,
|
|
l20-2 1.6s infinite linear;
|
|
}
|
|
|
|
button {
|
|
min-inline-size: unset !important;
|
|
}
|
|
|
|
@keyframes l20-1{
|
|
0% {clip-path: polygon(50% 50%,0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0% )}
|
|
12.5% {clip-path: polygon(50% 50%,0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0% )}
|
|
25% {clip-path: polygon(50% 50%,0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100% )}
|
|
50% {clip-path: polygon(50% 50%,0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100% )}
|
|
62.5% {clip-path: polygon(50% 50%,100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100% )}
|
|
75% {clip-path: polygon(50% 50%,100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100% )}
|
|
100% {clip-path: polygon(50% 50%,50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100% )}
|
|
}
|
|
@keyframes l20-2{
|
|
0% {transform:scaleY(1) rotate(0deg)}
|
|
49.99%{transform:scaleY(1) rotate(135deg)}
|
|
50% {transform:scaleY(-1) rotate(0deg)}
|
|
100% {transform:scaleY(-1) rotate(-135deg)}
|
|
}
|
|
|
|
#app {
|
|
flex-grow: 1;
|
|
/* flex item: without this it never shrinks below its widest content, so phones zoomed out */
|
|
min-width: 0;
|
|
}
|
|
|
|
#app h5.logo-top img {
|
|
height: 16px;
|
|
margin-top: -4px;
|
|
}
|
|
|
|
#app h5.logo-top span {
|
|
font-style: italic; font-weight: bold; line-height: 0.9
|
|
}
|
|
|
|
#app select {
|
|
cursor: pointer
|
|
}
|
|
/* tooltips are children of their button, so hovering one kept it open over the neighbouring buttons;
|
|
only tooltips with links need to stay reachable */
|
|
#app .tooltip:not(:has(a)) {
|
|
pointer-events: none;
|
|
}
|
|
/* top/bottom tooltips aligned to the button's start or end edge instead of centered,
|
|
so buttons near the screen edge don't push them off screen */
|
|
#app .tooltip:is(.start, .end) {
|
|
transform: translateY(-100%) scale(0.9);
|
|
}
|
|
#app :hover > .tooltip:is(.start, .end) {
|
|
transform: translateY(-100%) scale(1);
|
|
}
|
|
#app .tooltip.bottom:is(.start, .end) {
|
|
transform: translateY(100%) scale(0.9);
|
|
}
|
|
#app :hover > .tooltip.bottom:is(.start, .end) {
|
|
transform: translateY(100%) scale(1);
|
|
}
|
|
#app .tooltip.start {
|
|
left: 0;
|
|
right: auto;
|
|
}
|
|
#app .tooltip.end {
|
|
left: auto;
|
|
right: 0;
|
|
}
|
|
#app .tooltip:has(>.device) {
|
|
background: #f0f0f055;
|
|
width: auto;
|
|
}
|
|
#app img.device {
|
|
width: 400px;
|
|
max-width: 400px;
|
|
max-height: 400px;
|
|
}
|
|
#app div.autoscroller {
|
|
overflow: auto;
|
|
max-height: 300px;
|
|
display: flex;
|
|
flex-direction: column-reverse;
|
|
}
|
|
#app pre.term {
|
|
font-family: monospace;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
#app .overlay {
|
|
display: flex !important;
|
|
flex-direction: column;
|
|
}
|
|
#app .console {
|
|
overflow: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
margin: 0;
|
|
}
|
|
#app .console .holder {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 10px;
|
|
}
|
|
#app .console-input {
|
|
flex-grow: 1;
|
|
display: block;
|
|
appearance: none;
|
|
background: transparent;
|
|
border: 0;
|
|
font-family: monospace;
|
|
font-size: .875rem;
|
|
}
|
|
#app .console-input:focus, #app console-input:focus{
|
|
outline: none;
|
|
}
|
|
#app .pre {
|
|
white-space-collapse: preserve;
|
|
min-width: min(300px, 100%);
|
|
overflow-wrap: anywhere;
|
|
}
|
|
#app a {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
#app .version {
|
|
flex-wrap: wrap;
|
|
}
|
|
#app .version div.field {
|
|
min-width: 140px;
|
|
align-self: flex-start;
|
|
}
|
|
#app .version .pre {
|
|
padding-bottom: 10px;
|
|
}
|
|
#app img.icon {
|
|
height: 20px;
|
|
}
|
|
|
|
#app .welcome-banner {
|
|
background-color: var(--primary-container);
|
|
color: var(--on-primary-container);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-content: center;
|
|
padding: 0.5rem 1rem;
|
|
}
|
|
|
|
#app .welcome-banner span {
|
|
margin: auto 0;
|
|
}
|
|
|
|
.flash-container {
|
|
padding-bottom: 150px;
|
|
}
|
|
|
|
.strong {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.text-wrap {
|
|
text-wrap: auto;
|
|
}
|
|
|
|
/* BeerCSS navs and lists are nowrap and their flex items don't shrink,
|
|
so long device/firmware names pushed small phones into horizontal scrolling */
|
|
#app header nav:not(.top-nav) {
|
|
white-space: normal;
|
|
}
|
|
#app header nav:not(.top-nav) > :is(a, span) {
|
|
flex-shrink: 1;
|
|
}
|
|
#app .list > li > .max {
|
|
min-width: 0;
|
|
}
|
|
#app .list > li > .max > h6 {
|
|
white-space: normal;
|
|
}
|
|
#app .list > li > button {
|
|
min-width: 0;
|
|
block-size: auto;
|
|
min-block-size: 2.5rem;
|
|
}
|
|
#app .list > li > button > span {
|
|
white-space: normal;
|
|
text-align: start;
|
|
}
|
|
/* logo + three icon buttons must fit 320px phones */
|
|
@media screen and (width <= 540px) {
|
|
#app nav.top-nav {
|
|
gap: 0.25rem;
|
|
}
|
|
#app header nav {
|
|
gap: 0.5rem;
|
|
}
|
|
#app nav.top-nav > button {
|
|
padding-inline: 0.5rem;
|
|
}
|
|
}
|
|
@media screen and (width <= 400px) {
|
|
#app nav.top-nav > i {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media screen and (width <= 540px) {
|
|
.hide-mobile {
|
|
display: none !important;
|
|
}
|
|
.tooltip {
|
|
display: none !important;
|
|
}
|
|
}
|
|
#app li.firmware-class {
|
|
background-color: var(--surface-container);
|
|
padding: 0.25rem 1rem;
|
|
font-weight: bold;
|
|
}
|