Comments (12)
That CSS was before I wrote widgetframe, and it's not really an ideal solution.
I wrote widgetframe explicitly to solve that issue. But there's an outstanding issue in bookdown rstudio/bookdown#271 and in blogdown rstudio/blogdown#38 that prevents widgetframes from working correctly with bookdown/blogdown.
If you are using iframe in slickR, then the stuff inside your iframe will not be affected by bookdown's CSS anyways regardless whether you use widgetframe or not.
But if your content is not in an iframe then you will need to provide your own css like I did in that SO thread. You will also need to have something like below in your _output.yml
file
bookdown::gitbook:
css: ['your-css-file']
from widgetframe.
my problem are the dot icons for the slick. they come out tiny because of the bookdown css. an iframe wouldnt solve that.
thanks for the answer.
from widgetframe.
Yeah in that case put your css in ./css/style.css
and add the following to your _output.yml
file.
bookdown::gitbook:
css: ['css/style.css']
Also don't forget to add ! important
to your stuff in the css file so that those rules take precedence over everything else.
from widgetframe.
do i need to still add the path prefix to all styles in the css? ie. .book .book-body .page-wrapper .page-inner section.normal
from widgetframe.
If you add ! important
then you don't need to do that.
from widgetframe.
I was not aware of the ! important
feature when I rewrote the css in that SO post.
from widgetframe.
worked! is there a way to set important on the whole file? ;)
from widgetframe.
that would be a better question for Yihui
from widgetframe.
AFAIK, there's no way of doing a file wide important
in CSS, you've to do it rule per rule.
from widgetframe.
some fruit of labor . there are two small things i cant seem to solve. how to make rmarkdown create plot output files without showing putting them in the document and when I try to use synched carousels (a top main slide that shows only one and a bottom slide that is smaller but controls what you see on the top one) bookdown hides the lower one always even though it's in the html tree and is active.
from widgetframe.
Are you using widgetframe ? Or just plain iframe ?
from widgetframe.
for the help files?
from widgetframe.
Related Issues (20)
- crosstalk HOT 1
- returning html instead of widget HOT 6
- Following render()'s self_contained FALSE and lib_dir HOT 3
- Full screen not working on iPhone widgetframe HOT 11
- frameWidget() returns <PATH> not found in RMarkdown documents HOT 16
- Cannot save a mapview object HOT 2
- shiny integration HOT 3
- Upgrade pym
- scrolling DT::datatable HOT 2
- Using widgetframe in md files HOT 1
- blogdown 404 error - double-slash between "figure-html" and "widgets" HOT 5
- not rendering in xaringan HOT 1
- xaringan print to pdf
- widgetframe can't find file in rmd HOT 7
- Unable to save html file using widgetframe::saveWidgetframe HOT 1
- Full window
- Support single file output with saveWidgetframe
- Pagedown
- Can not display in blogdown
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from widgetframe.