Use eval-based width for licence colouring
authorRichard Fairhurst <richard@systemeD.net>
Mon, 3 Oct 2011 13:47:41 +0000 (14:47 +0100)
committerRichard Fairhurst <richard@systemeD.net>
Mon, 3 Oct 2011 13:47:41 +0000 (14:47 +0100)
resources/stylesheets/potlatch.css

index 34fd3bc..88094fc 100644 (file)
 way .area_small_name {text-color: black; font-size: 9; text: name; text-halo: #ffffaa; text-halo-radius: 2; text-position: center;}
 @import("stylesheets/core_interactive.css");
 
-/* Test rendering for licence status */
+/* Rendering for licence status */
 
-way[_status=no]::status       { z-index: 0; width: 20; color: red; }
-way[_status=partial]::status  { z-index: 0; width: 20; color: red; opacity: 0.4; }
-way[_status=unsure]::status   { z-index: 0; width: 20; color: orange; opacity: 0.4; }
-node[_status=no]::status      { z-index: 0; icon-image: square; icon-width: 15; color: red; }
-node[_status=partial]::status { z-index: 0; icon-image: square; icon-width: 15; color: red; opacity: 0.4; }
-node[_status=unsure]::status  { z-index: 0; icon-image: square; icon-width: 15; color: orange; opacity: 0.4; }
+way[_status=no]::status       { z-index: 0; width: eval('_width+7'); color: red; }
+way[_status=partial]::status  { z-index: 0; width: eval('_width+7'); color: red; opacity: 0.4; }
+way[_status=unsure]::status   { z-index: 0; width: eval('_width+7'); color: orange; opacity: 0.4; }
+node[_status=no]::status      { z-index: 0; icon-image: square; icon-width: eval('_width+7'); color: red; }
+node[_status=partial]::status { z-index: 0; icon-image: square; icon-width: eval('_width+7'); color: red; opacity: 0.4; }
+node[_status=unsure]::status  { z-index: 0; icon-image: square; icon-width: eval('_width+7'); color: orange; opacity: 0.4; }