summaryrefslogtreecommitdiff
path: root/admin.mss
diff options
context:
space:
mode:
Diffstat (limited to 'admin.mss')
-rw-r--r--admin.mss117
1 files changed, 117 insertions, 0 deletions
diff --git a/admin.mss b/admin.mss
new file mode 100644
index 0000000..dd7bdb9
--- /dev/null
+++ b/admin.mss
@@ -0,0 +1,117 @@
+@admin-boundaries: #ac46ac;
+
+#admin-01234 {
+ [admin_level = '2'],
+ [admin_level = '3'] {
+ [zoom >= 4] {
+ line-color: @admin-boundaries;
+ line-width: 0.6;
+ }
+ [zoom >= 7] {
+ line-width: 2;
+ }
+ [zoom >= 10] {
+ [admin_level = '2'] {
+ line-width: 6;
+ }
+ [admin_level = '3'] {
+ line-width: 5;
+ line-dasharray: 4,2;
+ line-clip: false;
+ }
+ }
+ }
+ [admin_level = '4'] {
+ [zoom >= 4] {
+ line-color: @admin-boundaries;
+ line-width: 0.6;
+ line-dasharray: 4,3;
+ line-clip: false;
+ }
+ [zoom >= 7] {
+ line-width: 1;
+ }
+ [zoom >= 11] {
+ line-width: 3;
+ }
+ }
+ opacity: 0.4;
+}
+
+#admin-5678 {
+ [admin_level = '5'][zoom >= 11] {
+ line-color: @admin-boundaries;
+ line-width: 2;
+ line-dasharray: 6,3,2,3,2,3;
+ line-clip: false;
+ }
+ [admin_level = '6'][zoom >= 11] {
+ line-color: @admin-boundaries;
+ line-width: 2;
+ line-dasharray: 6,3,2,3;
+ line-clip: false;
+ }
+ [admin_level = '7'],
+ [admin_level = '8'] {
+ [zoom >= 12] {
+ line-color: @admin-boundaries;
+ line-width: 1.5;
+ line-dasharray: 5,2;
+ line-clip: false;
+ }
+ }
+ opacity: 0.5;
+}
+
+#admin-other {
+ [admin_level = '9'],
+ [admin_level = '10'] {
+ [zoom >= 13] {
+ line-color: @admin-boundaries;
+ line-width: 2;
+ line-dasharray: 2,3;
+ line-clip: false;
+ }
+ }
+ opacity: 0.5;
+}
+
+#admin-text[zoom >= 16] {
+ text-name: "[name]";
+ text-face-name: @book-fonts;
+ text-fill: @admin-boundaries;
+ text-placement: line;
+ text-halo-radius: 1.0;
+ text-placement: line;
+ text-dy: -10;
+}
+
+#national-park-boundaries {
+ [zoom >= 7] {
+ ::fill [zoom < 13] {
+ opacity: 0.05;
+ polygon-fill: green;
+ }
+ ::line {
+ opacity: 0.15;
+ line-color: green;
+ line-width: 1.5;
+ line-dasharray: 4,2;
+ [zoom >= 10] {
+ line-width: 3;
+ line-dasharray: 6,2;
+ line-join: bevel;
+ }
+ }
+ }
+ [way_area > 200000000][zoom >= 8][zoom < 12],
+ [zoom >= 11][zoom < 12] {
+ text-name: "[name]";
+ text-size: 8;
+ text-fill: #9c9;
+ text-face-name: @bold-fonts;
+ text-halo-radius: 1;
+ text-wrap-width: 14;
+ [zoom >= 11] { text-size: 11; }
+ }
+}