Building Dashboards with shinydashboard
Png Kee Seng
Researcher
"black" skin'...'css_code <- '
/* This is a comment */
'
.selector refers to a CSS classcss_code <- ' /* This is a selector */ selector {property1: value1; property2: value2;} `
css_code <- '
/* This is a selector class */
.selector {
property1: value1;
property2: value2;
}
`
.class1 and .class2 can be combined as .class1 .class2.class1, select a subclass called .class2css_code <- '
.class1 .class2 {
property1: value1;
property2: value2;
property3: value3;
}
`
.main-header .logo.main-header class, and then look for .logo subclass.skin-blue .main-header .logocss_code <- ' /* Format the text in the main header */ .main-header .logo {font-family: "Times New Roman";font-weight: bold;font-size: 24px;} '
css_code <- ' /* Change the background-color to black */ .skin-blue .main-header .logo {background-color: #000000; } '
.main-header .logo, .skin-blue .main-header .logo.skin-blue .main-header .logo:hover.skin-blue .main-header .navbarcss_code <- ' .main-header .logo { font-family: "helvetica", serif, Times, "Times New Roman"; font-weight: bold; font-size: 24px; } .skin-blue .main-header .logo { background-color: #000000; }.skin-blue .main-header .logo:hover { background-color: blue; }.skin-blue .main-header .navbar { background-color: #999999; } '
dashboardBody()
body <- dashboardBody(tags$head(tags$style(HTML(css_code))),...)
Building Dashboards with shinydashboard