rstudio / flexdashboard

Easy interactive dashboards for R
https://pkgs.rstudio.com/flexdashboard/
Other
814 stars 300 forks source link

css yaml option dont work properly #7

Closed jbkunst closed 8 years ago

jbkunst commented 8 years ago

Hi!

I use a custom css style in a flexdashboard document:

...

.navbar-brand {
    font-family: 'Pokemon';
    color: "#3662AC";
}

...

The font family is applied but no the color.

screenshot_1

Result: http://jkunst.com/flexdashboard-highcharter-examples/pokemon/ Code: https://github.com/jbkunst/flexdashboard-highcharter-examples/tree/gh-pages/pokemon

jjallaire commented 8 years ago

There are a couple of issues here:

  1. You can't enclose the color value in quotes; and
  2. You need a more specific selector since the navbar is using navbar-inverse.

This code worked for me:

.navbar-inverse .navbar-brand {
    font-family: 'Pokemon';
    color: #3662AC;
}
jbkunst commented 8 years ago

Omg, you are right. Thanks & sorry open this issue.