Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added template-independent CSS tools and an example of how to use them #113

Merged
merged 3 commits into from
Feb 19, 2018
Merged

Added template-independent CSS tools and an example of how to use them #113

merged 3 commits into from
Feb 19, 2018

Conversation

ekstroem
Copy link
Collaborator

I use xaringan a lot for presentations and teaching and I've collected a bunch of CSS definitions that I end up including time and time again. These are template independent and they could possibly be of interest to other users.

So ... here they are. Added in the proper CSS directory. I've added a file ghoul.Rmd that shows what features are included in the CSS file. (I know skeleton has a different meaning but I couldn't conjure up a better name).

In any case - hope it might be useful

Copy link
Owner

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you at least leave out the changes in DESCRIPTION and man/moon_reader.Rd? (Since they are irrelevant) Thanks!

BTW, do you have a link to a live example, or at least a few screenshots?

@ekstroem
Copy link
Collaborator Author

Here's a link to a live example:

http://biostatistics.dk/presentations/xaringan/ghoul.html

And screenshots below

screen shot 2018-02-19 at 13 48 27

screen shot 2018-02-19 at 13 48 34

screen shot 2018-02-19 at 13 48 42

screen shot 2018-02-19 at 13 48 50

screen shot 2018-02-19 at 13 49 01

screen shot 2018-02-19 at 13 49 11

screen shot 2018-02-19 at 13 49 21

.html

@yihui
Copy link
Owner

yihui commented Feb 19, 2018

This is fantastic! I love it. How about renaming tools.css to hygge.css?

@ekstroem
Copy link
Collaborator Author

Fine by me. Want me to update the PR?

@yihui
Copy link
Owner

yihui commented Feb 19, 2018

BTW, please also add your name to DESCRIPTION. I'm not sure if the character ø will cause trouble to R CMD check, though.

@yihui
Copy link
Owner

yihui commented Feb 19, 2018

Yes, please update the PR. Thanks!

Copy link
Owner

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Thanks!

@yihui yihui modified the milestones: v0.5, v0.6 Feb 19, 2018
@yihui yihui merged commit 2506ae5 into yihui:master Feb 19, 2018
@pat-s
Copy link
Collaborator

pat-s commented Feb 19, 2018

Fantastic, thanks for the nice tweaks @ekstroem! 🎉

@yihui yihui mentioned this pull request Feb 19, 2018
1 task
yihui added a commit that referenced this pull request Feb 19, 2018
@jvcasillas
Copy link
Contributor

Great work. Thank you!

@tungttnguyen
Copy link

Look awesome! Thanks for the hard work @ekstroem !

pat-s added a commit that referenced this pull request Apr 1, 2018
* update margins of headers

* gather attributes of header classes

* Added template-independent CSS tools and an example of how to use them (#113)

* Added tools and ghoul examples

* Removed changes to DESCRIPTION and moon_reader.Rd

* Renamed tools.css -> hygge.css, updated DESCRIPTION, and fixed spelling error in the ghoul.Rmd template

* replace knitr:::tojson() to xfun::tojson()

* tweaks after #113

* CRAN release v0.6

* add a fake example just to pass the invisible CRAN check

* Add TAMU template (#115)

* add tamu template

* Update tamu-fonts.css

* Update tamu.css

* add @nanhung as a contributor for #115

* Update README.md (#120)

* Update README.md

* Update README.md

* readd h2,h3,h4 as childs of remark-slide-content class

* add class 'clear'
@IndrajeetPatil
Copy link

@ekstroem I can no longer seem to find the slides at URL you shared in your comment:
https://biostatistics.dk/presentations/xaringan/ghoul.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants