dat.gui/elements/shared.styl

52 lines
927 B
Stylus
Raw Normal View History

2014-08-27 00:01:15 +00:00
@import 'nib';
// config
support-for-ie ?= true
use-debug = false
debug( color )
if use-debug
border: 1px solid color
// constants
panel-width = 245px
min-row-height = 30px
font-color = #eee
panel-color = #1a1a1a
number-color = #25A0D8
2014-09-02 17:13:35 +00:00
boolean-color = #864694
2014-08-27 00:01:15 +00:00
string-color = #1EBD6E
padding = 8px
ease = cubic-bezier( .25, .25, 0, 1 )
light = rgba( 255, 255, 255, 0.25 )
lighter = rgba( 255, 255, 255, 0.05 )
dark = rgba( 0, 0, 0, 0.1 );
// common
2014-09-02 17:13:35 +00:00
panel-font( color = font-color )
2014-08-27 00:01:15 +00:00
font: 10px 'Lucida Grande', sans-serif;
2014-09-02 17:13:35 +00:00
color: color;
if ( light( color ) )
-webkit-font-smoothing: antialiased;
2014-08-27 00:01:15 +00:00
2014-09-02 17:13:35 +00:00
input( color )
panel-font( color )
2014-08-27 00:01:15 +00:00
height: 100%;
display: inline-block;
background: transparent;
border: 0;
padding: 0;
outline: none;
transition: background-color 0.15s linear;
box-sizing: border-box;
&:hover, &:focus
background: lighter