-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTabs.scss
More file actions
44 lines (39 loc) · 919 Bytes
/
Tabs.scss
File metadata and controls
44 lines (39 loc) · 919 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
.tabs {
@apply bg-transparent flex flex-wrap text-left;
transition-duration: 0.25s;
transition-property: background-color, box-shadow, color, fill;
label {
@apply flex justify-center;
box-shadow: inset 0 -2px var(--blue-light);
flex: 1 0 auto;
font-size: 22px;
font-weight: bold;
letter-spacing: 1px;
padding: 10px 20px 10px 10px;
&:hover, &:focus {
@apply cursor-pointer text-navy;
box-shadow: inset 0 -2px var(--navy);
}
}
.tab-content {
@apply m-0;
color: var(--grey-light);
font-size: 18px;
font-weight: lighter;
line-height: 2;
min-height: 250px;
order: 1;
padding: 0.75em 0;
}
input[type='radio'],
.tab-content {
display: none;
}
input[type='radio']:checked + label {
@apply bg-transparent text-navy;
box-shadow: inset 0 -2px var(--navy);
+ .tab-content {
display: block;
}
}
}