Skip to content

Commit 99c2569

Browse files
committed
style tabs as per design
1 parent a7d1fb1 commit 99c2569

File tree

1 file changed

+21
-24
lines changed

1 file changed

+21
-24
lines changed

ui/src/css/tabs.css

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,43 @@
99
list-style: none;
1010
margin: 0;
1111
padding: 0;
12+
border-bottom: 1px solid var(--color-vapor);
1213
}
1314

1415
.tablist > ul li {
1516
align-items: center;
1617
background-color: #fff;
1718
cursor: pointer;
1819
display: flex;
19-
font-weight: bold;
20+
font-weight: 400;
2021
line-height: 1.5;
21-
padding: 0.25em 1em;
22+
padding: 1em 1px;
23+
margin-right: 1.5em;
2224
position: relative;
2325
}
2426

27+
.tablist > ul li.is-selected {
28+
font-weight: 600;
29+
border-bottom: 2px solid var(--color-accent-green);
30+
}
31+
32+
.tablist > ul li p {
33+
font-weight: inherit;
34+
}
35+
2536
.tablist > ul li:focus-visible {
2637
outline: none;
2738
}
2839

29-
.tablist.ulist,
30-
.tablist.ulist > ul li {
40+
.tablist.ulist {
3141
margin: 0;
3242
}
3343

34-
.tablist.ulist > ul li + li {
35-
margin-left: 0.25em;
44+
.tablist.ulist > ul li {
45+
margin: 0 1.5em 0 0;
3646
}
3747

48+
/* Disabled to allow borders to show
3849
.tabs .tablist li::after {
3950
content: "";
4051
display: block;
@@ -44,14 +55,14 @@
4455
left: 0;
4556
right: 0;
4657
}
58+
*/
4759

4860
.tabs.is-loading .tablist li:not(:first-child),
4961
.tabs:not(.is-loading) .tablist li:not(.is-selected) {
50-
background-color: #f5f5f5;
62+
background-color: transparent;
5163
}
5264

53-
.tabs.is-loading .tablist li:first-child::after,
54-
.tabs:not(.is-loading) .tablist li.is-selected::after {
65+
.tabs.is-loading .tablist li:first-child::after {
5566
background-color: #fff;
5667
}
5768

@@ -69,21 +80,7 @@
6980

7081
.tabpanel {
7182
background-color: #fff;
72-
padding: 1.25em;
73-
}
74-
75-
.tablist > ul li {
76-
border: 1px solid #dcdcdc;
77-
border-radius: 8px 8px 0 0;
78-
}
79-
80-
.tabpanel {
81-
border: 1px solid #dcdcdc;
82-
border-radius: 0 0 8px 8px;
83-
}
84-
85-
.tablist > ul li {
86-
border-bottom: 0;
83+
padding: 1.25em 0;
8784
}
8885

8986
.tabs.is-loading .tabpanel + .tabpanel,

0 commit comments

Comments
 (0)