Skip to content

Commit 4163664

Browse files
committed
Style Dashboard tabs to match visual style of other tabs in app
1 parent 125051c commit 4163664

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed
Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,35 @@
11
.dashboard-header {
2-
padding: 24px 66px;
2+
padding: #{24 / $base-font-size}rem #{66 / $base-font-size}rem;
33
}
44

55
.dashboard-header__tabs {
66
display: flex;
77
padding-top: #{24 / $base-font-size}rem;
8-
padding-bottom: #{24 / $base-font-size}rem;
8+
margin-bottom: #{24 / $base-font-size}rem;
9+
@include themify() {
10+
border-bottom: 1px solid getThemifyVariable('inactive-text-color');
11+
}
912
}
1013

1114
.dashboard-header__tab {
1215
@include themify() {
1316
color: getThemifyVariable('inactive-text-color');
14-
border-right: 2px solid getThemifyVariable('inactive-text-color');
17+
border-bottom: #{4 / $base-font-size}rem solid transparent;
1518

16-
padding: 0 13px;
19+
padding: 0 0 #{8 / $base-font-size}rem 0;
20+
margin-right: #{26 / $base-font-size}rem;
1721

18-
&:hover, &:focus {
19-
color: getThemifyVariable('primary-text-color');
20-
cursor: pointer;
21-
}
22-
&:focus {
22+
&:hover, &:focus, &.dashboard-header__tab--selected {
2323
color: getThemifyVariable('primary-text-color');
24+
border-bottom-color: getThemifyVariable('nav-hover-color');
2425
cursor: pointer;
2526
}
2627
}
2728

2829
font-size: #{21 / $base-font-size}rem;
2930
}
3031

31-
32-
.dashboard-header__tab:first-child {
33-
padding-left: 0;
34-
}
35-
36-
.dashboard-header__tab:last-child {
37-
border-right: none;
38-
}
39-
4032
.dashboard-header__tab--selected {
41-
@include themify() {
42-
color: getThemifyVariable('primary-text-color');
43-
}
4433
cursor: auto;
4534
}
4635

@@ -49,5 +38,6 @@
4938
}
5039

5140
.dashboard-header__tab__title {
41+
font-weight: bold;
5242
margin: 0;
5343
}

0 commit comments

Comments
 (0)