Files
watersurf-erp/app/static/css/theme-compact.css

166 lines
4.0 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* Компактная раскладка форм документов */
/* Подпись слева от поля, в одну строку */
.ws-form-compact .ws-form-group {
display: flex;
flex-direction: row;
align-items: center;
gap: 0.5rem 1rem;
flex-wrap: wrap;
}
.ws-form-compact .ws-form-group label {
margin-bottom: 0;
flex-shrink: 0;
min-width: 6.5rem;
}
.ws-form-compact .ws-form-group input,
.ws-form-compact .ws-form-group select {
flex: 1;
min-width: 0;
}
.ws-form-compact .ws-form-group .ws-text-danger {
flex-basis: 100%;
margin-left: 7rem;
}
.ws-form-compact .ws-form-row {
display: grid;
gap: 1rem;
margin-bottom: 1rem;
align-items: center;
}
.ws-form-compact .ws-form-row-date-number {
grid-template-columns: 1fr 1fr;
}
.ws-form-compact .ws-form-row-date-number .ws-field-date input {
min-width: 11.5rem;
width: 11.5rem;
flex: 0 0 auto;
}
/* Кнопка календаря у поля даты — акцентный цвет, хорошо видна на тёмном фоне */
.ws-form-compact input[type="date"]::-webkit-calendar-picker-indicator {
background-color: var(--ws-accent);
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: center;
padding: 4px;
border-radius: var(--ws-radius-sm);
cursor: pointer;
opacity: 1;
}
.ws-form-compact input[type="date"]::-webkit-calendar-picker-indicator:hover {
background-color: var(--ws-accent-hover);
}
/* Firefox: кнопка календаря */
.ws-form-compact input[type="date"]::-moz-focus-inner {
border: none;
}
@supports (-moz-appearance: none) {
.ws-form-compact input[type="date"] {
padding-right: 2.5rem;
}
}
.ws-form-compact .ws-form-row-date-number .ws-field-number input {
width: 15ch;
flex: 0 0 15ch;
}
.ws-form-compact .ws-form-row-2 {
grid-template-columns: 1fr 1fr;
max-width: 600px;
}
.ws-form-compact .ws-form-row-2 .ws-form-group input,
.ws-form-compact .ws-form-row-2 .ws-form-group select {
max-width: 100%;
}
/* Таблица товаров: без горизонтального скролла, компактные колонки */
.ws-table-wrap {
overflow-x: hidden;
max-width: 100%;
}
.ws-table-items {
table-layout: fixed;
width: 100%;
min-width: 0;
border-collapse: collapse;
}
.ws-table-items th,
.ws-table-items td {
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
}
/* Товар: ограниченная ширина, длинное название обрезается */
.ws-table-items .ws-col-product {
width: 45%;
}
/* Цена: поле под 8 знаков, значение справа */
.ws-table-items .ws-col-price {
width: 14%;
}
/* Валюта */
.ws-table-items .ws-col-currency {
width: 12%;
}
.ws-table-items .ws-col-qty {
width: 10%;
}
/* Стоимость: справа, разделитель в JS */
.ws-table-items .ws-col-cost {
width: 14%;
}
.ws-table-items .ws-col-del {
width: 5%;
}
.ws-table-items label.ws-delete-row-label {
cursor: pointer;
font-size: 13px;
color: var(--ws-text-muted);
white-space: nowrap;
}
.ws-table-items .ws-col-product select {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
}
.ws-table-items .ws-col-price input {
width: 100% !important;
max-width: 100%;
text-align: right;
font-variant-numeric: tabular-nums;
box-sizing: border-box;
}
.ws-table-items .ws-col-currency select {
max-width: 100%;
}
.ws-table-items td.ws-col-qty input,
.ws-table-items .ws-col-qty input {
width: 4ch !important;
max-width: 100%;
box-sizing: border-box;
}