fix: keep the tab rows from scrolling vertically
This commit is contained in:
1 parent
e9b0de44f1
commit
8f4c4d8267
3 files changed
+22
-4
No files matched your search
@@ -23,3 +23,21 @@
|
||||
.section-title {
|
||||
@apply text-base font-semibold uppercase tracking-wide text-brand;
|
||||
}
|
||||
|
||||
/*
|
||||
* A row of tabs (_partials/_tabs.html.twig, the questionnaire list). The row scrolls sideways on
|
||||
* narrow screens, which makes it a vertical scroll container too, so nothing may stick out below
|
||||
* it: the base line is an inset shadow the tabs' underline paints over, not a border they would
|
||||
* have to overlap with a negative margin.
|
||||
*/
|
||||
.tabs {
|
||||
@apply flex overflow-x-auto shadow-[inset_0_-1px_0_var(--color-line)];
|
||||
}
|
||||
|
||||
.tab {
|
||||
@apply shrink-0 whitespace-nowrap border-b-4 border-transparent px-3 py-2 text-sm text-ink hover:text-brand;
|
||||
}
|
||||
|
||||
.tab--current {
|
||||
@apply border-brand-bright font-bold text-brand;
|
||||
}
|
||||
Reference in new issue
Block a user