simple tabs
This commit is contained in:
parent
789f9b7f7c
commit
368ca5e14a
4 changed files with 114 additions and 5 deletions
30
index.html
30
index.html
|
@ -9,6 +9,36 @@
|
|||
paint-order: stroke;
|
||||
}
|
||||
|
||||
.tabs {
|
||||
list-style: none;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.tabs li {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
padding: 0.5em;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.tabs li:hover {
|
||||
background: rgba(0, 0, 0, 0.03);
|
||||
color: #dc0067;
|
||||
}
|
||||
|
||||
.tabs .visible {
|
||||
font-weight: bold;
|
||||
border-bottom: 2pt solid black;
|
||||
}
|
||||
|
||||
.tab {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.tab.visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue