-
Notifications
You must be signed in to change notification settings - Fork 5
/
stylesTabs.css
100 lines (84 loc) · 1.72 KB
/
stylesTabs.css
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
/* tab styling method 1: just links and tagets ---------------------------------------------*/
.tab-content {
padding: 10px;
border: none
}
.tab-nav {
display: flex;
flex-wrap: wrap;
list-style: none;
}
.tab-link {
display: flex;
align-items: left;
width: 60px;
height: 10px;
margin-right: -1px;
padding-right: 5px;
padding-left: 15px;
font-size: 16px;
text-decoration: none;
}
.tab-content:not(:target) {
display: none;
}
.tab-content:target {
display: block;
}
/* tab styling method 2: input-ratio-button -------------------------------------------*/
.tabs {
display: flex;
flex-wrap: wrap;
}
.tabs__label {
padding: 10px 16px;
font-size: 1.1em;
}
.tabs__radio {
display: none;
}
.tabs__content {
order: 1;
width: 100%;
line-height: 1.5;
font-size: 0.9em;
display: none;
color: #ebedf1;
}
.tabs__radio:checked+.tabs__label {
color: rgb(13, 173, 247);
}
.tabs__radio:checked+.tabs__label+.tabs__content {
display: initial;
}
/* tab styling method 3: W3.CSS ---------------------------------------------*/
.tabw3 {
overflow: hidden;
background-color: #5555FF;
;
}
/* Style the buttons that are used to open the tab content */
.tabw3 button {
background-color: inherit;
float: left;
border: none;
outline: none;
cursor: pointer;
padding: 14px 16px;
transition: 0.3s;
color: #2c3a57;
}
/* Change background color of buttons on hover */
.tabw3 button:hover {
color: #91b1f3;
}
/* Create an active/current tablink class */
.tabw3 button.active {
color: whitesmoke;
}
/* Style the tab content */
.tabcontentw3 {
display: none;
padding: 6px 12px;
border-top: none;
}