-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
099e835
commit 14db172
Showing
5 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
theme_revealjs <- function(x, | ||
fontsize = get_option("tinytable_theme_revealjs_fontsize", default = 0.8), | ||
fontsize_caption = get_option("tinytable_theme_revealjs_fontsize_caption", default = 1)) { | ||
|
||
css <- " | ||
// tables | ||
.reveal table { | ||
// height: auto; /* Adjust table width to fit content up to the available slide space */ | ||
margin: auto; | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
.reveal table th, | ||
.reveal table td { | ||
border: none; | ||
padding: .23em; | ||
font-weight: lighter; | ||
font-size: %sem; | ||
} | ||
/* Adds a bottom border to the table header row for distinction */ | ||
.reveal table thead th, | ||
.reveal .slides table tr:last-child td, | ||
.reveal .slides table { | ||
border-bottom: 2px solid #D3D3D3; | ||
} | ||
/* Make column headers bold */ | ||
.reveal table thead th { | ||
/* font-weight: bold; */ | ||
} | ||
/* Styling table captions */ | ||
.reveal table caption { | ||
color: #666666; /* Dark grey color for the caption */ | ||
font-size: %emem; | ||
} | ||
" | ||
css <- sprintf(css, fontsize, fontsize_caption) | ||
x <- style_tt(x, bootstrap_css_rule = css) | ||
return(x) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters