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

106 lines
1.3 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 {
2014-08-23 07:05:22 +00:00
panel-font()
2014-08-16 21:16:02 +00:00
2014-08-15 16:32:49 +00:00
}
2014-08-23 07:05:22 +00:00
#row {
2014-08-23 23:27:00 +00:00
2014-08-24 06:09:22 +00:00
2014-08-23 23:27:00 +00:00
debug( blue )
height: min-row-height;
2014-08-23 07:05:22 +00:00
transition: background-color 0.2s linear;
2014-08-24 07:11:26 +00:00
border-bottom: 1px solid lighter;
2014-08-23 23:27:00 +00:00
2014-08-23 07:05:22 +00:00
&:hover {
2014-08-24 07:11:26 +00:00
// background-color: #262626;
2014-08-23 07:05:22 +00:00
}
2014-08-23 23:27:00 +00:00
}
#controller {
height: 100%;
2014-08-16 21:16:02 +00:00
}
2014-08-23 23:27:00 +00:00
#name {
debug( magenta )
2014-08-24 06:09:22 +00:00
// overflow: hidden;
2014-08-23 23:27:00 +00:00
padding: 0 padding;
box-sizing: border-box;
width: 40%;
cursor: default;
.comment-true & {
cursor: pointer;
}
}
2014-08-24 06:03:17 +00:00
#nameInner {
debug( red );
2014-08-24 06:09:22 +00:00
overflow: hidden;
2014-08-24 06:03:17 +00:00
text-overflow: ellipsis;
word-wrap: break-word;
2014-08-24 06:09:22 +00:00
2014-08-24 06:03:17 +00:00
}
2014-08-23 23:27:00 +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;
2014-08-23 07:05:22 +00:00
transform: translate3d( 0, 20px, 0 );
2014-08-18 21:56:05 +00:00
transition: all 0.2s ease;
}
#comment.open-true {
opacity: 1;
2014-08-23 07:05:22 +00:00
transition-delay: 200ms;
transform: translate3d( 0, 0, 0 );
2014-08-16 21:16:02 +00:00
}
#commentInner {
padding: padding;
}
.comment-true #nameInner {
display: inline-block;
2014-08-24 06:09:22 +00:00
border-bottom: 1px dotted light;
2014-08-16 21:16:02 +00:00
&:after {
2014-08-23 23:27:00 +00:00
// content: ' ?';
// color: light;
2014-08-16 21:16:02 +00:00
}
2014-08-15 16:32:49 +00:00
2014-08-16 21:16:02 +00:00
}