added classic_2
diff --git a/NAMESPACE b/NAMESPACE
index 99c313b..8f34d31 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -26,6 +26,7 @@
export(kable_as_image)
export(kable_as_xml)
export(kable_classic)
+export(kable_classic_2)
export(kable_material)
export(kable_material_dark)
export(kable_minimal)
diff --git a/R/light_themes.R b/R/light_themes.R
index 425f4dd..8bc174a 100644
--- a/R/light_themes.R
+++ b/R/light_themes.R
@@ -19,6 +19,12 @@
#' @rdname kable_classic
#' @export
+kable_classic_2 <- function(kable_input, lightable_options = "basic", ...) {
+ kable_light(kable_input, "lightable-classic-2", lightable_options, ...)
+}
+
+#' @rdname kable_classic
+#' @export
kable_minimal <- function(kable_input, lightable_options = "basic", ...) {
kable_light(kable_input, "lightable-minimal", lightable_options, ...)
}
diff --git a/docs/awesome_table_in_html.Rmd b/docs/awesome_table_in_html.Rmd
index a434ce1..4658a3c 100644
--- a/docs/awesome_table_in_html.Rmd
+++ b/docs/awesome_table_in_html.Rmd
@@ -68,7 +68,7 @@
```
## Alternative themes
-`kableExtra` also offers a few in-house alternative HTML table themes other than the default bootstrap theme. Right now there are three of them: `kable_classic`, `kable_minimal`, `kable_material` and `kable_material_dark`. These functions are alternatives to `kable_styling`, which means that you can specify any additional formatting options in `kable_styling` in these functions too. The only difference is that `bootstrap_options` (as discussed in the next section) is replaced with `lightable_options` at the same location with only two choices `striped` and `hover` available.
+`kableExtra` also offers a few in-house alternative HTML table themes other than the default bootstrap theme. Right now there are 5 of them: `kable_classic`, `kable_classic_2`, `kable_minimal`, `kable_material` and `kable_material_dark`. These functions are alternatives to `kable_styling`, which means that you can specify any additional formatting options in `kable_styling` in these functions too. The only difference is that `bootstrap_options` (as discussed in the next section) is replaced with `lightable_options` at the same location with only two choices `striped` and `hover` available.
```{r}
dt %>%
@@ -79,6 +79,12 @@
```{r}
dt %>%
kable() %>%
+ kable_classic_2()
+```
+
+```{r}
+dt %>%
+ kable() %>%
kable_minimal()
```
diff --git a/docs/awesome_table_in_html.html b/docs/awesome_table_in_html.html
index 164b67f..9c39a08 100644
--- a/docs/awesome_table_in_html.html
+++ b/docs/awesome_table_in_html.html
@@ -1352,6 +1352,21 @@
.lightable-classic.lightable-striped tr:nth-child(even) {
background-color: #f5f5f5;
}
+.lightable-classic-2 {
+border-top: 3px double #111111;
+border-bottom: 3px double #111111;
+width: 100%;
+margin-bottom: 10px;
+}
+.lightable-classic-2 thead tr:last-child th {
+border-bottom: 1px solid #111111;
+}
+.lightable-classic-2.lightable-hover tbody tr:hover {
+background-color: #f5f5f5;
+}
+.lightable-classic-2.lightable-striped tr:nth-child(even) {
+background-color: #f5f5f5;
+}
.lightable-material {
min-width: 100%;
white-space: nowrap;
@@ -1984,7 +1999,7 @@
</div>
<div id="alternative-themes" class="section level2">
<h2>Alternative themes</h2>
-<p><code>kableExtra</code> also offers a few in-house alternative HTML table themes other than the default bootstrap theme. Right now there are three of them: <code>kable_classic</code>, <code>kable_minimal</code>, <code>kable_material</code> and <code>kable_material_dark</code>. These functions are alternatives to <code>kable_styling</code>, which means that you can specify any additional formatting options in <code>kable_styling</code> in these functions too. The only difference is that <code>bootstrap_options</code> (as discussed in the next section) is replaced with <code>lightable_options</code> at the same location with only two choices <code>striped</code> and <code>hover</code> available.</p>
+<p><code>kableExtra</code> also offers a few in-house alternative HTML table themes other than the default bootstrap theme. Right now there are 5 of them: <code>kable_classic</code>, <code>kable_classic_2</code>, <code>kable_minimal</code>, <code>kable_material</code> and <code>kable_material_dark</code>. These functions are alternatives to <code>kable_styling</code>, which means that you can specify any additional formatting options in <code>kable_styling</code> in these functions too. The only difference is that <code>bootstrap_options</code> (as discussed in the next section) is replaced with <code>lightable_options</code> at the same location with only two choices <code>striped</code> and <code>hover</code> available.</p>
<pre class="r"><code>dt %>%
kable() %>%
kable_classic()</code></pre>
@@ -2133,6 +2148,152 @@
</table>
<pre class="r"><code>dt %>%
kable() %>%
+ kable_classic_2()</code></pre>
+<table class=" lightable-classic-2" style="margin-left: auto; margin-right: auto;">
+<thead>
+<tr>
+<th style="text-align:left;">
+</th>
+<th style="text-align:right;">
+mpg
+</th>
+<th style="text-align:right;">
+cyl
+</th>
+<th style="text-align:right;">
+disp
+</th>
+<th style="text-align:right;">
+hp
+</th>
+<th style="text-align:right;">
+drat
+</th>
+<th style="text-align:right;">
+wt
+</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td style="text-align:left;">
+Mazda RX4
+</td>
+<td style="text-align:right;">
+21.0
+</td>
+<td style="text-align:right;">
+6
+</td>
+<td style="text-align:right;">
+160
+</td>
+<td style="text-align:right;">
+110
+</td>
+<td style="text-align:right;">
+3.90
+</td>
+<td style="text-align:right;">
+2.620
+</td>
+</tr>
+<tr>
+<td style="text-align:left;">
+Mazda RX4 Wag
+</td>
+<td style="text-align:right;">
+21.0
+</td>
+<td style="text-align:right;">
+6
+</td>
+<td style="text-align:right;">
+160
+</td>
+<td style="text-align:right;">
+110
+</td>
+<td style="text-align:right;">
+3.90
+</td>
+<td style="text-align:right;">
+2.875
+</td>
+</tr>
+<tr>
+<td style="text-align:left;">
+Datsun 710
+</td>
+<td style="text-align:right;">
+22.8
+</td>
+<td style="text-align:right;">
+4
+</td>
+<td style="text-align:right;">
+108
+</td>
+<td style="text-align:right;">
+93
+</td>
+<td style="text-align:right;">
+3.85
+</td>
+<td style="text-align:right;">
+2.320
+</td>
+</tr>
+<tr>
+<td style="text-align:left;">
+Hornet 4 Drive
+</td>
+<td style="text-align:right;">
+21.4
+</td>
+<td style="text-align:right;">
+6
+</td>
+<td style="text-align:right;">
+258
+</td>
+<td style="text-align:right;">
+110
+</td>
+<td style="text-align:right;">
+3.08
+</td>
+<td style="text-align:right;">
+3.215
+</td>
+</tr>
+<tr>
+<td style="text-align:left;">
+Hornet Sportabout
+</td>
+<td style="text-align:right;">
+18.7
+</td>
+<td style="text-align:right;">
+8
+</td>
+<td style="text-align:right;">
+360
+</td>
+<td style="text-align:right;">
+175
+</td>
+<td style="text-align:right;">
+3.15
+</td>
+<td style="text-align:right;">
+3.440
+</td>
+</tr>
+</tbody>
+</table>
+<pre class="r"><code>dt %>%
+ kable() %>%
kable_minimal()</code></pre>
<table class=" lightable-minimal" style="margin-left: auto; margin-right: auto;">
<thead>
@@ -5824,7 +5985,7 @@
3
</td>
<td style="text-align:center;">
-0
+1
</td>
</tr>
<tr>
@@ -5832,7 +5993,7 @@
4
</td>
<td style="text-align:center;">
-1
+0
</td>
</tr>
<tr>
@@ -5875,7 +6036,7 @@
9
</td>
<td style="text-align:center;">
-0
+1
</td>
</tr>
<tr>
@@ -5883,7 +6044,7 @@
10
</td>
<td style="text-align:center;">
-1
+0
</td>
</tr>
<tr>
@@ -5897,7 +6058,7 @@
11
</td>
<td style="text-align:center;">
-1
+0
</td>
</tr>
<tr>
@@ -5916,7 +6077,7 @@
13
</td>
<td style="text-align:center;">
-1
+0
</td>
</tr>
<tr>
diff --git a/inst/lightable-0.0.1/lightable.css b/inst/lightable-0.0.1/lightable.css
index dc8fbb6..d18f18c 100644
--- a/inst/lightable-0.0.1/lightable.css
+++ b/inst/lightable-0.0.1/lightable.css
@@ -47,6 +47,25 @@
background-color: #f5f5f5;
}
+.lightable-classic-2 {
+ border-top: 3px double #111111;
+ border-bottom: 3px double #111111;
+ width: 100%;
+ margin-bottom: 10px;
+}
+
+.lightable-classic-2 thead tr:last-child th {
+ border-bottom: 1px solid #111111;
+}
+
+.lightable-classic-2.lightable-hover tbody tr:hover {
+ background-color: #f5f5f5;
+}
+
+.lightable-classic-2.lightable-striped tr:nth-child(even) {
+ background-color: #f5f5f5;
+}
+
.lightable-material {
min-width: 100%;
white-space: nowrap;
diff --git a/man/kable_classic.Rd b/man/kable_classic.Rd
index a8d9edd..4250603 100644
--- a/man/kable_classic.Rd
+++ b/man/kable_classic.Rd
@@ -2,6 +2,7 @@
% Please edit documentation in R/light_themes.R
\name{kable_classic}
\alias{kable_classic}
+\alias{kable_classic_2}
\alias{kable_minimal}
\alias{kable_material}
\alias{kable_material_dark}
@@ -9,6 +10,8 @@
\usage{
kable_classic(kable_input, lightable_options = "basic", ...)
+kable_classic_2(kable_input, lightable_options = "basic", ...)
+
kable_minimal(kable_input, lightable_options = "basic", ...)
kable_material(kable_input, lightable_options = "basic", ...)
@@ -28,6 +31,6 @@
kableExtra uses the built-in bootstrap themes by default in
\code{kable_styling()}. Alternatively, you can use a customized table themes for
your table. This \code{lightable} table style sheet comes with three formats,
-namely \code{lightable-minimal}, \code{lightable-classic} and \code{lightable-material} with
-\code{hover} and \code{striped} options.
+namely \code{lightable-minimal}, \code{lightable-classic}, \code{lightable-material} and
+\code{lightable-material-dark} with \code{hover} and \code{striped} options.
}