MayaGans / githubCalendar

Creating a visual in Observable, then turning it into a widget. All the R user will need to supply is a data frame of dates and values... I hope)
https://observablehq.com/@mayagans/a-github-inspired-calendar
Other
24 stars 1 forks source link

force font in css? #6

Closed timelyportfolio closed 3 years ago

timelyportfolio commented 3 years ago

Do you want to require users in https://github.com/MayaGans/githubCalendar/blob/master/inst/htmlwidgets/css/styles.css#L1 to use arial? One option if you want to match the containing page/element would be to use font-style: inherit; https://developer.mozilla.org/en-US/docs/Web/CSS/inherit. This would mean that in the case where a user has made a font choice, such as in Rmd, then the calendar will use the same font.

MayaGans commented 3 years ago

Ooh I like this!!

MayaGans commented 3 years ago

Closed with 30ea9038966a666713df: honestly I just wanted to play with attaching a css file inside the dependencies - this is a much better idea! 😊