File "ArticleReadDrawer.module.scss"
Full Path: /var/www/html/gitep_front/src/pages/CashPage/ArticleReadDrawer.tsx/ArticleReadDrawer.module.scss
File size: 8.33 KB
MIME-type: text/plain
Charset: utf-8
.wrapper {
border-radius: 8px !important;
margin: 0 0px 16px 0;
height: 96vh;
box-sizing: border-box;
display: flex;
flex-direction: column;
position: relative;
max-width: 1400px;
background: #ffffff;
:global(.ant-table-tbody > tr.ant-table-row-level-0 > .ant-table-cell) {
background-color: #F4F6FA;
}
:global {
.ant-table .ant-checkbox-wrapper {
padding: 12px;
}
}
:global {
.ant-table-thead {
position: sticky;
top: 0;
z-index: 99 !important;
}
}
}
.wrapperDate {
border-radius: 8px !important;
margin: 0 0 16px 0;
height: 96vh;
box-sizing: border-box;
display: flex;
flex-direction: column;
position: relative;
max-width: 1400px;
background: #ffffff;
:global {
.ant-table-thead {
position: sticky;
top: 0;
z-index: 99 !important;
}
}
}
.groupReadContainer {
margin-top: 12px;
:global {
.ant-table .ant-checkbox-wrapper {
padding: 12px;
}
}
}
.checkbox {
margin-bottom: 1px;
}
.filterButtons {
height: 40px;
background: #F9F0FF;
color: #531DAB;
border: none;
height: 40px;
padding: 9px 12px;
border-radius: 8px;
display: flex;
align-items: center;
gap: 8px;
}
.filterInfo {
margin-bottom: 24px;
margin-top: 10px;
}
.paymentHeader {
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.plusTitle {
font-size: 12px;
color: #52C41A;
}
.headerTable {
justify-content: space-between;
border-left: 1px solid #D0D5DD !important;
border-top: 1px solid #D0D5DD !important;
border-right: 1px solid #D0D5DD !important;
border-radius: 8px 8px 0 0;
padding: 16px;
}
.totalTitle {
font-size: 12px;
color: #98A2B3;
}
.totalMinus {
font-size: 12px;
color: #FF4D4F;
}
.minusTitle {
font-size: 12px;
}
.paymentRow {
border: 1px solid gray;
td {
padding: 12px !important;
}
}
.ant-tag-green {
background: #f6ffed;
border-color: #b7eb8f;
color: #52c41a;
}
.ant-tag-orange {
background: #fff7e6;
border-color: #ffd591;
color: #fa8c16;
}
.ant-tag-gray {
background: #fafafa;
border-color: #d9d9d9;
color: rgba(0, 0, 0, 0.45);
}
.ant-tabs-nav {
margin: 0;
}
.ant-tabs-tab {
padding: 8px 12px !important;
color: #667085 !important;
}
.ant-tabs-tab-active {
color: #101828 !important;
font-weight: 500;
}
.ant-tabs-ink-bar {
background: #101828;
}
.ant-tag-green {
background: #ECFDF3 !important;
color: #027A48 !important;
}
.ant-tag-orange {
background: #FFFAEB !important;
color: #B54708 !important;
}
.ant-tag-gray {
background: #F9FAFB !important;
color: #344054 !important;
}
.ant-tag-blue {
background: #EFF8FF !important;
color: #175CD3 !important;
}
.filter {
:global {
.ant-segmented-item-label{
font-size: 14px !important;
display: flex;
justify-content: center;
}
}
}
.groupReadContainer {
.universal-table {
width: 100%;
border-radius: 8px;
border: 1px solid #eaecf0;
overflow: hidden;
.ant-table-thead > tr > th {
background: #f9fafb;
padding: 12px 16px;
color: #667085;
font-weight: 500;
}
.ant-table-tbody > tr > td {
padding: 12px 16px;
border-bottom: 1px solid #eaecf0;
}
}
}
// Стили для колонок
.columns {
display: flex;
width: 830px;
.dateColumn {
width: 100px !important;
flex-shrink: 0;
}
.purposeColumn {
width: 300px !important;
flex-grow: 1;
overflow: hidden;
text-overflow: ellipsis;
}
.projectColumn {
width: 180px !important;
flex-shrink: 0;
}
.amountColumn {
width: 120px !important;
flex-shrink: 0;
text-align: right;
}
.statusColumn {
width: 150px !important;
flex-shrink: 0;
}
}
.articleRow {
&:hover td {
background-color: #fafafa !important;
}
td {
border-bottom: 1px solid #f0f0f0;
padding: 12px 16px;
}
}
.subcategory {
td {
background-color: #fafafa;
}
}
.totalRow {
td {
background-color: #f6ffed;
border-bottom: 2px solid #e6f4ff;
}
}
.parentRow {
& td {
background: #F4F6FA !important;
border-bottom: 2px solid #E4E7EC !important;
// Первая ячейка с отступом для стрелки
&:first-child {
padding-left: 40px !important;
}
}
// Стиль при наведении
&:hover td {
background: #F4F6FA !important;
}
// Стиль для иконки стрелки
.ant-table-row-expand-icon {
margin-left: -24px;
color: #667085;
}
}
.subcategory td {
background: #FFFFFF !important;
border-bottom: 1px solid #F0F0F0 !important;
// Отступ для подкатегорий
&:first-child {
padding-left: 64px !important;
}
}
// styles.module.scss
.treeSelect {
min-width: 250px;
height: 40px;
.ant-select-selector {
padding: 8px 12px;
border-radius: 8px;
display: flex;
align-items: center;
}
}
:global {
.ant-select-multiple .ant-select-selection-overflow {
height: 100% !important;
}
}
.dropdown {
.ant-select-tree-switcher {
display: none;
}
.parentLabel {
font-weight: 500;
color: #101828;
}
.ant-select-tree-node-content-wrapper {
padding-left: 24px;
&:hover {
background-color: #f5f5f5;
}
}
.ant-select-tree-checkbox {
margin-right: 8px;
}
.ant-select-selection-overflow {
flex-wrap: nowrap !important;
overflow: auto !important;
padding: 4px 8px;
}
}
.contragentRow {
font-weight: 600;
background-color: #f9fafb;
}
.paymentRow {
.ant-typography-secondary {
color: #667085;
}
}
.contragentRow {
// Применяем стили к глобальным классам Ant Design
:global {
.ant-table-cell-with-append {
padding-left: 0 !important;
}
// Добавляем вертикальную черту для expandable строк
.ant-table-row-expand-icon-cell {
position: relative;
&::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
right: 0;
width: 1px;
background: #f0f0f0;
}
}
}
}
.amountCell {
color: #52C41A;
cursor: pointer;
&:hover {
text-decoration: underline;
}
}
.limitCell {
cursor: pointer;
padding: 4px 10px;
width: 92px;
font-size: 12px;
border-radius: 4px;
border-left: 1px solid #98A2B3 !important;
border-right: 1px solid #98A2B3 !important;
&:hover {
border-left: 2px solid #9254DE !important;
border-right: 2px solid #9254DE !important;
}
}
.groupRow {
background: #fafafa;
td {
border-bottom: 0 !important;
}
}
.hoverButton {
opacity: 0;
transition: opacity 0.2s;
border: 1px solid #D0D5DD;
padding-top: 4px;
tr:hover & {
opacity: 1;
}
}
.hoverButtons {
opacity: 0;
transition: opacity 0.2s;
tr:hover & {
opacity: 1;
}
}
.ant-table-tbody {
.ant-select:not(.ant-select-disabled) {
width: 100%;
margin: -5px 0;
.ant-select-selector {
border: none !important;
box-shadow: none !important;
padding-left: 40px;
}
}
}
.progressContainer {
position: relative;
width: 172px;
height: 4px;
background-color: #f5f5f5;
border-radius: 4px;
overflow: hidden;
}
.progressBar {
position: absolute;
height: 100%;
transition: width 0.3s ease;
}
.plusTitle {
color: #73D13D;
font-weight: 500;
}
.minusTitle {
color: #101828;
font-weight: 500;
}
.totalTitle, .totalMinus {
color: #98A2B3;
margin-left: 8px;
}
.hover-container .hidden-button {
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease-in-out;
}
.hover-container:hover .hidden-button {
opacity: 1;
pointer-events: auto;
}