@uniquedj95/vtable
Version:
An advanced datatable for Ionic vue framework
196 lines (166 loc) • 3.2 kB
CSS
.table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
border: 1px solid #ddd;
text-align: center;
font-size: 20px;
font-weight: 500;
color: #000000;
}
.bordered-table th,
.bordered-table td,
.bordered-table table-row {
padding: 10px;
border: 1px solid #ddd;
border-collapse: collapse;
}
.striped-table tr:nth-child(even) {
background-color: #f2f2f2;
}
.table tbody tr:hover {
background-color: #ecfcff;
cursor:pointer;
}
.responsive-table {
overflow-x: auto;
}
.no-data-table {
text-align: center;
font-size: 18px;
height: 20vh;
line-height: 20vh;
}
.box {
border-color: #a3a3a3;
border-width: thin;
border-style: solid;
border-radius: 3px;
height: 40px;
}
.pagination-info {
margin-top: '1rem';
text-align: 'right';
font-weight: 500;
}
.table .primary {
background-color: var(--ion-color-primary);
color: white;
}
.table .secondary {
background-color: var(--ion-color-secondary);
color: white;
}
.table .tertiary {
background-color: var(--ion-color-tertiary);
color: white;
}
.table .success {
background-color: var(--ion-color-success);
color: white;
}
.table .warning {
background-color: var(--ion-color-warning);
color: black;
}
.table .danger {
background-color: var(--ion-color-danger);
color: white;
}
.table .light {
background-color: var(--ion-color-light);
color: black;
}
.table .dark {
background-color: var(--ion-color-dark);
color: white;
}
.table .medium {
background-color: var(--ion-color-medium);
color: black;
}
.table .custom {
background: rgb(0, 58, 106);
color: rgb(255, 255, 255);
}
.sc-ion-searchbar-md-h {
--box-shadow: none ;
padding: 0 ;
height: auto ;
}
.searchbar-input .sc-ion-searchbar-md {
margin: 0 ;
margin-top: 2px ;
margin-bottom: 2px ;
}
.searchbar-input-container ion-icon {
top: 0px ;
}
.searchbar-input-container .sc-ion-searchbar-md {
height: 36px ;
}
.outer-input-box {
width: 100%;
height: fit-content;
background-color: #fff;
}
.inner-input-box {
position: relative;
width: 100%;
}
.search-input {
width: 100%;
display: inline-block;
}
.go-to-input {
display: inline-block;
--min-height: 11px;
width: 190px;
margin-left: .5rem
}
.per-page-input {
display: inline-block;
--min-height: 11px;
width: 240px;
margin-left: .5rem
}
.input-options {
position: absolute;
width: 100%;
max-height: 25rem;
overflow-y: auto;
background-color: #fff;
z-index: 100;
border-radius: 0.25rem;
border-top-left-radius: 0px;
border-top-right-radius: 0px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.input-icon {
font-size: 12px ;
position: absolute;
top: 0;
right: 0;
height: 2.5rem;
width: 2rem;
color: rgb(138, 138, 138);
padding-right: .5rem;
display: flex;
align-items: center;
justify-content: flex-end;
z-index: 90;
}
.input-option-checkbox {
--size: 18px ;
}
.input-placeholder {
color: #a0a0a0;
margin: 0.5rem;
}
.text-center {
text-align: center;
}
.data-cell {
inline-size: min-content;
word-wrap: break-all;
}