65 lines
1.6 KiB
CSS
65 lines
1.6 KiB
CSS
/* Admin-only additions to ep-design.css, built on its tokens */
|
|
@layer base {
|
|
.htmx-indicator {
|
|
@apply invisible;
|
|
}
|
|
|
|
.htmx-request .htmx-indicator,
|
|
.htmx-request.htmx-indicator {
|
|
@apply visible;
|
|
}
|
|
|
|
/* checked boxes and radios in the brand colour (@tailwindcss/forms fills them with currentColor) */
|
|
[type="checkbox"],
|
|
[type="radio"] {
|
|
@apply text-brand;
|
|
}
|
|
|
|
/* thin scrollbars without a track for inner scrolling areas, as in app.css */
|
|
body * {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--color-line) transparent;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.badge {
|
|
@apply inline-flex items-center px-1.5 py-0.5 text-xs font-bold whitespace-nowrap;
|
|
}
|
|
|
|
.tippy-box {
|
|
@apply bg-brand;
|
|
}
|
|
|
|
.tippy-box[data-placement^='top'] > .tippy-arrow::before {
|
|
border-top-color: var(--color-brand);
|
|
}
|
|
|
|
.tippy-box[data-placement^='bottom'] > .tippy-arrow::before {
|
|
border-bottom-color: var(--color-brand);
|
|
}
|
|
|
|
.tippy-box[data-placement^='left'] > .tippy-arrow::before {
|
|
border-left-color: var(--color-brand);
|
|
}
|
|
|
|
.tippy-box[data-placement^='right'] > .tippy-arrow::before {
|
|
border-right-color: var(--color-brand);
|
|
}
|
|
}
|
|
|
|
/* a list in a card, scrolling sideways when it is wider than the content column */
|
|
@layer components {
|
|
.data-table-wrapper {
|
|
@apply mb-8 overflow-x-auto border border-line bg-white;
|
|
}
|
|
|
|
.data-table-wrapper__inner {
|
|
@apply min-w-full align-middle;
|
|
}
|
|
|
|
.data-table tbody tr {
|
|
@apply hover:bg-brand-light/50;
|
|
}
|
|
}
|