summaryrefslogtreecommitdiff
path: root/buildings.mss
blob: b6846b2173c5b1e1177457d48c9a93a047d0a03f (plain)
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
#uni-building {
  polygon-fill: #0098C3;
  polygon-opacity: 0.9;
  polygon-clip: false;
  [zoom >= 16] {
    line-color: #330066;
    line-width: 0.2;
    [zoom >= 20] {
      line-color: #007090;
      line-width: 3;
    }
  }
  [leisure = 'sports_centre'] {
    polygon-fill: #30d44b;
  }
}

#uni-building-names {
  // [loc_ref!='57'] means, don't write the name for building 57, such that the SUSU Shop logo displays
  [zoom >= 16][loc_ref!='57'] {
    [loc_ref='42'][zoom>16] { // SUSU Building
      point-file: url('logos/susu2.png');
      [zoom >= 20] {
        point-file: url('logos/susu.png');
      }
    }
    text-name: "[loc_ref]";
    text-placement: interior;
    text-wrap-width: 20;
    text-face-name: @book-fonts;
    text-size: 8;
    text-fill: #444;
    text-halo-fill: fadeout(white, 10%);
    text-halo-radius: 1.5;
    [zoom >= 17] {
      text-name: "[name]";
      [loc_ref != ''] {
        text-name: "[name] + ' (' + [loc_ref] + ')'";
        [name = ''] {
      	  text-name: "[loc_ref]";
        }
      }
      text-size: 8;
      [zoom >= 18] {
        text-size: 9;
        [zoom >= 20] {
          text-size: 14;
        }
      }
    }
    [minor=false] {
        text-size: 14;
        [zoom >= 18] {
          text-size: 15;
          [zoom >= 20] {
            text-size: 18;
          }
        }
    }
  }
}

#building {
  polygon-fill: #a9ceeb;
  polygon-opacity: 0.5;
  polygon-clip: false;
}