578 lines
No EOL
10 KiB
CSS
578 lines
No EOL
10 KiB
CSS
.formGenerator {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
width: 100%;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.title {
|
|
font-size: 1.5rem;
|
|
font-weight: 400;
|
|
color: var(--color-text);
|
|
margin: 0;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
/* Controls Section */
|
|
.controls {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
padding: 15px;
|
|
background: var(--color-bg);
|
|
border: 1px solid var(--color-primary);
|
|
border-radius: 25px;
|
|
}
|
|
|
|
.searchContainer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.floatingLabelInput {
|
|
position: relative;
|
|
width: 250px;
|
|
}
|
|
|
|
.label {
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--color-text);
|
|
opacity: 0.6;
|
|
font-size: 14px;
|
|
pointer-events: none;
|
|
transition: all 0.3s ease;
|
|
background-color: transparent;
|
|
font-family: var(--font-family);
|
|
}
|
|
|
|
.focusedLabel {
|
|
position: absolute;
|
|
left: 12px;
|
|
top: -8px;
|
|
transform: translateY(0);
|
|
color: var(--color-secondary);
|
|
font-size: 12px;
|
|
pointer-events: none;
|
|
transition: all 0.3s ease;
|
|
background-color: var(--color-bg);
|
|
padding: 0 4px;
|
|
font-family: var(--font-family);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.searchInput {
|
|
width: 100%;
|
|
height: 40px;
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--color-primary);
|
|
border-radius: 25px;
|
|
font-size: 14px;
|
|
font-family: var(--font-family);
|
|
background: var(--color-bg);
|
|
color: var(--color-text);
|
|
transition: all 0.2s ease;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.searchInput:focus {
|
|
border-color: var(--color-secondary);
|
|
box-shadow: 0 0 0 2px rgba(var(--color-secondary), 0.1);
|
|
}
|
|
|
|
.searchInput::placeholder {
|
|
color: transparent;
|
|
}
|
|
|
|
.filtersContainer {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 15px;
|
|
align-items: center;
|
|
}
|
|
|
|
.filterGroup {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.filterGroup .floatingLabelInput {
|
|
width: 160px;
|
|
}
|
|
|
|
.customSelectContainer {
|
|
position: relative;
|
|
display: inline-block;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.filterInput {
|
|
width: 100%;
|
|
height: 40px;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--color-primary);
|
|
border-radius: 25px;
|
|
font-size: 14px;
|
|
font-family: var(--font-family);
|
|
background: var(--color-bg);
|
|
color: var(--color-text);
|
|
opacity: 0.6;
|
|
min-width: 120px;
|
|
transition: all 0.2s ease;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.filterInput::placeholder {
|
|
color: transparent;
|
|
}
|
|
|
|
.filterSelect {
|
|
height: 40px;
|
|
padding: 6px 10px;
|
|
border: 1px solid var(--color-primary);
|
|
border-radius: 25px;
|
|
font-size: 14px;
|
|
font-family: var(--font-family);
|
|
background: var(--color-bg);
|
|
color: var(--color-text);
|
|
opacity: 0.6;
|
|
min-width: 120px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
|
|
|
|
|
|
.filterSelect {
|
|
appearance: none;
|
|
background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
|
|
background-repeat: no-repeat;
|
|
background-position: right 10px center;
|
|
background-size: 16px;
|
|
padding-right: 35px;
|
|
}
|
|
|
|
/* Hide dropdown arrow when filter has a value */
|
|
.filterSelect.hasValue {
|
|
background-image: none;
|
|
color: var(--color-secondary);
|
|
border-color: var(--color-secondary);
|
|
opacity: 1;
|
|
}
|
|
|
|
.filterInput:focus {
|
|
outline: none;
|
|
border-color: var(--color-secondary);
|
|
opacity: 1;
|
|
box-shadow: 0 0 0 2px rgba(var(--color-secondary), 0.1);
|
|
}
|
|
|
|
|
|
|
|
.filterSelect:focus {
|
|
outline: none;
|
|
border-color: var(--color-secondary);
|
|
opacity: 1;
|
|
}
|
|
|
|
|
|
.clearFilterButton {
|
|
position: absolute;
|
|
right: 8px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: none;
|
|
border: none;
|
|
color: var(--color-primary);
|
|
cursor: pointer;
|
|
font-size: 16px;
|
|
padding: 2px;
|
|
border-radius: 50%;
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.clearFilterButton:hover {
|
|
background: none;
|
|
color: var(--color-secondary);
|
|
}
|
|
|
|
|
|
|
|
/* Table Container */
|
|
.tableContainer {
|
|
position: relative;
|
|
overflow: auto;
|
|
border: 1px solid var(--color-primary);
|
|
border-radius: 25px;
|
|
background: var(--color-bg);
|
|
max-height: 600px;
|
|
}
|
|
|
|
.loading {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 40px;
|
|
font-size: 16px;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
/* Table Styles */
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 14px;
|
|
background: var(--color-bg);
|
|
table-layout: fixed;
|
|
}
|
|
|
|
.th {
|
|
position: sticky;
|
|
top: 0;
|
|
background: var(--color-bg);
|
|
padding: 10px 16px;
|
|
text-align: left;
|
|
font-weight: 400;
|
|
color: var(--color-text);
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
position: relative;
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
.th.actionsColumn {
|
|
text-align: center;
|
|
}
|
|
|
|
.th.sortable {
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.th.sortable:hover {
|
|
background: var(--color-gray-disabled);
|
|
}
|
|
|
|
.headerContent {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: left;
|
|
gap: 8px;
|
|
}
|
|
|
|
.sortIcon {
|
|
font-size: 12px;
|
|
color: var(--color-secondary);
|
|
opacity: 1.;
|
|
}
|
|
|
|
.resizeHandle {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
width: 4px;
|
|
height: 100%;
|
|
cursor: col-resize;
|
|
z-index: 11;
|
|
}
|
|
|
|
.resizeHandle:hover {
|
|
background: var(--color-secondary);
|
|
}
|
|
|
|
.td {
|
|
padding: 12px 16px;
|
|
border-top: 1px solid var(--color-primary);
|
|
color: var(--color-text);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.tr {
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.tr:hover {
|
|
background: var(--color-gray-disabled);
|
|
}
|
|
|
|
.tr.selected {
|
|
background: rgba(var(--color-secondary-rgb), 0.1);
|
|
}
|
|
|
|
.tr.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Selection Column */
|
|
.selectColumn {
|
|
text-align: center;
|
|
padding: 8px !important;
|
|
}
|
|
|
|
.selectColumn input[type="checkbox"] {
|
|
cursor: pointer;
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
/* Actions Column */
|
|
.actionsColumn {
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
padding: 12px 8px !important;
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* Actions Column border only on body cells, not header */
|
|
tbody .actionsColumn {
|
|
border-top: 1px solid var(--color-primary);
|
|
}
|
|
|
|
.actionButtons {
|
|
display: flex;
|
|
gap: 4px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: fit-content;
|
|
margin: 0 auto;
|
|
|
|
|
|
}
|
|
|
|
.actionButton {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px;
|
|
border: none;
|
|
border-radius: 50%;
|
|
font-size: 12px;
|
|
font-family: var(--font-family);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
position: relative;
|
|
min-width: 32px;
|
|
min-height: 32px;
|
|
background: var(--color-secondary);
|
|
color: var(--color-bg);
|
|
}
|
|
|
|
.actionButton:hover {
|
|
background: var(--color-secondary-hover);
|
|
transform: scale(1.05);
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.actionIcon {
|
|
font-size: 16px;
|
|
height: 16px;
|
|
width: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Custom Tooltip */
|
|
.tooltip {
|
|
position: absolute;
|
|
bottom: 120%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--color-text);
|
|
color: var(--color-bg);
|
|
padding: 6px 10px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.2s ease, visibility 0.2s ease;
|
|
z-index: 1000;
|
|
pointer-events: none;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
/* Tooltip arrow */
|
|
.tooltip::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
border: 5px solid transparent;
|
|
border-top-color: var(--color-text);
|
|
}
|
|
|
|
/* Show tooltip on button hover */
|
|
.actionButton:hover .tooltip {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
/* Pagination */
|
|
.pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 15px;
|
|
border-top: 1px solid var(--color-gray-disabled);
|
|
background: var(--color-bg);
|
|
border-radius: 0 0 8px 8px;
|
|
}
|
|
|
|
.paginationButton {
|
|
padding: 8px 12px;
|
|
border: 1px solid var(--color-gray-disabled);
|
|
background: var(--color-bg);
|
|
color: var(--color-text);
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-family: var(--font-family);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.paginationButton:hover:not(:disabled) {
|
|
background: var(--color-gray-disabled);
|
|
border-color: var(--color-secondary);
|
|
}
|
|
|
|
.paginationButton:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.paginationInfo {
|
|
font-size: 14px;
|
|
color: var(--color-text);
|
|
margin: 0 15px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.controls {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 15px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.filtersContainer {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
gap: 10px;
|
|
}
|
|
|
|
.filterGroup {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
}
|
|
|
|
.filterInput,
|
|
.filterSelect {
|
|
width: 100%;
|
|
min-width: auto;
|
|
}
|
|
|
|
.floatingLabelInput {
|
|
max-width: none;
|
|
}
|
|
|
|
.filterGroup .floatingLabelInput {
|
|
width: 100%;
|
|
}
|
|
|
|
.tableContainer {
|
|
max-height: 400px;
|
|
}
|
|
|
|
.th,
|
|
.td {
|
|
padding: 8px 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.actionButtons {
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.actionButton {
|
|
padding: 4px 8px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.pagination {
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
padding: 10px;
|
|
}
|
|
|
|
.paginationInfo {
|
|
order: -1;
|
|
width: 100%;
|
|
text-align: center;
|
|
margin: 0 0 10px 0;
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
|
|
/* Dark theme support */
|
|
@media (prefers-color-scheme: dark) {
|
|
.th.sortable:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.tr:hover {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
}
|
|
|
|
.tr.selected {
|
|
background: rgba(var(--color-secondary-rgb), 0.2);
|
|
}
|
|
}
|
|
|
|
/* Accessibility */
|
|
.actionButton:focus,
|
|
.paginationButton:focus,
|
|
.searchInput:focus,
|
|
.filterInput:focus,
|
|
.filterSelect:focus {
|
|
outline: none;
|
|
}
|
|
|
|
/* Custom scrollbar for table container */
|
|
.tableContainer::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
.tableContainer::-webkit-scrollbar-track {
|
|
background: var(--color-gray-disabled);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.tableContainer::-webkit-scrollbar-thumb {
|
|
background: var(--color-gray);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.tableContainer::-webkit-scrollbar-thumb:hover {
|
|
background: var(--color-secondary);
|
|
} |