@import "reset.css"; @import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,latin-ext); // Mixins .gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) { background: @color; background: -webkit-gradient(linear, left bottom, left top, color-stop(0, @start), color-stop(1, @stop)); background: -ms-linear-gradient(bottom, @start, @stop); background: -moz-linear-gradient(center bottom, @start 0%, @stop 100%); background: -o-linear-gradient(@stop, @start); filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",@stop,@start)); } .bordered(@top-color: #EEE, @right-color: #EEE, @bottom-color: #EEE, @left-color: #EEE) { border-top: solid 1px @top-color; border-left: solid 1px @left-color; border-right: solid 1px @right-color; border-bottom: solid 1px @bottom-color; } .drop-shadow(@x-axis: 0, @y-axis: 1px, @blur: 2px, @alpha: 0.1) { -webkit-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha); -moz-box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha); box-shadow: @x-axis @y-axis @blur rgba(0, 0, 0, @alpha); } .rounded(@radius: 3px) { -webkit-border-radius: @radius; -moz-border-radius: @radius; border-radius: @radius; } .inner-shadow(@horizontal:0, @vertical:1px, @blur:2px, @alpha: 0.4) { -webkit-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha); -moz-box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha); box-shadow: inset @horizontal @vertical @blur rgba(0, 0, 0, @alpha); } .box-shadow(@arguments) { -webkit-box-shadow: @arguments; -moz-box-shadow: @arguments; box-shadow: @arguments; } .no-select { -webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } // Moka definitions // TEMP body { background: #d5d5d5; } .moka_view { display: inline-block; .mk_default { // Generic fonts font-size: 12px; font-family: "Open Sans"; color: #555; text-shadow: 0 1px 0 white; } // Labels span { .mk_default; color: #333; padding: 4px; } // Controls .mk_control, .mk_control:active, .mk_control:focus { .mk_default; margin: 4px; padding: 3px 10px; .rounded(); .bordered(#999, #999, #999, #999); .box-shadow(0 0 3px 0 #ccc); background: white; &:focus { outline: 0; .box-shadow(0 0 2px #08c); } } button { .mk_control; .gradient(#fafafa, #dedede, white); &:active { background: #dedede; .box-shadow(inset 0 0 3px 0 #aaa); } } input { .mk_control; text-shadow: 0 0 0; &:focus { .box-shadow(inset 0 0 3px 0 #08c); } } input[type="checkbox"] { position: absolute; left: -999999px; } input[type="checkbox"] + label { .no-select; padding: 0 6px; background: url('../images/moka/check.png') 50% 50% no-repeat; height: 16px; width: 16px; } input[type="checkbox"]:focus + label { background-image: url('../images/moka/check-focus.png'); .box-shadow(0 0 2px #08c); } input[type="checkbox"]:checked + label { background-image: url('../images/moka/check-active.png'); } }