Browse Source

Styling/UI

Petra Lamborn 3 years ago
parent
commit
7bc9afc1de
2 changed files with 5 additions and 4 deletions
  1. 3
    3
      viz/app.R
  2. 2
    1
      viz/extras.R

+ 3
- 3
viz/app.R View File

140
       addLegend(position = "topleft",
140
       addLegend(position = "topleft",
141
                 colors = c(tencols, "#808080"),
141
                 colors = c(tencols, "#808080"),
142
                 labels = transport.t, opacity = 1,
142
                 labels = transport.t, opacity = 1,
143
-                title = "Commute method")
143
+                title = HTML("Most Common<br/>Commute Method"))
144
     shinyjs::hideElement(selector="#loading p", asis = TRUE, 
144
     shinyjs::hideElement(selector="#loading p", asis = TRUE, 
145
                          anim=TRUE, animType = "slide", time=10)
145
                          anim=TRUE, animType = "slide", time=10)
146
     leaf
146
     leaf
177
           addLegend(position = "topleft",
177
           addLegend(position = "topleft",
178
                     colors = c(tencols, "#808080"),
178
                     colors = c(tencols, "#808080"),
179
                     labels = transport.t, opacity = 1,
179
                     labels = transport.t, opacity = 1,
180
-                    title = "Commute method"
180
+                    title = HTML("Most Common<br/>Commute Method")
181
                     ) %>%
181
                     ) %>%
182
           clearGroup("hpoly")
182
           clearGroup("hpoly")
183
       } else {
183
       } else {
242
           addLegend(position = "topleft",
242
           addLegend(position = "topleft",
243
                     colors = c(tencols, "#808080"),
243
                     colors = c(tencols, "#808080"),
244
                     labels = edu.t, opacity = 1,
244
                     labels = edu.t, opacity = 1,
245
-                    title = "Commute method"
245
+                    title = HTML("Most Common<br/>Commute Method")
246
                     ) %>%
246
                     ) %>%
247
           clearGroup("hpoly")
247
           clearGroup("hpoly")
248
       } else {
248
       } else {

+ 2
- 1
viz/extras.R View File

20
   box-shadow: 0 0 15px rgba(0,0,0,0.2);
20
   box-shadow: 0 0 15px rgba(0,0,0,0.2);
21
   font-size: 1.5em;
21
   font-size: 1.5em;
22
   font-weight: bold;
22
   font-weight: bold;
23
+  margin: 0;
23
 }
24
 }
24
 #mapcontrol, #infobuttoncontainer, #infopanel {
25
 #mapcontrol, #infobuttoncontainer, #infopanel {
25
   background-color: rgba(255, 255, 255, 0.8);
26
   background-color: rgba(255, 255, 255, 0.8);
93
   height:50px;    
94
   height:50px;    
94
   position:absolute;
95
   position:absolute;
95
   left:0;
96
   left:0;
96
-  bottom:0;
97
+  bottom:5px;
97
   right:0;
98
   right:0;
98
   background:linear-gradient(transparent 0px, 
99
   background:linear-gradient(transparent 0px, 
99
     rgba(255, 255, 255, 0.9));
100
     rgba(255, 255, 255, 0.9));