Garrick Aden-Buie
6444163cd7
* Use `.table-unshaded` class on a tables to prevent xaringanthemer's table heading and row shading ( #74 )
Fixes #74
3 jaren geleden
Garrick Aden-Buie
f1eac8759c
catch one message in tests
4 jaren geleden
Garrick Aden-Buie
66852c14e0
fix whitespace
4 jaren geleden
jdlom
c606bdf7c9
change regex pattern to match valid css class names ( #69 )
* The style functions are now more permissive about color names in the `color` argument. Color names should be valid CSS classes that can also be used as CSS variable names, but the `style_` function only stops with an error if the color name contains spaces. (@jdlom #69 )
4 jaren geleden
Garrick Aden-Buie
046187ae84
Fix tests for {testthat} 3.1.0
4 jaren geleden
Garrick Aden-Buie
1ff1cc29e1
Better horizontal alignment for code blocks ( #68 )
* Increment version number
* Better horizontal alignment of code blocks
* Use testthat 3e
* Use expect_known_output() because we need the css files
* Replace `with_mock()` with `mockery::stub()`
* Remove extraneous line
* Set ml and mr for all horiz alignment classes
* Add NEWS for #68
4 jaren geleden
Garrick Aden-Buie
3a1d9f3467
v0.4.0 ( #59 )
5 jaren geleden
Garrick Aden-Buie
bdde9ca706
Set slide number font size in rem ( #54 )
Fixes #53
5 jaren geleden
Garrick Aden-Buie
ff02422e23
Add text_bold_font_weight argument and css rule
Fixes #50
5 jaren geleden
Garrick Aden-Buie
6c0df7868a
Use alternative method to surface errors from callr::r_safe()
5 jaren geleden
Garrick Aden-Buie
2c068446e6
feat: Add header_font_family_fallback
Fixes #41
5 jaren geleden
Garrick Aden-Buie
8a8ebd5e41
feat: Add inverse_link_color to styles
Fixes #44
5 jaren geleden
Garrick Aden-Buie
99af06835c
Clear floats only on element immediately after .pull-right
https://github.com/yihui/xaringan/pull/271
5 jaren geleden
Garrick Aden-Buie
34bf66dbca
Warn if colors used by theme_xaringan() are not in hex format
6 jaren geleden
Garrick Aden-Buie
1749347745
Add check_color_is_hex()
6 jaren geleden
Garrick Aden-Buie
d8ec41f343
Ensure that text_font reaches theme_xaringan_set_defaults() when set_ggplot_defaults == TRUE
6 jaren geleden
Garrick Aden-Buie
b5c6779776
Update css test files after change in defaults
6 jaren geleden
Garrick Aden-Buie
78d38c2400
Add xaringanthemer_font_default()
Avoids note for long argument length and allows for more consistent checking if supplied arguments are default values
6 jaren geleden
Garrick Aden-Buie
8f57771d4e
Fix extra css heading so only added once
6 jaren geleden
Garrick Aden-Buie
2a4348e87c
Create colors based on style starter colors
E.g. primary_color and secondary_color in style_duo() become --primary and --secondary
6 jaren geleden
Garrick Aden-Buie
139fc4b6a2
more informative error messages when using non-hex CSS colors
6 jaren geleden
Garrick Aden-Buie
dd7eef0249
Update element description when modifying multiple rules
6 jaren geleden
Garrick Aden-Buie
e482243b09
wrap long error messages elsewhere in pkg
6 jaren geleden
Garrick Aden-Buie
afe51d40d2
change inline fonts to use `em` not `rem`
6 jaren geleden
Garrick Aden-Buie
548a8a1a51
Update css reference files for tests
6 jaren geleden
Garrick Aden-Buie
a22ca99a77
Update test cases for softened duo themes
6 jaren geleden
Garrick Aden-Buie
8025d1ea61
list2css() handles duplicated selectors and property names
6 jaren geleden
Garrick Aden-Buie
283b21c15c
Update {lighten,darken}_color() documentation and add tests
6 jaren geleden
Garrick Aden-Buie
ed365818d1
fix requires_packages tests and mocking
6 jaren geleden
Garrick Aden-Buie
2aecc9fc10
Move requires_package to r/utils.R and add tests
6 jaren geleden
Garrick Aden-Buie
d66e8e1bc9
More ggplot2 tests
6 jaren geleden
Garrick Aden-Buie
021053a0ee
Check that hex colors only have hex characters
6 jaren geleden
Garrick Aden-Buie
c9f2cec8ca
add another google font theme test
6 jaren geleden
Garrick Aden-Buie
07213e8a5e
test google font overrides individual font
6 jaren geleden
Garrick Aden-Buie
4f73fe0f76
consolidate style_extra_css.R tests
6 jaren geleden
Garrick Aden-Buie
7311e72ad0
Add tests for unnamed elements in list2css()
6 jaren geleden
Garrick Aden-Buie
32af20667d
Fix style_extra_css, add heading arg, add tests
6 jaren geleden
Garrick Aden-Buie
0a7cf8014b
Add deprecation tests; fix write_extra_css() pass through
6 jaren geleden
Garrick Aden-Buie
4f5900cea8
Add base theme tests
6 jaren geleden
Garrick Aden-Buie
1295ede256
Add tests for scale_xaringan_* functions
6 jaren geleden
Garrick Aden-Buie
96e2f6472d
fix test description
6 jaren geleden
Garrick Aden-Buie
802c2a557f
More ggplot tests, store font_is_google in pkg env
6 jaren geleden
Garrick Aden-Buie
d1cefe7fc6
Use system font stack for fallbacks
6 jaren geleden
Garrick Aden-Buie
67bec0ba1f
Add tests for ggplot2 theme colors
6 jaren geleden
Garrick Aden-Buie
c544647c20
Add full_length_hex() because ggplot needs #123abc
6 jaren geleden
Garrick Aden-Buie
978d1ef9e5
output = NULL returns css and doesn't write file
style_* returns name of file invisibly
6 jaren geleden
Garrick Aden-Buie
4806fba416
Set default fonts via *_font_* instead of google_fonts
And add tests
6 jaren geleden
Garrick Aden-Buie
4e36e9ad18
Set height/width to 100% in .remark-slide-content
Fixes #24
6 jaren geleden
Garrick Aden-Buie
af15b74b8b
update function name in css help text header
6 jaren geleden
Garrick Aden-Buie
e6fa1328ee
only worry about spaces in google font family
6 jaren geleden