Skip to content

Commit 3413c75

Browse files
Merge pull request #14 from TorstenDittmann/fix-tabs
Improve tabs styling with overflow and hover effects
2 parents d9efab9 + de5627f commit 3413c75

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/main/src/compoments/_tabs.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,30 @@
55
background: var(--background-secondary);
66
padding: 0.25rem;
77
width: 100%;
8+
overflow: scroll;
89
}
910

1011
[role="tab"] {
12+
display: inline-flex;
1113
flex: 1 1 0;
14+
justify-content: center;
15+
align-items: center;
1216
cursor: pointer;
1317
border: none;
1418
border-radius: 0.5rem;
1519
background: none;
16-
padding: 0.5em 0;
20+
padding: 0.5rem 1rem;
21+
height: 2.5rem;
1722
color: var(--color-muted);
1823
text-align: center;
1924
text-decoration: none;
25+
white-space: pre;
2026

2127
&[aria-selected="true"] {
2228
background: var(--background-primary);
2329
color: var(--color-primary);
2430
}
31+
&:hover {
32+
opacity: 0.9;
33+
}
2534
}

0 commit comments

Comments
 (0)