-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabs.scss
More file actions
52 lines (43 loc) · 899 Bytes
/
tabs.scss
File metadata and controls
52 lines (43 loc) · 899 Bytes
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
@import './_tabsNavLink.scss';
.tabs__nav {
display: flex;
padding: 0;
margin-bottom: 10px;
list-style: none;
}
.tabs__nav > * {
flex: 1;
}
.tabs__panels {
overflow: hidden;
}
.tabs__panel {
position: absolute;
left: -100%;
visibility: hidden;
overflow: hidden;
opacity: 0;
transition: opacity .5s ease-in-out, transform .35s ease-in-out;
}
.tabs__panel--isActive {
position: relative;
transform: translateX(100%);
visibility: visible;
opacity: 1;
}
.tabs__panelContent {
padding: 20px;
}
.tabs--isVert {
.tabs__panel {
position: relative;
left: 0;
max-height: 0;
opacity: 1;
transition: max-height .25s ease-in-out, background .25s ease-in-out, visibility .25s ease-in-out;
}
.tabs__panel--isActive {
background-color: #cccccc;
transform: none;
}
}