107 lines
2.8 KiB
CSS
107 lines
2.8 KiB
CSS
/* Компактная раскладка форм документов */
|
||
/* Подпись слева от поля, в одну строку */
|
||
.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-items .ws-col-product {
|
||
width: 35%;
|
||
min-width: 14rem;
|
||
}
|
||
|
||
.ws-table-items .ws-col-qty {
|
||
width: 5rem;
|
||
}
|
||
|
||
.ws-table-items td.ws-col-qty input,
|
||
.ws-table-items .ws-col-qty input {
|
||
width: 4ch !important;
|
||
max-width: 5rem;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.ws-table-items .ws-col-del {
|
||
width: 4rem;
|
||
}
|