Skip to content

Commit

Permalink
Merge pull request #299 from rstudio/alan/font-awesome5
Browse files Browse the repository at this point in the history
Make sidebar-toggle bars icon work on Shiny 1.2 with FontAwesome 5
  • Loading branch information
wch authored Oct 12, 2018
2 parents 2522242 + b83e334 commit a066747
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions inst/shinydashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,14 @@ a > .info-box {
.shiny-server-account {
z-index: 2000;
}

/* fontAwesome is the FA4 family name; 'Font Awesome 5 Free' is the FA 5 name.
* This rule makes the sidebar-toggle 'bars' icon appear properly both in
* Shiny <= 1.1 (FA4) and Shiny 1.2+ (FA5).
* The font-weight value is for FA5, as multiple styles are mapped
* to different weights.
*/
.main-header .sidebar-toggle {
font-family: fontAwesome, 'Font Awesome 5 Free';
font-weight: 900;
}

0 comments on commit a066747

Please sign in to comment.