Files
govoplan-views/webui/src/styles/views.css
T

407 lines
7.0 KiB
CSS

.titlebar-view-menu {
width: min(300px, calc(100vw - 24px));
}
.titlebar-view-menu-heading {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 34px;
padding: 4px 9px 8px;
color: var(--text-strong);
}
.titlebar-view-menu .dropdown-item > span {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.titlebar-view-menu .dropdown-item > svg {
flex: 0 0 auto;
margin-left: auto;
color: var(--accent);
}
.titlebar-view-menu .dropdown-item:disabled {
cursor: default;
opacity: .72;
}
.titlebar-view-menu-note {
margin: 8px 9px 4px;
color: var(--muted);
font-size: 12px;
line-height: 1.4;
}
.views-management-layout {
display: grid;
gap: 18px;
}
.views-admin-page.embedded > .admin-page-heading {
position: static;
margin: 0 0 18px;
padding: 0 0 14px;
box-shadow: none;
}
.views-personal-panel {
min-width: 0;
}
.views-owner-toolbar {
display: flex;
justify-content: flex-end;
margin-bottom: 16px;
}
.views-owner-toolbar .form-field {
width: min(360px, 100%);
}
.views-admin-shell {
display: grid;
grid-template-columns: 280px minmax(0, 1fr);
min-height: 620px;
max-height: calc(100vh - 190px);
overflow: hidden;
border: var(--border-line);
border-radius: var(--radius-sm);
background: var(--surface);
}
.views-definition-pane {
display: flex;
flex-direction: column;
min-width: 0;
min-height: 0;
border-right: var(--border-line);
background: var(--surface-muted);
}
.views-pane-heading,
.views-editor-heading,
.views-section-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
}
.views-pane-heading {
align-items: center;
min-height: 50px;
padding: 0 14px;
border-bottom: var(--border-line);
}
.views-pane-heading > span {
color: var(--muted);
font-variant-numeric: tabular-nums;
}
.views-definition-list {
min-height: 0;
overflow: auto;
padding: 6px;
}
.views-definition-item {
display: grid;
grid-template-columns: minmax(0, 1fr) auto 18px;
align-items: center;
gap: 8px;
min-height: 58px;
}
.views-definition-item-main {
min-width: 0;
}
.views-definition-item-main strong,
.views-definition-item-main small {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.views-definition-item-main small {
margin-top: 3px;
color: var(--muted);
}
.views-editor-pane {
min-width: 0;
min-height: 0;
overflow: auto;
padding: 18px;
}
.views-editor-heading {
min-height: 44px;
}
.views-editor-heading h3,
.views-section-heading h4,
.views-empty-editor h3 {
margin: 0;
font-size: 16px;
letter-spacing: 0;
}
.views-editor-title-row {
display: flex;
align-items: center;
gap: 9px;
}
.views-editor-heading p,
.views-section-heading p {
margin: 4px 0 0;
}
.views-definition-form {
display: grid;
grid-template-columns: minmax(220px, .65fr) minmax(300px, 1.35fr);
gap: 14px;
margin-top: 16px;
}
.views-definition-form textarea {
resize: vertical;
}
.views-product-area-section,
.views-surface-section {
margin-top: 22px;
padding-top: 18px;
border-top: var(--border-line);
}
.views-product-area-list {
overflow: hidden;
border: var(--border-line);
border-radius: var(--radius-sm);
}
.views-product-area-row {
display: grid;
grid-template-columns: minmax(180px, 1fr) minmax(180px, .8fr) auto auto;
align-items: center;
gap: 12px;
min-height: 62px;
padding: 8px 10px;
border-bottom: var(--border-line);
}
.views-product-area-row:last-child {
border-bottom: 0;
}
.views-product-area-row:hover {
background: var(--hover-tint-soft);
}
.views-product-area-copy {
min-width: 0;
}
.views-product-area-copy strong,
.views-product-area-copy small {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.views-product-area-copy small {
margin-top: 3px;
color: var(--muted);
}
.views-product-area-order {
display: flex;
align-items: center;
}
.views-assignments-section {
min-width: 0;
padding-top: 18px;
border-top: var(--border-line);
}
.views-section-heading {
align-items: center;
margin-bottom: 10px;
}
.views-stale-surface-warning {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.views-surface-selector {
overflow: hidden;
border: var(--border-line);
border-radius: var(--radius-sm);
}
.views-surface-filter {
padding: 8px;
border-bottom: var(--border-line);
background: var(--surface-muted);
}
.views-surface-filter input {
width: 100%;
}
.views-surface-modules {
height: 350px;
overflow: auto;
padding: 6px;
}
.views-surface-node.disabled {
cursor: default;
opacity: .7;
}
.views-surface-tree .explorer-tree-node-wrap {
border-radius: var(--radius-sm);
}
.views-surface-tree .explorer-tree-node {
min-height: 42px;
border-radius: var(--radius-sm);
}
.views-surface-check {
display: inline-grid;
flex: 0 0 18px;
place-items: center;
color: var(--accent);
}
.views-assignment-list {
max-height: 280px;
overflow: auto;
border: var(--border-line);
border-radius: var(--radius-sm);
}
.views-assignment-row {
display: grid;
grid-template-columns: minmax(180px, 1.3fr) auto auto minmax(120px, .7fr) auto auto;
align-items: center;
gap: 12px;
min-height: 58px;
padding: 8px 10px;
border-bottom: var(--border-line);
}
.views-assignment-row:last-child {
border-bottom: 0;
}
.views-assignment-row:hover {
background: var(--hover-tint-soft);
}
.views-assignment-view strong,
.views-assignment-view span,
.views-assignment-view small {
display: block;
}
.views-assignment-view span,
.views-assignment-view small,
.views-assignment-priority,
.views-assignment-revision {
color: var(--muted);
font-size: 12px;
}
.views-empty-list,
.views-empty-editor {
padding: 24px 16px;
color: var(--muted);
text-align: center;
}
.views-empty-editor {
display: grid;
place-content: center;
min-height: 420px;
}
.views-assignment-dialog {
width: min(760px, calc(100vw - 40px));
}
.views-assignment-toggles {
display: grid;
align-content: end;
gap: 10px;
min-height: 70px;
}
@media (max-width: 1100px) {
.views-admin-shell {
grid-template-columns: 230px minmax(0, 1fr);
}
.views-assignment-row {
grid-template-columns: minmax(170px, 1fr) auto auto;
}
.views-assignment-priority,
.views-assignment-revision {
display: none;
}
}
@media (max-width: 760px) {
.views-admin-shell {
display: flex;
flex-direction: column;
max-height: none;
}
.views-definition-pane {
max-height: 220px;
border-right: 0;
border-bottom: var(--border-line);
}
.views-definition-form {
grid-template-columns: 1fr;
}
.views-product-area-row {
grid-template-columns: minmax(0, 1fr) auto;
}
.views-product-area-row > input {
grid-column: 1 / -1;
grid-row: 2;
}
.views-editor-heading,
.views-section-heading,
.views-stale-surface-warning {
align-items: stretch;
flex-direction: column;
}
.views-assignment-row {
grid-template-columns: minmax(0, 1fr) auto;
}
}