Repository navigation
Expand file tree
/
Copy pathtabs.less
More file actions
83 lines (68 loc) · 1.65 KB
/
Copy pathtabs.less
File metadata and controls
83 lines (68 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
@import "variables";
// General Styles
.github-Tabs {
&-Panel {
&.active {
display: flex;
}
&.inactive {
display: none;
}
}
}
// App-specific styles
.github-Tabs.sidebar-tabs {
height: 100%;
display: flex;
flex-direction: column;
.github-Tabs-NavigationContainer {
display: flex;
flex-direction: row;
padding: @component-padding;
border-bottom: 1px solid @panel-heading-border-color;
.github-Tabs-NavigationItem {
flex: 1;
text-align: center;
cursor: pointer;
background-color: @button-background-color;
color: contrast(@button-background-color, hsla(0,0%,0%,.6), hsla(0,0%,100%,.6));
border: 1px solid @button-border-color;
padding: .25em .5em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
& + .github-Tabs-NavigationItem {
border-left: none;
}
&.active {
background-color: @button-background-color-selected;
color: contrast(@button-background-color-selected, hsla(0,0%,0%,1), hsla(0,0%,100%,1));
}
&:first-child {
border-top-left-radius: @component-border-radius;
border-bottom-left-radius: @component-border-radius;
}
&:last-child {
border-top-right-radius: @component-border-radius;
border-bottom-right-radius: @component-border-radius;
}
}
}
&[data-tabs-count="1"] {
.github-Tabs-NavigationContainer {
display: none;
}
}
.github-Tabs-PanelContainer {
flex: 1;
display: flex;
flex-direction: column;
}
.github-Tabs-Panel {
flex: 1;
&.active {
}
&.inactive {
}
}
}