* Added kable_paper style for a NYT like table
* Let column_spec take conditional formats
* Added html_font option for kable_styling
diff --git a/inst/NEWS.md b/inst/NEWS.md
index 9b48ed4..3818d58 100644
--- a/inst/NEWS.md
+++ b/inst/NEWS.md
@@ -1,6 +1,19 @@
kableExtra 1.2.0
--------------------------------------------------------------------------------
+# Major Change
+
+* Added a `kable` function as a wrapper of the original `kable` but provides better documentation and auto-complete. We also moved the automatic format
+setup piece into the `kable` function call instead of changing global option
+during package start-up.
+
+* Added a few alternative HTML table themes. See https://haozhu233.github.io/kableExtra/awesome_table_in_html.html#Alternative_themes. (#451)
+
+* `column_spec` now takes vectorized input so it's easier to do conditional
+formatting without using `cell_spec`
+
+# Minor Change
+
* `add_indent` has a new option `level_of_indent` to control the width of the
indentation. (thanks @samiaab1990 #479)
@@ -12,33 +25,36 @@
* `collapse_rows` has a new option `target` to choose the target column in
`collapse_rows` (#484)
-* Fixed a bug with `group_rows` when used with `repeat_header` on the last row
-(#476)
-
-* Added mathjax to preview (#473)
-
-* Fixed a bug with `repeat_header` when the header row is customized (#480)
-
-* Fixed a bug with `collapse_rows` when text is too long. (#464)
+* Added mathjax to HTML preview (#473)
* Added a new function `remove_column` for html. The latex part hasn't been
implemented yet. (#490, thanks @DanChaltiel)
-* `add_header_above` now can take a data.frame as input. (#440, thanks @jokorn)
-
-* Fixed a bug when using UTF-8 on non-UTF-8 system. (#440, thanks @jokorn)
-
* Added a global option to control whether to preview HTML tables in RStudio
viewer. If you want to disable the default behavior, try to set
`options(kableExtra_view_html = F)`. (#455)
-* Added a few alternative HTML table themes. See https://haozhu233.github.io/kableExtra/awesome_table_in_html.html#Alternative_themes. (#451)
-
* Added a `new_tab` option to `cell_spec` to control whether to open up links
in new tab. (#454)
* Improved the behavior of `scroll_box` so it will skip non-html tables. (#450)
+* Added a `html_font` option to `kable_styling` and its variants.
+
+
+# Bug Fix
+
+* Fixed a bug with `group_rows` when used with `repeat_header` on the last row
+(#476)
+
+* Fixed a bug with `repeat_header` when the header row is customized (#480)
+
+* Fixed a bug with `collapse_rows` when text is too long. (#464)
+
+* `add_header_above` now can take a data.frame as input. (#440, thanks @jokorn)
+
+* Fixed a bug when using UTF-8 on non-UTF-8 system. (#440, thanks @jokorn)
+
* Fixed a bug in `collapse_rows` when there is no column names (#459)
* Fixed a bug for `add_header_rows` when there isn't thead in HTML (#246, #423,
@@ -48,6 +64,10 @@
#422, thanks @kbrevoort)
+
+
+
+
kableExtra 1.1.0
--------------------------------------------------------------------------------
diff --git a/inst/lightable-0.0.1/lightable.css b/inst/lightable-0.0.1/lightable.css
index d18f18c..ae1fb53 100644
--- a/inst/lightable-0.0.1/lightable.css
+++ b/inst/lightable-0.0.1/lightable.css
@@ -11,9 +11,20 @@
margin-bottom: 10px;
}
+.lightable-minimal td {
+ margin-left: 5px;
+ margin-right: 5px;
+}
+
+.lightable-minimal th {
+ margin-left: 5px;
+ margin-right: 5px;
+}
+
.lightable-minimal thead tr th {
border-bottom: 2px solid black;
empty-cells: hide;
+
}
.lightable-minimal tbody tr:first-child td {
@@ -35,12 +46,22 @@
margin-bottom: 10px;
}
+.lightable-classic td {
+ padding-left: 5px;
+ padding-right: 5px;
+}
+
+.lightable-classic th {
+ padding-left: 5px;
+ padding-right: 5px;
+}
+
.lightable-classic thead tr:last-child th {
border-bottom: 1px solid #111111;
}
.lightable-classic.lightable-hover tbody tr:hover {
- background-color: #f5f5f5;
+ background-color: #F9EEC1;
}
.lightable-classic.lightable-striped tr:nth-child(even) {
@@ -54,12 +75,22 @@
margin-bottom: 10px;
}
+.lightable-classic-2 td {
+ padding-left: 5px;
+ padding-right: 5px;
+}
+
+.lightable-classic-2 th {
+ padding-left: 5px;
+ padding-right: 5px;
+}
+
.lightable-classic-2 thead tr:last-child th {
border-bottom: 1px solid #111111;
}
.lightable-classic-2.lightable-hover tbody tr:hover {
- background-color: #f5f5f5;
+ background-color: #F9EEC1;
}
.lightable-classic-2.lightable-striped tr:nth-child(even) {
@@ -146,3 +177,35 @@
.lightable-material-dark.lightable-striped thead tr:last-child th {
border-bottom: 1px solid #FFFFFF12;
}
+
+.lightable-paper {
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.lightable-paper th {
+ color: #999;
+ vertical-align: bottom;
+ border-bottom: 1px solid #00000020;
+ line-height: 1.15em;
+ padding: 10px 5px;
+}
+
+.lightable-paper td {
+ vertical-align: middle;
+ border-bottom: 1px solid #00000010;
+ line-height: 1.15em;
+ padding: 7px 5px;
+}
+
+.lightable-paper.lightable-hover tbody tr:hover {
+ background-color: #F9EEC1;
+}
+
+.lightable-paper.lightable-striped tr:nth-child(even) {
+ background-color: #00000008;
+}
+
+.lightable-material-dark.lightable-striped td {
+ border: 0;
+}