Skip to content

Commit 52cb829

Browse files
committed
use absolute panel for rehab map
and improve styling
1 parent ae73230 commit 52cb829

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

styles.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,20 @@ h1, h2, h3, h4 { font-weight: 400; }
3535
transition-delay: 0;
3636
}
3737

38+
#rehab_controls {
39+
/* Appearance */
40+
background-color: white;
41+
opacity: 0.95;
42+
padding: 0 20px 20px 20px;
43+
}
44+
45+
#tour_controls {
46+
/* Appearance */
47+
background-color: white;
48+
opacity: 0.95;
49+
padding: 0 20px 20px 20px;
50+
}
51+
3852
/* Position and style citation */
3953
#cite {
4054
position: absolute;

ui.R

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ navbarPage(
3434
absolutePanel(
3535
id = "tour_controls", class = "panel panel-default", fixed = TRUE,
3636
draggable = TRUE, top=80, left = "auto", right = 10, bottom = "auto",
37-
width = 330, height = 350,
37+
width = 330, height = 380,
38+
tags$br(),
3839
splitLayout(
39-
cellWidths = 270,
40+
cellWidths = 230,
4041
uiOutput("backButtonControl"),
4142
uiOutput("nextButtonControl")
4243
),
@@ -104,6 +105,24 @@ navbarPage(
104105
includeCSS("styles.css")
105106
),
106107
leafletOutput("map_rehab", width="100%", height="100%"),
108+
absolutePanel(
109+
id = "rehab_controls", class = "panel panel-default", fixed = TRUE,
110+
draggable = TRUE, top = 370, left = "auto", right = 10, bottom = "auto",
111+
width = 150, height = 245,
112+
h4("Layers"),
113+
tags$hr(),
114+
radioButtons(
115+
inputId="rehab_layer_selection", label=NULL,
116+
choices=c("None", names(rehab_tiers)),
117+
selected="None"
118+
),
119+
tags$hr(),
120+
checkboxGroupInput(
121+
"rehab_towns_checkbox",label=NULL,
122+
choices="Towns",
123+
selected="Towns"
124+
)
125+
),
107126
tags$div(
108127
id="cite",
109128
citation

0 commit comments

Comments
 (0)