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

94 lines
1.2 KiB
Stylus
Raw Normal View History

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