
Untitled
By: a guest on
Sep 13th, 2012 | syntax:
None | size: 1.45 KB | hits: 8 | expires: Never
body {
font-family: sans-serif;
}
.buttonlist li {
list-style: none outside none;
font-weight: bolder;
border: 1px solid white;
padding: 20px;
color: white;
-webkit-transition: opacity 1s, visibility 1s, height 1s, padding 1s;
}
.buttonlist li:nth-of-type(odd) {
background-color: #348EC0;
}
.buttonlist li:nth-of-type(odd):hover,
.buttonlist li:nth-of-type(odd):focus
{
background-color: #126C9E;
}
.buttonlist li:nth-of-type(even) {
background-color: #80CB37;
}
.buttonlist li:nth-of-type(even):hover,
.buttonlist li:nth-of-type(even):focus
{
background-color: #5EA915;
}
.buttonlist li.toggle {
background-color: #E1523D;
-webkit-transition: border 1s;
position: relative;
border-top-width: 5px;
}
.buttonlist li.toggle:hover,
.buttonlist li.toggle:focus
{
background-color: #BF301B;
}
.buttonlist li.toggle div {
position: absolute;
background: inherit;
-webkit-transition: -webkit-transform 1s, opacity 1s;
-webkit-transition-delay: 1s;
-webkit-transform: rotateX(180deg);
opacity: 0;
}
.buttonlist li.toggle div:nth-of-type(2) {
-webkit-transform: rotateX(0);
opacity: 1;
}
.buttonlist.hidden li.toggle div {
-webkit-transform: rotateX(0);
opacity: 1;
}
.buttonlist.hidden li.toggle div:nth-of-type(2) {
-webkit-transform: rotateX(180deg);
opacity: 0;
}
.buttonlist.hidden li.toggle {
border-top-width: 1px;
}
.buttonlist.hidden li.hideable {
opacity: 0;
visibility: hidden;
height: 0;
padding: 0;
}