Skip to content

Commit a9f558a

Browse files
committed
rework css for correct color backgrounds of inputs
1 parent 730be7c commit a9f558a

File tree

3 files changed

+20
-7
lines changed

3 files changed

+20
-7
lines changed

global.R renamed to R/global.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ source(here::here('R/funcs.R'))
99
# load('data/epcdata.RData')
1010
load(url('https://tbep-tech.github.io/wq-dash/data/epcdata.RData'))
1111
load(url('https://tbep-tech.github.io/wq-dash/data/algdat.RData'))
12+
data(tbseg, package = 'tbeptools')
13+
data(targets, package = 'tbeptools')
1214
load(here::here('data/avedat.RData'))
1315
load(here::here('data/mapdat.RData'))
1416
load(here::here('data/plotlys.RData')) # thrplototb, thrplothb, thrplotmtb, thrplotltb, attmat, chlmat, lamat

styles.css

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,31 @@ h6 {
114114

115115
/* shiny slider stuff */
116116

117-
.irs-bar-edge {
118-
background: #00806E !important;
119-
border: 1px #00806E !important;
117+
118+
.irs-line {
119+
background: #E5E5E5 !important;
120+
border: 1px #E5E5E5 !important;
120121
}
121122

122-
.irs-single {
123-
background: #00806E !important;
123+
.irs-single, .irs-from, .irs-to {
124+
background: #00806E!important;
124125
}
125126

126-
.js-irs-0 .irs-single-0, .js-irs-0 .irs-bar-edge-0, .js-irs-0 .irs-bar, .js-irs-0 .irs-line {
127+
.js-irs-0 .irs-bar-edge, .js-irs-0 .irs-bar{
127128
background: #E5E5E5 !important;
128129
border: 1px #E5E5E5 !important;
129130
}
130131

132+
.js-irs-1 .irs-bar-edge, .js-irs-1 .irs-bar {
133+
background: #00806E!important;
134+
border: 1px #00806E !important;
135+
}
136+
137+
/* background color of selected option for shiny selectInput */
138+
.selectize-dropdown .option.selected {
139+
background: #00806E !important;
140+
}
141+
131142
/* tabset top border */
132143

133144
.nav-tabs-custom > .nav-tabs > li.active {

wq-dash.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ css: styles.css
1212
---
1313

1414
```{r setup, include=F}
15-
source(here::here('global.R'))
15+
source(here::here('R/global.R'))
1616
```
1717

1818
```{r reactives}

0 commit comments

Comments
 (0)