379 lines
6.4 KiB
CSS
379 lines
6.4 KiB
CSS
.tt-table.loading tbody {
|
|
position: relative;
|
|
}
|
|
|
|
.tt-table {
|
|
/*width: unset !important;*/
|
|
}
|
|
|
|
.tt-table.loading tbody:after {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.1);
|
|
background-image: url(/assets/images/loader-big.gif);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: 50px 50px;
|
|
content: "";
|
|
}
|
|
|
|
.tt-table .form-group {
|
|
margin-bottom: 4px !important;
|
|
}
|
|
|
|
|
|
.tt-table-container .page-link {
|
|
padding: 5px .75rem !important;
|
|
}
|
|
|
|
.tt-table {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.tt-table-pagination-container {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
padding-bottom: 8px;
|
|
align-items: center;
|
|
justify-content: end;
|
|
}
|
|
|
|
.tt-table-pagination-wrapper {
|
|
display: grid;
|
|
grid-template-rows: auto auto;
|
|
grid-template-columns: auto auto;
|
|
grid-auto-flow: column;
|
|
grid-gap: 4px;
|
|
justify-content: end;
|
|
}
|
|
|
|
.tt-table-pagination {
|
|
margin: 0;
|
|
}
|
|
|
|
.tt-table-page-item {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tt-table-page-item.disabled {
|
|
pointer-events: none;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.tt-table-page-item.active {
|
|
font-weight: bold;
|
|
background-color: #007bff;
|
|
color: white;
|
|
}
|
|
|
|
.tt-table-select {
|
|
display: inline-block;
|
|
width: auto;
|
|
}
|
|
|
|
.tt-table-text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.tt-pointer {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tt-table.table-sm > tbody > tr > td * {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.tt-table.table-sm > tbody > tr {
|
|
line-height: 1.15 !important;
|
|
}
|
|
|
|
input[type=number]::-webkit-inner-spin-button,
|
|
input[type=number]::-webkit-outer-spin-button {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
margin: 0;
|
|
}
|
|
|
|
|
|
/*table {*/
|
|
/* width: 100%; !* Ensure table takes full available width *!*/
|
|
/* table-layout: auto; !* Crucial for automatic column scaling *!*/
|
|
/*}*/
|
|
|
|
/*td {*/
|
|
/* white-space: nowrap; !* Prevent text from wrapping within cells *!*/
|
|
/* overflow: hidden; !* Hide overflowing content *!*/
|
|
/* text-overflow: ellipsis; !* Show ellipsis (...) for long content *!*/
|
|
/*}*/
|
|
|
|
.tt-table-top-pagination-container {
|
|
display: grid;
|
|
grid-template-columns: auto auto;
|
|
padding-bottom: 8px;
|
|
align-items: center;
|
|
justify-content: space-between
|
|
}
|
|
|
|
.tt-table-top-buttons-container {
|
|
display: grid;
|
|
grid-template-columns: auto auto auto auto auto;
|
|
grid-gap: 8px;
|
|
padding-bottom: 8px
|
|
}
|
|
|
|
.tt-table-top-buttons-container > button > i {
|
|
font-size: 17px;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
@media (max-width: 486px) {
|
|
.tt-table-top-pagination-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.tt-table-top-pagination-container > * {
|
|
justify-self: center;
|
|
}
|
|
|
|
.tt-table-top-pagination-container > *:first-child {
|
|
margin-top: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.fa-circle-xmark, .fa-ban, .fa-trash, .fa-arrow-left, .fa-edit, .fa-square-check, .fa-arrows-up-down-left-right, .fa-chevron-right {
|
|
font-size: 20px !important
|
|
}
|
|
|
|
.tt-table.table-sm > tbody > tr > td * {
|
|
font-size: 16px !important;
|
|
}
|
|
|
|
.modal-footer {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
grid-gap: 4px;
|
|
}
|
|
|
|
.modal-footer > button {
|
|
margin: 0 !important;
|
|
}
|
|
|
|
}
|
|
|
|
td {
|
|
vertical-align: middle !important;
|
|
}
|
|
|
|
/*TODO: export this classes somewhere else*/
|
|
|
|
.text-cyan {
|
|
color: var(--cyan);
|
|
}
|
|
|
|
.text-green {
|
|
color: var(--green);
|
|
}
|
|
|
|
.text-red {
|
|
color: var(--red);
|
|
}
|
|
|
|
.text-yellow {
|
|
color: var(--yellow);
|
|
}
|
|
|
|
.text-blue {
|
|
color: var(--blue);
|
|
}
|
|
|
|
.text-purple {
|
|
color: var(--purple);
|
|
}
|
|
|
|
.text-orange {
|
|
color: var(--orange);
|
|
}
|
|
|
|
.text-pink {
|
|
color: var(--pink);
|
|
}
|
|
|
|
.text-gray {
|
|
color: var(--gray);
|
|
}
|
|
|
|
.text-white {
|
|
color: var(--white);
|
|
}
|
|
|
|
.text-light {
|
|
color: var(--light);
|
|
}
|
|
|
|
.text-dark {
|
|
color: var(--dark);
|
|
}
|
|
|
|
.width-40 {
|
|
width: 40px;
|
|
}
|
|
|
|
.width-80 {
|
|
width: 80px;
|
|
}
|
|
|
|
.width-120 {
|
|
width: 120px;
|
|
}
|
|
|
|
.width-160 {
|
|
width: 160px;
|
|
}
|
|
|
|
.width-200 {
|
|
width: 200px;
|
|
}
|
|
|
|
.width-240 {
|
|
width: 240px;
|
|
}
|
|
|
|
.width-280 {
|
|
width: 280px;
|
|
}
|
|
|
|
.width-320 {
|
|
width: 320px;
|
|
}
|
|
|
|
.width-360 {
|
|
width: 360px;
|
|
}
|
|
|
|
|
|
/*TODO: remove this*/
|
|
/* Styles for the component */
|
|
.tt-expandable-shopping-cart {
|
|
position: fixed;
|
|
bottom: 65px;
|
|
right: 20px;
|
|
background-color: #f8f9fa;
|
|
border: 1px solid #dee2e6;
|
|
border-radius: 5px;
|
|
width: 50px; /* Initial width */
|
|
height: 50px;
|
|
transition: width 0.3s ease, height 0.3s ease;
|
|
}
|
|
|
|
.expanded {
|
|
width: 500px; /* Expanded width */
|
|
max-width: 85vw;
|
|
height: 600px; /* Expanded height */
|
|
max-height: 75vh;
|
|
overflow: auto;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.toggle-button {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 24px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.cart-content {
|
|
padding: 15px;
|
|
display: none; /* Initially hidden */
|
|
}
|
|
|
|
.expanded .cart-content {
|
|
display: block; /* Show when expanded */
|
|
}
|
|
|
|
.cart-count {
|
|
background-color: #dc3545; /* Red background */
|
|
color: white;
|
|
border-radius: 50%;
|
|
padding: 0 6px;
|
|
font-size: 12px;
|
|
position: absolute;
|
|
top: 5px;
|
|
right: 5px;
|
|
}
|
|
|
|
.tt-expandable-shopping-cart.expanded {
|
|
border-top-left-radius: 0.25rem;
|
|
border-top-right-radius: 0.25rem;
|
|
|
|
}
|
|
|
|
.tt-expandable-shopping-cart.expanded .cart-content {
|
|
padding-top: 8px;
|
|
}
|
|
|
|
.tt-expandable-shopping-cart.expanded .cart-content h3 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
|
|
.tt-expandable-shopping-cart.expanded .toggle-button {
|
|
display: grid;
|
|
grid-template-columns: 2fr 3fr auto auto;
|
|
grid-gap: 10px;
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: var(--gray)
|
|
}
|
|
|
|
.tt-expandable-shopping-cart.expanded .toggle-button i {
|
|
justify-self: left;
|
|
}
|
|
|
|
.tt-expandable-shopping-cart.expanded .cart-count {
|
|
position: unset !important;
|
|
width: 18px;
|
|
height: 18px;
|
|
grid-column-start: 3;
|
|
}
|
|
|
|
.tt-table-header {
|
|
vertical-align: top !important;
|
|
text-align: center;
|
|
}
|
|
|
|
/* tt-button */
|
|
.spinner {
|
|
display: inline-block;
|
|
width: 11px;
|
|
height: 11px;
|
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
border-radius: 50%;
|
|
border-top-color: #fff;
|
|
animation: spin 1s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.btn-loading {
|
|
cursor: not-allowed;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
/* tt-input-article */
|
|
.tt-input-article-wrapper .autocomplete {
|
|
display: flex;
|
|
}
|
|
|
|
.tt-input-article-wrapper button[type=button].btn-link.position-absolute {
|
|
right: 30px !important;
|
|
} |