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

+ 2
- 1
viz/extras.R View File

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