diff --git a/data/styles/include/base_defaults.mapcss b/data/styles/include/base_defaults.mapcss new file mode 100644 index 0000000000..0c34a7a9dd --- /dev/null +++ b/data/styles/include/base_defaults.mapcss @@ -0,0 +1,50 @@ +way::* +{ + linejoin: round; + linecap: round; + text-position: line; +} + +*::* +{ + text-halo-color: @white; + text-anchor-horizontal: center; + text-anchor-vertical: center; + icon-width: 16; + icon-height: 16; +} + +*::int_name +{ + text-offset: 20; +} + +node::* { + text-anchor-vertical: top; +} + +area::* { + text-position: center; + text-anchor-vertical: center; +} + + +*[amenity], +*[office], +*[historic], +*[tourism], +*[leisure], +*[man_made], +*[natural], +*[power], +*[landuse], +*[craft], +*[internet_access], +{ + text-position: center +} +area[aeroway], +area[tourism] +{ + fill-position: background; +} diff --git a/data/styles/include/base_other.mapcss b/data/styles/include/base_other.mapcss index 5e09d0340f..1c0e77f6af 100644 --- a/data/styles/include/base_other.mapcss +++ b/data/styles/include/base_other.mapcss @@ -1,54 +1,3 @@ -way::* -{ - linejoin: round; - linecap: round; - text-position: line; -} - -*::* -{ - text-halo-color: @white; - text-anchor-horizontal: center; - text-anchor-vertical: center; - icon-width: 16; - icon-height: 16; -} - -*::int_name -{ - text-offset: 20; -} - -node::* { - text-anchor-vertical: top; -} - -area::* { - text-position: center; - text-anchor-vertical: center; -} - - -*[amenity], -*[office], -*[historic], -*[tourism], -*[leisure], -*[man_made], -*[natural], -*[power], -*[landuse], -*[craft], -*[internet_access], -{ - text-position: center -} -area[aeroway], -area[tourism] -{ - fill-position: background; -} - line[highway=motorway_junction] { casing-width: 0; diff --git a/data/styles/normal_dark.mapcss b/data/styles/normal_dark.mapcss index 4b6a3737b1..4155a2bebc 100644 --- a/data/styles/normal_dark.mapcss +++ b/data/styles/normal_dark.mapcss @@ -1,4 +1,5 @@ @import("colors_dark.mapcss"); +@import("include/base_defaults.mapcss"); @import("include/base_roads.mapcss"); /* @import("include/base_roads_UK.mapcss"); */ @import("include/base_shop.mapcss"); diff --git a/data/styles/normal_light.mapcss b/data/styles/normal_light.mapcss index cb388a0092..ea9b4969b0 100644 --- a/data/styles/normal_light.mapcss +++ b/data/styles/normal_light.mapcss @@ -1,4 +1,5 @@ @import("colors_light.mapcss"); +@import("include/base_defaults.mapcss"); @import("include/base_roads.mapcss"); /* @import("include/base_roads_UK.mapcss"); */ @import("include/base_shop.mapcss");