dat.gui/elements/gui-row/gui-row.styl

87 lines
1.1 KiB
Stylus
Raw Normal View History

2014-08-16 21:16:02 +00:00
@import '../shared';
2014-08-15 16:32:49 +00:00
2014-08-16 21:16:02 +00:00
:host {
user-select: none;
width: 100%;
display: block;
font();
2014-08-15 16:32:49 +00:00
}
2014-08-16 21:16:02 +00:00
#row {
2014-08-15 16:32:49 +00:00
2014-08-16 21:16:02 +00:00
}
#comment {
line-height: 16px;
user-select: text;
background: #E0CF99;
color: #333;
2014-08-18 21:56:05 +00:00
// box-shadow: inset 0 2px 0 dark;
2014-08-16 21:16:02 +00:00
box-sizing: border-box;
overflow: hidden;
transition: height 0.15s ease;
2014-08-18 21:56:05 +00:00
position: absolute;
z-index: 999;
pointer-events: none;
opacity: 0;
transform: translate3d( 10px, 20px, 0 );
transition: all 0.2s ease;
}
#comment.open-true {
opacity: 1;
transform: translate3d( 10px, 0, 0 );
2014-08-16 21:16:02 +00:00
}
#commentInner {
padding: padding;
}
#name {
2014-08-15 16:32:49 +00:00
text-overflow: ellipsis;
word-wrap: break-word;
overflow: hidden;
2014-08-16 21:16:02 +00:00
padding: 0 padding;
2014-08-15 16:32:49 +00:00
box-sizing: border-box;
2014-08-16 21:16:02 +00:00
display: inline-block;
width: 40%;
height: 30px;
line-height: 30px;
cursor: default;
.comment-true & {
cursor: pointer;
}
2014-08-15 16:32:49 +00:00
}
2014-08-16 21:16:02 +00:00
.comment-true #nameInner {
display: inline-block;
border-bottom: 1px dotted light;
&:after {
content: ' ?';
color: light;
}
2014-08-15 16:32:49 +00:00
2014-08-16 21:16:02 +00:00
}