-
Notifications
You must be signed in to change notification settings - Fork 8
/
style.mss
98 lines (84 loc) · 1.7 KB
/
style.mss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
@water: #9fd9e5;
@green: #0f0;
@gray: #909090;
@lightgray: #e0e0e0;
@purple: #ac46ac;
@lpurple: lighten(@purple, 40%);
@yellow: #ffe7a8;
@sans: "PT Sans Regular", "Droid Sans Fallback Regular";
@sans_italic: "PT Sans Italic", "Droid Sans Fallback Regular";
@sans_bold: "PT Sans Bold", "Droid Sans Fallback Regular";
@sans_caption: "PT Sans Caption Regular", "Droid Sans Fallback Regular";
Map {
background-color: white;
buffer-size: 128;
font-directory: url(data/ptsans);
}
.route {
line-width:5;
line-color:#012d64;
line-join: round;
line-cap: round;
[zoom<10] {
line-width: 4;
}
}
#buildings[zoom>=15] {
polygon-fill: @gray;
polygon-opacity: 1;
}
#power[zoom>=13] {
line-width: 0.5;
line-color: fadeout(#a51a1a, 30%);
line-dasharray: 20, 2, 2, 2;
}
/* ADMIN BORDERS */
#admin[admin_level="2"] {
line-color: @lpurple;
line-width: 6;
[zoom<8] { line-width: 5; }
}
#admin[admin_level="4"][zoom>=8] {
line-color: @lpurple;
line-width: 3;
}
#admin[admin_level="4"][zoom<8],
#admin[admin_level="6"][zoom>=9] {
line-width: 2;
[zoom<10] { line-width: 1.5; }
line-color: @lpurple;
line-dasharray: 6;
}
#admin-line[admin_level="4"][zoom>=8] {
line-width: 1;
line-dasharray: 6;
line-color: @purple;
}
#admin-line[admin_level="2"] {
line-width: 2;
[zoom<9] { line-width: 1.5; }
line-dasharray: 6;
line-color: @purple;
}
/* SCALE */
#scale[label=''] {
::casing {
line-width: 5;
line-color: black;
}
::fill[id2=1] {
line-width: 3;
line-color: white;
}
}
#scale[label!=''] {
text-name: [label];
text-face-name: @sans;
text-size: 9;
text-dy: -7;
[label=~'.+Open.+'] {
text-dy: 7;
text-size: 8;
}
text-allow-overlap: true;
}