Giter Site home page Giter Site logo

Comments (12)

bhaskarvk avatar bhaskarvk commented on June 11, 2024

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.

yonicd avatar yonicd commented on June 11, 2024

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.

bhaskarvk avatar bhaskarvk commented on June 11, 2024

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.

yonicd avatar yonicd commented on June 11, 2024

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.

bhaskarvk avatar bhaskarvk commented on June 11, 2024

If you add ! important then you don't need to do that.

from widgetframe.

bhaskarvk avatar bhaskarvk commented on June 11, 2024

I was not aware of the ! important feature when I rewrote the css in that SO post.

from widgetframe.

yonicd avatar yonicd commented on June 11, 2024

worked! is there a way to set important on the whole file? ;)

from widgetframe.

yonicd avatar yonicd commented on June 11, 2024

that would be a better question for Yihui

from widgetframe.

bhaskarvk avatar bhaskarvk commented on June 11, 2024

AFAIK, there's no way of doing a file wide important in CSS, you've to do it rule per rule.

from widgetframe.

yonicd avatar yonicd commented on June 11, 2024

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.

bhaskarvk avatar bhaskarvk commented on June 11, 2024

Are you using widgetframe ? Or just plain iframe ?

from widgetframe.

yonicd avatar yonicd commented on June 11, 2024

for the help files?

from widgetframe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.