mirror of
https://github.com/PR0M3TH3AN/VoxVera.git
synced 2026-10-27 09:40:40 +00:00
740 lines
11 KiB
CSS
740 lines
11 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--ink: #111;
|
|
--muted: #5b5b5b;
|
|
--line: #c9c9c9;
|
|
--soft: #f3f3f1;
|
|
--accent: #b80000;
|
|
--ok: #1d6b3a;
|
|
--warn: #8a4d00;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
color: var(--ink);
|
|
background: #fff;
|
|
font-family: "Courier New", Courier, monospace;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
select,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
button {
|
|
min-height: 40px;
|
|
padding: 8px 14px;
|
|
border: 1px solid #000;
|
|
background: #000;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover {
|
|
background: #333;
|
|
}
|
|
|
|
.secondary-button {
|
|
background: #fff;
|
|
color: #000;
|
|
}
|
|
|
|
.secondary-button:hover {
|
|
background: #eee;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
gap: 24px;
|
|
justify-content: space-between;
|
|
align-items: flex-end;
|
|
padding: 20px clamp(16px, 4vw, 42px);
|
|
border-bottom: 2px solid #000;
|
|
}
|
|
|
|
.topbar h1,
|
|
.topbar p,
|
|
.section-title h2,
|
|
.preview-toolbar h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.topbar h1 {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.topbar p {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.mode-tabs {
|
|
display: inline-flex;
|
|
border: 1px solid #000;
|
|
}
|
|
|
|
.topbar-controls {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.topbar-controls select {
|
|
width: auto;
|
|
min-height: 40px;
|
|
max-width: 220px;
|
|
}
|
|
|
|
.tab {
|
|
border: 0;
|
|
border-right: 1px solid #000;
|
|
background: #fff;
|
|
color: #000;
|
|
}
|
|
|
|
.tab:last-child {
|
|
border-right: 0;
|
|
}
|
|
|
|
.tab.active {
|
|
background: #000;
|
|
color: #fff;
|
|
}
|
|
|
|
main {
|
|
padding: 18px clamp(16px, 4vw, 42px) 36px;
|
|
}
|
|
|
|
.panel {
|
|
display: none;
|
|
}
|
|
|
|
.panel.active {
|
|
display: block;
|
|
}
|
|
|
|
.viewer-floating {
|
|
display: none;
|
|
}
|
|
|
|
.workspace {
|
|
display: grid;
|
|
grid-template-columns: minmax(320px, 1.15fr) minmax(280px, 0.85fr);
|
|
gap: 24px;
|
|
align-items: start;
|
|
}
|
|
|
|
.editor-form,
|
|
.result-panel {
|
|
min-width: 0;
|
|
}
|
|
|
|
.section-title,
|
|
.preview-toolbar {
|
|
display: flex;
|
|
gap: 16px;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.state-pill {
|
|
display: inline-block;
|
|
padding: 4px 8px;
|
|
border: 1px solid var(--line);
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.identity-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
align-items: center;
|
|
margin: 0 0 12px;
|
|
}
|
|
|
|
.identity-row .secondary-button {
|
|
min-height: 32px;
|
|
padding: 5px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.editor-form label {
|
|
display: grid;
|
|
gap: 5px;
|
|
margin-bottom: 12px;
|
|
font-size: 13px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea {
|
|
width: 100%;
|
|
border: 1px solid #000;
|
|
border-radius: 0;
|
|
background: #fff;
|
|
color: #000;
|
|
padding: 8px;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
}
|
|
|
|
.field-grid {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 120px;
|
|
gap: 12px;
|
|
}
|
|
|
|
.actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.result-list {
|
|
display: grid;
|
|
grid-template-columns: 90px minmax(0, 1fr);
|
|
gap: 8px 12px;
|
|
margin: 0 0 12px;
|
|
}
|
|
|
|
.result-list dt {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.result-list dd {
|
|
margin: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.copy-value {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
gap: 8px;
|
|
align-items: start;
|
|
}
|
|
|
|
.copy-button {
|
|
min-height: 28px;
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.relay-results {
|
|
display: grid;
|
|
gap: 4px;
|
|
}
|
|
|
|
.relay-ok {
|
|
color: var(--ok);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.relay-error {
|
|
color: var(--warn);
|
|
}
|
|
|
|
code {
|
|
display: block;
|
|
overflow-wrap: anywhere;
|
|
white-space: normal;
|
|
}
|
|
|
|
.status-line {
|
|
min-height: 22px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.field-fit-status {
|
|
margin: 0 0 10px;
|
|
color: var(--warn);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.preview-band {
|
|
margin-top: 26px;
|
|
border-top: 2px solid #000;
|
|
padding-top: 18px;
|
|
}
|
|
|
|
.flyer-preview {
|
|
overflow-x: auto;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.flyer-sheet {
|
|
display: flex;
|
|
width: 8.5in;
|
|
height: 11in;
|
|
border: 1px solid #000;
|
|
background: #fff;
|
|
color: #000;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.flyer-sheet.no-tear-offs .tear-offs {
|
|
display: none;
|
|
}
|
|
|
|
.flyer-sheet.no-tear-offs .flyer-content {
|
|
width: 100%;
|
|
}
|
|
|
|
.tear-offs {
|
|
width: 3.75in;
|
|
padding: 8px;
|
|
border-right: 1px dashed #000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: 5px;
|
|
}
|
|
|
|
.tear-off {
|
|
display: flex;
|
|
gap: 12px;
|
|
height: 1in;
|
|
padding: 5px;
|
|
border: 1px dashed #000;
|
|
font-size: 10px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.qr-box {
|
|
flex: 0 0 0.72in;
|
|
width: 0.72in;
|
|
height: 0.72in;
|
|
border: 1px solid #000;
|
|
display: grid;
|
|
place-items: center;
|
|
font-size: 9px;
|
|
text-align: center;
|
|
}
|
|
|
|
.flyer-content {
|
|
width: 4.75in;
|
|
padding: 0.28in;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
text-align: center;
|
|
}
|
|
|
|
.flyer-content h1 {
|
|
margin: 0 0 0.18in;
|
|
font-size: 34px;
|
|
line-height: 1.05;
|
|
}
|
|
|
|
.flyer-content .subtitle {
|
|
margin-bottom: 0.16in;
|
|
color: var(--accent);
|
|
font-weight: 700;
|
|
font-size: 21px;
|
|
}
|
|
|
|
.message {
|
|
margin-top: 0.12in;
|
|
text-align: left;
|
|
font-size: 15px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.main-qr {
|
|
align-self: center;
|
|
margin-top: 0.18in;
|
|
width: 1.25in;
|
|
height: 1.25in;
|
|
}
|
|
|
|
.footer {
|
|
margin-top: auto;
|
|
font-size: 11px;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
a {
|
|
color: var(--accent);
|
|
}
|
|
|
|
.container {
|
|
display: flex;
|
|
flex-direction: row;
|
|
width: 8.5in;
|
|
height: 11in;
|
|
border: 1px solid #000;
|
|
background: #fff;
|
|
color: #000;
|
|
box-sizing: border-box;
|
|
overflow: hidden;
|
|
page-break-inside: avoid;
|
|
}
|
|
|
|
.container.no-tear-offs .left-tear-offs {
|
|
display: none;
|
|
}
|
|
|
|
.container.no-tear-offs .content {
|
|
width: 100%;
|
|
}
|
|
|
|
.left-tear-offs {
|
|
width: 3.75in;
|
|
padding: 8px;
|
|
border-right: 1px dashed #000;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
gap: 5px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.tear-off-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
padding-top: 1px;
|
|
overflow-wrap: anywhere;
|
|
word-break: normal;
|
|
hyphens: none;
|
|
}
|
|
|
|
.qr-code {
|
|
width: 80px;
|
|
height: 80px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.qr-code svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.qr-error {
|
|
display: grid;
|
|
width: 100%;
|
|
height: 100%;
|
|
place-items: center;
|
|
border: 1px solid #000;
|
|
font-size: 9px;
|
|
text-align: center;
|
|
}
|
|
|
|
.qr-placeholder {
|
|
width: 80px;
|
|
height: 80px;
|
|
flex-shrink: 0;
|
|
background:
|
|
linear-gradient(90deg, #000 8px, transparent 8px 16px, #000 16px 24px, transparent 24px 32px),
|
|
linear-gradient(#000 8px, transparent 8px 16px, #000 16px 24px, transparent 24px 32px);
|
|
background-color: #fff;
|
|
background-size: 32px 32px;
|
|
border: 8px solid #000;
|
|
}
|
|
|
|
.content {
|
|
width: calc(8.5in - 3.75in);
|
|
padding: 15px 20px;
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
page-break-inside: avoid;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.content h1 {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 24px;
|
|
line-height: 1.2;
|
|
letter-spacing: 2px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
}
|
|
|
|
.distribute {
|
|
font-size: 18px;
|
|
line-height: 1.2;
|
|
letter-spacing: 6px;
|
|
margin: 2px 0;
|
|
padding: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
}
|
|
|
|
.container .message {
|
|
flex: 1;
|
|
margin-top: 4px;
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
text-align: left;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-start;
|
|
white-space: pre-wrap;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
}
|
|
|
|
.qr-code-body {
|
|
width: 100%;
|
|
height: auto;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-top: 10px;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.qr-code-body .main-qr {
|
|
width: 80px;
|
|
height: 80px;
|
|
}
|
|
|
|
.qr-code-url {
|
|
font-size: 12px;
|
|
text-align: left;
|
|
overflow-wrap: anywhere;
|
|
word-break: normal;
|
|
hyphens: none;
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
padding-left: 4px;
|
|
}
|
|
|
|
hr {
|
|
border: none;
|
|
border-top: 1px solid #000;
|
|
width: 100%;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.container .footer {
|
|
font-size: 10px;
|
|
overflow-wrap: break-word;
|
|
text-align: center;
|
|
align-self: center;
|
|
width: 100%;
|
|
padding: 10px 0;
|
|
box-sizing: border-box;
|
|
border-top: 1px solid #000;
|
|
}
|
|
|
|
.container .footer p {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.container .footer .binary {
|
|
margin-bottom: 5px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.container .footer .credit {
|
|
font-size: 12px;
|
|
margin-top: 5px;
|
|
}
|
|
|
|
body.mode-viewer {
|
|
background: #fff;
|
|
}
|
|
|
|
body.mode-viewer .topbar,
|
|
body.mode-viewer #editor-panel,
|
|
body.mode-viewer .preview-toolbar {
|
|
display: none;
|
|
}
|
|
|
|
body.mode-viewer main {
|
|
padding: 0;
|
|
}
|
|
|
|
body.mode-viewer .preview-band {
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
}
|
|
|
|
body.mode-viewer .flyer-preview {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: flex-start;
|
|
min-height: 100vh;
|
|
padding: 0 0 20px;
|
|
overflow: auto;
|
|
}
|
|
|
|
body.mode-viewer .viewer-floating {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 20;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: #fff;
|
|
}
|
|
|
|
body.mode-viewer .viewer-floating button {
|
|
min-height: 34px;
|
|
padding: 6px 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
body.mode-viewer .viewer-floating select {
|
|
width: auto;
|
|
min-height: 34px;
|
|
max-width: 180px;
|
|
padding: 6px 8px;
|
|
font-size: 12px;
|
|
background: #fff;
|
|
}
|
|
|
|
body.mode-viewer #viewer-panel {
|
|
display: none;
|
|
}
|
|
|
|
body.mode-viewer #viewer-panel.drawer-open {
|
|
position: fixed;
|
|
top: 56px;
|
|
right: 12px;
|
|
bottom: 12px;
|
|
z-index: 19;
|
|
display: block;
|
|
width: min(680px, calc(100vw - 24px));
|
|
overflow: auto;
|
|
padding: 16px;
|
|
border: 2px solid #000;
|
|
background: #fff;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
|
|
}
|
|
|
|
body.mode-viewer #viewer-panel.drawer-open .workspace {
|
|
display: block;
|
|
}
|
|
|
|
body.mode-viewer #viewer-panel.drawer-open .result-panel {
|
|
margin-top: 18px;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.topbar,
|
|
.workspace,
|
|
.field-grid {
|
|
display: block;
|
|
}
|
|
|
|
.mode-tabs {
|
|
margin-top: 14px;
|
|
}
|
|
|
|
.result-panel {
|
|
margin-top: 22px;
|
|
}
|
|
|
|
.flyer-sheet,
|
|
.container {
|
|
transform: scale(0.58);
|
|
transform-origin: top left;
|
|
margin-bottom: -4.5in;
|
|
}
|
|
|
|
body.mode-viewer .flyer-preview {
|
|
justify-content: flex-start;
|
|
min-height: 0;
|
|
}
|
|
}
|
|
|
|
@media print {
|
|
@page {
|
|
size: Letter portrait;
|
|
margin: 0;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
width: 8.5in;
|
|
height: 11in;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
body > header,
|
|
body > .viewer-floating,
|
|
.viewer-floating,
|
|
.viewer-floating *,
|
|
#open-viewer-controls,
|
|
#viewer-print,
|
|
#viewer-editor,
|
|
#viewer-lang,
|
|
body > main > .panel,
|
|
.preview-toolbar,
|
|
.viewer-drawer {
|
|
display: none !important;
|
|
}
|
|
|
|
main {
|
|
display: block;
|
|
width: 8.5in;
|
|
height: 11in;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.preview-band {
|
|
display: block;
|
|
width: 8.5in;
|
|
height: 11in;
|
|
border: 0;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.flyer-preview {
|
|
display: block;
|
|
width: 8.5in;
|
|
height: 11in;
|
|
overflow: visible;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.flyer-sheet,
|
|
.container {
|
|
position: absolute;
|
|
inset: 0 auto auto 0;
|
|
width: 8.5in;
|
|
height: 11in;
|
|
transform: none;
|
|
margin: 0;
|
|
border: 0;
|
|
}
|
|
}
|