dat.gui/elements/gui-panel/gui-panel.styl

99 lines
1.4 KiB
Stylus
Raw Normal View History

2014-09-03 16:52:28 +00:00
@import '../shared/shared';
2014-08-27 00:01:15 +00:00
#container {
background: panel-color;
transition: transform 0.4s cubic-bezier( 0, 0.8, 0, 1 );
&.autoplace-true {
width: panel-width;
position: fixed;
top: 0;
&.docked-false {
right: 20px;
&.open-true {
}
&.open-false {
2014-09-01 03:54:59 +00:00
2014-08-27 00:01:15 +00:00
}
}
&.docked-true {
right: 0;
bottom: 0;
2014-09-03 16:52:28 +00:00
#controllers {
position: absolute;
width: 100%;
bottom: 0;
top: 0;
overflow: auto;
}
2014-08-27 00:01:15 +00:00
&.open-true {
}
&.open-false {
transform: translate3d( panel-width, 0, 0 );
}
}
}
}
#closeButton {
panel-font()
user-select: none;
cursor: pointer;
text-align: center;
padding: padding * 0.75 padding;
background: black;
&:hover {
background: panel-color;
}
}
#closeButtonDocked {
position: absolute;
right: panel-width;
cursor: pointer;
top: 0;
color: black;
2014-09-03 16:52:28 +00:00
width: 60px;
height: 60px;
2014-08-27 00:01:15 +00:00
padding: 10px;
box-sizing: border-box;
}
#closeButtonDockedInner {
border-radius: 3px;
background: #fff;
width: 100%;
height: 100%;
}