toloframework
Version:
Javascript/HTML/CSS compiler for Firefox OS or nodewebkit apps using modules in the nodejs style.
89 lines (75 loc) • 1.46 kB
CSS
.wdg-showhide {
display: block;
position: relative;
padding: 0;
margin: .5rem;
background: #fff;
}
.wdg-showhide.inline {
display: inline-block;
vertical-align: top;
}
.wdg-showhide > * {
position: relative;
}
.wdg-showhide > .head {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 100%;
margin: 0;
padding: 0;
height: 2rem;
line-height: 2rem;
cursor: pointer;
font-weight: bold;
z-index: 1;
text-transform: uppercase;
font-family: Roboto, josefin-sans, sans-serif;
font-size: 14px;
font-weight: bold;
}
.wdg-showhide > .head > * {
flex-grow: 1;
}
.wdg-showhide > .head > *:first-child {
transition: transform .2s;
transform: rotate(0);
flex-grow: 0;
}
.wdg-showhide > .head .label {
padding-left: 1rem;
}
.wdg-showhide > .body {
display: none;
margin: 0;
padding: .5rem;
overflow-y: auto;
}
.wdg-showhide.simple {
background: transparent;
}
.wdg-showhide.simple > .body {
padding: 0 0 1rem 0;
background: transparent;
overflow: visible;
}
.wdg-showhide.simple span.label {
font-weight: bold;
}
.wdg-showhide.show > .head > *:first-child {
transition: transform .2s;
transform: rotate(90deg);
}
.wdg-showhide.show > .body {
display: block;
opacity: 0;
transform: translateY(-32px);
transition: none;
}
.wdg-showhide.show.fade-in > .body {
opacity: 1;
transform: translateY(0);
transition: all .3s;
}