Browse Source

rejig info button etc

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

+ 2
- 2
viz/app.R View File

65
   absolutePanel(top = 25, right = 10, id="control2",
65
   absolutePanel(top = 25, right = 10, id="control2",
66
                 materialSwitch("controlswitch", value=TRUE, right=TRUE,
66
                 materialSwitch("controlswitch", value=TRUE, right=TRUE,
67
                                inline=TRUE, status="info")),
67
                                inline=TRUE, status="info")),
68
-  absolutePanel(bottom = 30, left = 10, id="loading",
68
+  absolutePanel(bottom = 26, right = 10, id="loading",
69
                 p("Loading...")),
69
                 p("Loading...")),
70
   absolutePanel(bottom=26, right=10, left=10, top=10, id="infopanel",
70
   absolutePanel(bottom=26, right=10, left=10, top=10, id="infopanel",
71
                 infotext),
71
                 infotext),
72
-  absolutePanel(bottom=10, right=10, id="infobuttoncontainer",
72
+  absolutePanel(bottom=10, left=10, id="infobuttoncontainer",
73
     prettyToggle("mapinfobutton", label_on = "Info",
73
     prettyToggle("mapinfobutton", label_on = "Info",
74
                  label_off = "Info", icon_on=icon("times"),
74
                  label_off = "Info", icon_on=icon("times"),
75
                  icon_off = icon("info"),
75
                  icon_off = icon("info"),

+ 5
- 2
viz/extras.R View File

75
   margin: 0;
75
   margin: 0;
76
 }
76
 }
77
 .scrollbuffer {
77
 .scrollbuffer {
78
-  height: 20px;
78
+  height: 50px;
79
 }
79
 }
80
 .overflowable:before {
80
 .overflowable:before {
81
   content:'';
81
   content:'';
82
   width:100%;
82
   width:100%;
83
-  height:20px;    
83
+  height:50px;    
84
   position:absolute;
84
   position:absolute;
85
   left:0;
85
   left:0;
86
   bottom:0;
86
   bottom:0;
88
   background:linear-gradient(transparent 0px, 
88
   background:linear-gradient(transparent 0px, 
89
     rgba(255, 255, 255, 0.9));
89
     rgba(255, 255, 255, 0.9));
90
 }
90
 }
91
+#infobuttoncontainer label {
92
+  font-weight: bold;
93
+}
91
 "
94
 "
92
 
95
 
93
 attribhtml <- '
96
 attribhtml <- '