Files
basic-erp/apps/web/src/app/shared/grid/lines-grid.css
T

161 lines
2.7 KiB
CSS

:host {
display: block;
}
.bar {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 6px;
}
.count {
font-size: 12px;
color: var(--quiet);
}
.sp {
flex: 1;
}
.gridwrap {
overflow-x: auto;
border: 1px solid var(--line);
border-radius: var(--radius-panel);
background: var(--panel);
}
.grid {
width: 100%;
min-width: 900px;
border-collapse: collapse;
}
th {
position: relative;
padding: 4px 6px;
background: var(--grid-head);
border-right: 1px solid var(--line);
border-bottom: 1px solid var(--line);
font-size: 12.5px;
font-weight: 600;
text-align: left;
white-space: nowrap;
}
th.req::after {
content: ' *';
color: var(--err);
}
td {
height: 27px;
padding: 0 2px;
border-right: 1px solid var(--line-soft);
border-bottom: 1px solid var(--line-soft);
white-space: nowrap;
}
tbody tr:nth-child(even) td {
background: var(--row-alt);
}
tbody tr:focus-within td {
background: var(--row-sel);
}
td.rn,
th.rn {
width: 34px;
text-align: center;
color: var(--quiet);
background: var(--grid-head);
}
tbody tr td.rn {
background: var(--grid-head);
}
td.ro {
background: var(--field-ro);
}
.cell {
width: 100%;
height: 22px;
padding: 1px 4px;
background: transparent;
border: 1px solid transparent;
border-radius: var(--radius);
}
.cell.mono {
font-family: ui-monospace, Menlo, Consolas, monospace;
}
.cell:hover:not([readonly]) {
border-color: var(--field-b);
}
.cell:focus {
background: var(--field);
border-color: var(--focus);
outline: none;
}
.cell[readonly] {
cursor: default;
}
.pick {
display: grid;
grid-template-columns: minmax(0, 1fr) 22px;
}
.pick button {
padding: 0;
background: var(--btn);
border: 1px solid var(--field-b);
border-radius: var(--radius);
cursor: pointer;
}
.pick button:hover {
background: var(--btn-h);
}
th.det,
td.det {
width: 130px;
padding: 0 4px;
text-align: center;
}
.detbtn {
width: 100%;
height: 22px;
padding: 0 6px;
background: var(--btn);
border: 1px solid var(--field-b);
border-radius: var(--radius);
font-size: 12px;
cursor: pointer;
white-space: nowrap;
}
.detbtn:hover {
background: var(--btn-h);
}
td.del,
th.del {
width: 30px;
text-align: center;
}
td.del button {
padding: 2px 6px;
background: none;
border: none;
color: var(--quiet);
font-size: 15px;
line-height: 1;
cursor: pointer;
border-radius: var(--radius);
}
td.del button:hover {
color: var(--err);
background: var(--err-bg);
}
tr.none td {
padding: 18px;
text-align: center;
color: var(--quiet);
background: transparent;
}
.sr {
position: absolute;
left: -9999px;
}
th .db {
display: block;
font: 10.5px/1.2 var(--mono, monospace);
font-weight: 400;
color: var(--quiet);
}