-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabs.css
More file actions
71 lines (59 loc) · 1.5 KB
/
tabs.css
File metadata and controls
71 lines (59 loc) · 1.5 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
.tabsNavLink {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 16px;
font-weight: bold;
text-transform: uppercase;
color: #3f3f3f;
padding: 20px;
cursor: pointer;
text-decoration: none; }
.tabsNavLink:hover, .tabsNavLink:focus {
color: #0c0c0c; }
.tabsNavLink--isActive {
border-bottom: 4px solid #0c0c0c; }
.tabsNavLink--isActive .tabsNavLink__icon {
transform: rotate(90deg);
transform-origin: center; }
.tabsNavLink__icon {
transition: transform .35s ease-in-out; }
.tabsNavLink__icon svg {
display: block;
fill: #cccccc; }
.tabs--isVert .tabsNavLink:not(:first-child) {
border-top: 1px solid #cccccc; }
.tabs--isVert .tabsNavLink--isActive {
border-bottom: 0; }
.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--isVert .tabs__panel--isActive {
background-color: #cccccc;
transform: none; }