237 lines
No EOL
4.3 KiB
CSS
237 lines
No EOL
4.3 KiB
CSS
:root {
|
|
--tb-h: 34px;
|
|
}
|
|
|
|
.grid-widget {
|
|
container-type: inline-size;
|
|
min-width: 375px;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.grid-widget .grid-wrap {
|
|
flex: 1 1 auto;
|
|
width: 100%;
|
|
position: relative;
|
|
overflow: hidden;
|
|
min-height: 375px;
|
|
z-index: 0;
|
|
}
|
|
|
|
.grid-widget [data-toolbar].toolbar {
|
|
display: grid !important;
|
|
grid-template-rows: auto auto;
|
|
align-content: start;
|
|
gap: .5rem;
|
|
overflow: visible;
|
|
}
|
|
|
|
.grid-widget [data-toolbar] .toolbar-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: .5rem;
|
|
min-width: 0;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.grid-widget [data-toolbar] .toolbar-row--primary,
|
|
.grid-widget [data-toolbar] .toolbar-row--secondary {
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.grid-widget [data-toolbar] .toolbar-row--secondary {
|
|
opacity: .95;
|
|
}
|
|
|
|
/* WIDE: 1 row */
|
|
@container (min-width: 750px) {
|
|
.grid-widget [data-toolbar].toolbar {
|
|
display: flex !important;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
gap: .5rem;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.grid-widget [data-toolbar] .toolbar-row {
|
|
display: contents;
|
|
}
|
|
|
|
.grid-widget [data-toolbar] .toolbar-row--primary,
|
|
.grid-widget [data-toolbar] .toolbar-row--secondary {
|
|
overflow: visible;
|
|
}
|
|
}
|
|
|
|
.grid-widget [data-grid] {
|
|
position: absolute;
|
|
cursor: crosshair;
|
|
width: 100%;
|
|
height: 100%;
|
|
touch-action: none;
|
|
margin: 0 auto;
|
|
max-width: 100%;
|
|
z-index: 0;
|
|
inset: 0;
|
|
}
|
|
|
|
.grid-widget [data-canvas],
|
|
.grid-widget [data-coords],
|
|
.grid-widget [data-dot] {
|
|
position: absolute;
|
|
}
|
|
|
|
.grid-widget [data-toolbar]::-webkit-scrollbar {
|
|
height: 8px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.grid-widget [data-grid-wrap] {
|
|
min-width: 0;
|
|
}
|
|
|
|
.grid-widget [data-coords] {
|
|
bottom: 10px;
|
|
pointer-events: none;
|
|
left: 10px;
|
|
}
|
|
|
|
.grid-widget [data-canvas] {
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
inset: 0;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: block;
|
|
}
|
|
|
|
.grid-widget [data-dot] {
|
|
transform: translate(-50%, -50%);
|
|
z-index: 2;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.grid-widget .toolbar-range {
|
|
width: 120px;
|
|
margin: 0;
|
|
flex: 0 0 120px;
|
|
}
|
|
|
|
.grid-widget .dropdown-menu {
|
|
min-width: 200px;
|
|
padding: .5rem .75rem;
|
|
border-radius: .75rem;
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
|
|
position: absolute;
|
|
z-index: 1000 !important;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.grid-widget .dropdown-menu>*:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.grid-widget .dropdown-menu>*:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.grid-widget .dropdown-menu .form-range {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
.grid-widget [data-toolbar] .badge,
|
|
.grid-widget [data-toolbar] .input-group-text {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.grid-widget [data-toolbar]>* {
|
|
align-self: center;
|
|
}
|
|
|
|
.grid-widget [data-toolbar] .vr {
|
|
align-self: stretch;
|
|
}
|
|
|
|
.grid-widget [data-toolbar] .btn-group,
|
|
.grid-widget [data-toolbar] .dropdown,
|
|
.grid-widget [data-toolbar] .vr {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.grid-widget .toolbar-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: .25rem;
|
|
padding: .25rem;
|
|
border: 1px solid rgba(0, 0, 0, .08);
|
|
border-radius: .5rem;
|
|
background: rgba(0, 0, 0, .02);
|
|
}
|
|
|
|
.grid-widget .btn,
|
|
.grid-widget .form-control,
|
|
.grid-widget .badge {
|
|
height: var(--tb-h);
|
|
}
|
|
|
|
.grid-widget .toolbar .btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 .5rem;
|
|
}
|
|
|
|
.grid-widget .toolbar .form-control-color {
|
|
width: var(--tb-h);
|
|
padding: 0;
|
|
}
|
|
|
|
.grid-widget .tb-btn {
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.grid-widget .tb-btn small {
|
|
font-size: 11px;
|
|
opacity: .75;
|
|
}
|
|
|
|
.grid-widget .dropdown-toggle::after {
|
|
display: none;
|
|
}
|
|
|
|
.grid-widget .toolbar .btn-group .btn {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.grid-widget .toolbar .btn-group .btn:first-child {
|
|
border-top-left-radius: .5rem;
|
|
border-bottom-left-radius: .5rem;
|
|
}
|
|
|
|
.grid-widget .toolbar .btn-group .btn:last-child {
|
|
border-top-right-radius: .5rem;
|
|
border-bottom-right-radius: .5rem;
|
|
}
|
|
|
|
.grid-widget .btn-check:checked+.btn {
|
|
background: rgba(0, 0, 0, .08);
|
|
border-color: rgba(0, 0, 0, .18);
|
|
}
|
|
|
|
.grid-widget [data-toolbar],
|
|
.grid-widget [data-grid] {
|
|
margin-inline: auto;
|
|
}
|
|
|
|
.grid-widget [data-toolbar] {
|
|
max-width: var(--grid-maxw, 100%);
|
|
width: 100%;
|
|
} |