simple tabs

This commit is contained in:
Nils Schneider 2015-03-26 00:33:11 +01:00
commit 368ca5e14a
4 changed files with 114 additions and 5 deletions

View file

@ -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;