Files
boursecu_user/src/views/base/transactions/desktop/styles/desktop-transactions.less
T
2026-06-23 09:18:41 +02:00

271 lines
4.2 KiB
Plaintext

/* Premium desktop transactions page */
.dtxn {
min-height: 100%;
background: #f6f7f9;
color: #111827;
}
.dtxn__container {
max-width: 1180px;
margin: 0 auto;
padding: 28px 36px 40px;
}
.dtxn-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-bottom: 20px;
}
.dtxn-tabs {
display: flex;
flex-wrap: wrap;
gap: 8px;
&__btn {
padding: 8px 14px;
border: 1px solid #e5e7eb;
border-radius: 999px;
background: #fff;
font-size: 13px;
font-weight: 600;
color: #6b7280;
font-family: inherit;
cursor: pointer;
transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
&:hover {
border-color: #d1d5db;
color: #374151;
}
&--active {
background: @App-primary-color;
border-color: @App-primary-color;
color: #fff;
}
}
}
.dtxn-toggle {
display: inline-flex;
gap: 4px;
padding: 4px;
background: #f3f4f6;
border-radius: 10px;
&__btn {
padding: 8px 16px;
border: none;
border-radius: 8px;
background: transparent;
font-size: 13px;
font-weight: 600;
font-family: inherit;
color: #6b7280;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
&--active {
background: #fff;
color: #111827;
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
}
}
.dtxn-filters {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
&__label {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 13px;
font-weight: 500;
color: #6b7280;
}
&__select,
&__date {
min-width: 140px;
}
&__dates {
display: flex;
align-items: center;
gap: 10px;
}
}
.dtxn-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.dtxn-row {
display: grid;
grid-template-columns: auto 1fr auto auto;
gap: 16px;
align-items: center;
width: 100%;
padding: 16px 18px;
border: 1px solid #f3f4f6;
border-radius: 12px;
background: #fff;
text-align: right;
cursor: pointer;
font-family: inherit;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
&:hover {
border-color: #e5e7eb;
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
&__icon {
display: flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
border-radius: 10px;
flex-shrink: 0;
&--up {
background: #ecfdf3;
color: #027a48;
}
&--down {
background: #fef3f2;
color: #b42318;
}
}
&__main {
min-width: 0;
}
&__title {
font-size: 14px;
font-weight: 600;
color: #111827;
margin: 0 0 4px;
}
&__meta {
display: flex;
flex-wrap: wrap;
gap: 8px 12px;
font-size: 12px;
color: #6b7280;
}
&__amount {
font-size: 15px;
font-weight: 600;
direction: ltr;
text-align: left;
white-space: nowrap;
&--up {
color: #027a48;
}
&--down {
color: #b42318;
}
}
&__status {
flex-shrink: 0;
}
}
.dtxn-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 56px 24px;
text-align: center;
background: #fff;
border-radius: 14px;
border: 1px dashed #e5e7eb;
&__image {
width: 140px;
max-width: 40vw;
height: auto;
object-fit: contain;
}
&__text {
margin-top: 16px;
font-size: 14px;
font-weight: 600;
color: #6b7280;
}
}
.dtxn-detail {
display: flex;
flex-direction: column;
gap: 12px;
&__row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
padding: 10px 0;
border-bottom: 1px solid #f3f4f6;
font-size: 13px;
&:last-child {
border-bottom: none;
}
}
&__label {
color: #6b7280;
font-weight: 500;
flex-shrink: 0;
}
&__value {
color: #111827;
font-weight: 600;
text-align: left;
}
}
@media (max-width: 900px) {
.dtxn-row {
grid-template-columns: auto 1fr;
grid-template-rows: auto auto;
&__amount,
&__status {
grid-column: 2;
}
&__amount {
justify-self: start;
}
&__status {
justify-self: end;
}
}
}