This repository was archived by the owner on May 23, 2022. It is now read-only.
forked from Basalt-Team/Basalt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabs.css
More file actions
94 lines (80 loc) · 2.05 KB
/
tabs.css
File metadata and controls
94 lines (80 loc) · 2.05 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
84
85
86
87
88
89
90
91
92
93
94
/* ======================= */
/* TABS */
/* ======================= */
ul.yui-nav a {
font-family: 'Work Sans', sans-serif;
padding: 3.5px;
color: white;
font-weight: 600;
}
.yui-navset .yui-nav .selected,
.yui-navset .yui-navset-top .yui-nav .selected,
.yui-navset .yui-nav a:hover,
yui-navset .yui-nav a:active {
color: white;
background-color: black;
}
.yui-navset .yui-nav,
.yui-navset .yui-navset-top .yui-nav {
border: none;
border-bottom: dotted 1px grey;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}
.yui-navset .yui-content>div {
display: block;
top: 0;
overflow: hidden;
transform-origin: 0 0;
}
.yui-navset-top a {
transition-property: background, background-color;
transition-duration: 0.2s;
}
/* Tab animation by Croquembouche */
/*---------------------------------------------*/
#page-content .yui-navset .yui-content>div[style*="none"] {
display: block !important;
flex: 0;
max-height: 0;
padding: 0 0.5em;
border-width: 0;
/* The following transition affects the one that DISAPPEARS */
transition: padding 0s linear 0.5s, border-width 0s linear 0.5s, flex 0.5s cubic-bezier(.18, .51, .54, .9) 0s;
animation: tab-disappear 0.5s ease-in-out 0s 1 both;
}
#page-content .yui-navset .yui-content>div[style*="block"] {
display: block !important;
flex: 1;
max-height: 9999rem;
/* The following transition affects the one that APPEARS */
transition: padding 0s linear 0.5s, border-width 0s linear 0.5s, flex 0.5s cubic-bezier(.18, .51, .54, .9) 0.5s;
animation: tab-appear 0.5s ease-in-out 0.5s 1 both;
}
@keyframes tab-disappear {
0% {
max-height: 9999rem;
}
1% {
max-height: 100vh;
}
100% {
max-height: 0;
}
}
@keyframes tab-appear {
0% {
max-height: 0;
}
99% {
max-height: 100vh;
}
100% {
max-height: 9999rem;
}
}
/*---------------------------------------------*/
.yui-navset .yui-content {
background: transparent;
box-shadow: none;
border-bottom: dotted 4px grey;
}