X-Git-Url: https://jasonwoof.com/gitweb/?p=crayon_mockup.git;a=blobdiff_plain;f=style.styl;h=ca5a1971c76b9bfd6066ec1ace6645b4f1195675;hp=ae2bdc4aead213982de53cdf0a312d634a0a250f;hb=78543979c195595c01c595f0c1e6111c4a2bc6f8;hpb=2d902775d3b9f916b5a38ac8874a734ca586e6b3 diff --git a/style.styl b/style.styl index ae2bdc4..ca5a197 100644 --- a/style.styl +++ b/style.styl @@ -15,9 +15,12 @@ color_selected = #544c4c color_hover = #777 color_dragging = #9e9373 color_controls = #000 +color_controls_hover = #222 +color_controls_selected = #444 +color_controls_dragging = #666 .crayon_mockup svg - path.polyline + .polyline fill: none stroke-width: 5 stroke-linecap: butt @@ -26,10 +29,9 @@ color_controls = #000 stroke-opacity: 1 stroke-dasharray: none // fails in firefox (must be inline) filter: url(#crayon) - rect - fill: none - rect.canvas_border + .canvas_border overflow: hidden + fill: none stroke: #ccc stroke-width: 2 stroke-linecap: butt @@ -37,17 +39,27 @@ color_controls = #000 stroke-dasharray:2 4 stroke-dashoffset:1 //stroke-opacity:1;marker:none;enable-background:accumulate - rect.box + .box stroke: color_crayon + fill: none stroke-width: 4 stroke-linecap: butt stroke-linejoin:miter // this doesn't work in firefox: filter: url(#crayon) - rect.box, path.polyline + .box, .polyline stroke: color_crayon - rect.box.hover, path.polyline.hover - stroke: color_hover - rect.box.dragging, path.polyline.dragging - stroke: color_dragging - rect.box.selected, path.polyline.selected + .box.selected, .polyline.selected stroke: color_selected + .box.dragging, .polyline.dragging + stroke: color_dragging + .box.normal.hover, .polyline.normal.hover + stroke: color_hover + .control_point + stroke: none + fill: color_controls + .control_point.selected + fill: color_controls_selected + .control_point.dragging + fill: color_controls_dragging + .control_point.normal.hover + fill: color_controls_hover