-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy path_tabs.scss
108 lines (90 loc) · 1.92 KB
/
_tabs.scss
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
.tabs-container {
display: flex;
flex-direction: column;
overflow: auto;
&.full-width {
width: 100%;
.tabs.pills {
justify-content: space-between;
min-height: 37.6px;
.tab {
flex-grow: 1;
// 4 pills to display in ManageTrainSchedule, with 3 gaps of 16px
width: calc((100% - 3 * 16px) / 4);
text-overflow: ellipsis;
}
}
}
&.full-height {
height: 100%;
.tab-content {
height: 100%;
.tab-pane {
height: 100%;
}
}
}
.tabs {
display: flex;
margin-bottom: 8px;
gap: 16px;
.tab {
padding-bottom: 8px;
position: relative;
border-bottom: 3px solid transparent;
transition: text-shadow 0.3s;
&::after {
transition: all ease 0.3s;
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 5px;
content: '';
background-color: transparent;
border-radius: 3px;
}
&:hover {
cursor: pointer;
color: var(--primary);
}
&.active {
text-shadow: 0 0 0.65px var(--primary);
color: var(--primary);
&::after {
background-color: var(--primary);
}
}
}
&.pills {
.tab {
display: flex;
align-items: center;
font-weight: 500;
transition: all ease 0.3s;
padding: 8px 16px;
border: 2px solid transparent;
border-radius: var(--border-radius);
background-color: var(--white);
color: var(--primary);
&::after {
content: none;
}
&:hover,
&.active {
background-color: var(--primary);
color: var(--white);
}
&.warning {
border-color: var(--danger);
}
}
}
}
.tab-content > .tab-pane {
display: none;
}
.tab-content > .active {
display: block;
}
}