Files
Artveris/apps/admin/src/styles.css
T

147 lines
3.0 KiB
CSS

:root {
--brand: #13a8a8;
--brand-2: #1bb6b6;
--brand-from: #0f8f8f;
--brand-to: #1bb6b6;
--admin-header-height: 56px;
--admin-footer-height: 32px;
--admin-min-width: 1120px;
--admin-min-height: 680px;
--admin-content-height: calc(100vh - var(--admin-header-height) - var(--admin-footer-height));
}
* {
box-sizing: border-box;
}
html,
body,
#app {
margin: 0;
padding: 0;
height: 100%;
overflow-y: hidden;
overflow-x: auto;
font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI',
Roboto, sans-serif;
}
.page {
padding: 16px;
min-height: 100%;
}
.page.table-page {
height: var(--admin-content-height);
min-height: calc(var(--admin-min-height) - var(--admin-header-height) - var(--admin-footer-height));
max-height: var(--admin-content-height);
display: flex;
flex-direction: column;
overflow: hidden;
}
.page-toolbar {
position: sticky;
top: 0;
z-index: 8;
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
margin: -16px -16px 16px;
padding: 12px 16px;
background: var(--n-color);
border-bottom: 1px solid var(--n-border-color);
box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}
.page-toolbar .spacer {
flex: 1 1 auto;
}
.table-fill {
flex: 1 1 0;
height: 0;
min-height: 0;
}
.table-fill .n-data-table-wrapper {
flex: 1 1 auto;
min-height: 0;
}
.table-fill .n-data-table-base-table {
min-height: 0;
}
.table-fill .n-data-table-base-table-body {
flex: 1 1 auto !important;
min-height: 0;
}
.table-fill .n-data-table-th {
white-space: nowrap;
}
.table-fill .n-data-table-td {
white-space: nowrap;
}
.n-modal.n-card {
max-width: calc(100vw - 32px);
max-height: calc(100vh - 48px);
display: flex;
flex-direction: column;
}
.n-modal.n-card > .n-card-header,
.n-modal.n-card > .n-card__footer {
flex: 0 0 auto;
}
.n-modal.n-card > .n-card-content,
.n-modal.n-card > .n-card__content {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
}
.table-fill .n-data-table-td--fixed-right,
.table-fill .n-data-table-th--fixed-right {
background-color: var(--n-td-color);
box-shadow: -8px 0 10px -10px rgba(0, 0, 0, 0.45);
}
.table-fill .n-data-table-th--fixed-right {
background-color: var(--n-th-color);
}
.table-pagination {
flex: 0 0 auto;
display: flex;
justify-content: flex-end;
align-items: center;
padding-top: 12px;
overflow-x: auto;
}
.table-pagination-extra {
display: inline-flex;
align-items: center;
gap: 6px;
white-space: nowrap;
}
.text-ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.row-actions {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
width: 100%;
}
.filter-title {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 4px;
width: 100%;
min-width: 0;
}
.filter-title-text {
white-space: nowrap;
flex: 0 0 auto;
}
.filter-trigger {
flex: 0 0 auto;
opacity: 0.62;
}
.filter-trigger.active {
color: var(--brand);
opacity: 1;
}