-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtabs.css
More file actions
52 lines (46 loc) · 963 Bytes
/
tabs.css
File metadata and controls
52 lines (46 loc) · 963 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
/* Style the tab */
.tab {
display: flex;
margin: 1rem 0 0 0;
overflow: hidden;
background-color: #ffffff1a;
border: 0px solid #ccc;
border-radius: 0.2rem;
}
/* Style the buttons that are used to open the tab content */
.tab button {
margin: 0;
padding: 1rem;
width: 100%;
background-color: inherit;
border: none;
border-radius: inherit;
color: black;
font-size: var(--fs-h3);
float: left;
outline: none;
cursor: pointer;
transition: 0.3s;
}
/* Change background color of buttons on hover */
.tab button:hover {
background-color: #aaaaaaaa;
}
/* Create an active/current tablink class */
.tab button.active {
background-color: #ffffffcc;
}
/* Style the tab content */
.tabcontent {
display: none;
padding: 1rem 0 0 0;
background-color: #0000001f;
border-radius: 1rem;
}
.tabcontent h3 {
margin: 0;
}
.tabcontent p {
margin: 0;
padding: 2rem 0 0 0;
}