/* Print label dialog (redmine_qbo_labels) */ /* The label font, also used by the print agent (DejaVu Sans Bold, Latin subset; see assets/fonts/LICENSE) */ @font-face { font-family: 'QboLabel'; src: url('../fonts/qbo-label-bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; } #qbo-label-dialog .qbo-label-preview-wrap { margin: 0 0 1em; text-align: center; } /* The label as it comes off the roll, scaled to the dialog */ #qbo-label-dialog canvas.qbo-label-preview { display: block; margin: 0 auto; max-width: 100%; max-height: 160px; width: auto; height: auto; background: #fff; border: 1px solid #ccc; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); } #qbo-label-dialog .qbo-label-size { margin-top: .3em; color: #888; font-size: .9em; } #qbo-label-dialog .tabular p { padding-left: 130px; } #qbo-label-dialog .tabular label { width: 120px; margin-left: -130px; } #qbo-label-dialog input.qbo-label-line { width: 95%; font-weight: bold; font-size: 1.1em; } #qbo-label-dialog input.qbo-label-copies { width: 5em; } #qbo-label-dialog .qbo-label-warning, #qbo-label-dialog .qbo-label-status[data-state="failed"] .qbo-label-status-text { color: #c22; } #qbo-label-dialog .qbo-label-status-text { font-size: 1.2em; text-align: center; padding: .5em 0; } #qbo-label-dialog .qbo-label-status[data-state="printed"] .qbo-label-status-text { color: #1a7f37; font-weight: bold; } #qbo-label-dialog .qbo-label-status[data-state="working"] .qbo-label-status-text::before { content: ''; display: inline-block; width: .8em; height: .8em; margin-right: .5em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: qbo-label-spin .8s linear infinite; } @keyframes qbo-label-spin { to { transform: rotate(360deg); } } #qbo-label-dialog .qbo-label-for { margin-top: .2em; font-weight: bold; } /* The sidebar's Labels section */ #sidebar .qbo-label-sidebar .qbo-label-muted { color: #888; font-size: .9em; } /* Administration ยป Label printers */ table.label-printers .status-online { color: #1a7f37; font-weight: bold; } table.label-printers .status-offline { color: #c22; } table.label-printers .qbo-label-muted { color: #888; font-style: italic; } table.label-jobs td.lines { font-weight: bold; white-space: nowrap; } table.label-jobs td.status-failed, table.label-jobs td.status-expired { color: #c22; } table.label-jobs td.status-printed { color: #1a7f37; } pre.qbo-label-token { white-space: pre-wrap; word-break: break-all; } @media screen and (max-width: 899px) { #qbo-label-dialog .tabular p { padding-left: 0; } #qbo-label-dialog .tabular label { width: auto; margin-left: 0; display: block; text-align: left; float: none; } }