浏览代码

* Use `.table-unshaded` class on a tables to prevent xaringanthemer's table heading and row shading (#74)

Fixes #74
tags/v0.4.2
父节点
当前提交
6444163cd7
找不到此签名对应的密钥
共有 15 个文件被更改,包括 45 次插入15 次删除
  1. +3
    -1
      inst/resources/template.css
  2. +3
    -1
      tests/testthat/css/duo-header_bg.css
  3. +3
    -1
      tests/testthat/css/duo.css
  4. +3
    -1
      tests/testthat/css/duo_accent.css
  5. +3
    -1
      tests/testthat/css/duo_accent_inverse.css
  6. +3
    -1
      tests/testthat/css/google_fonts.css
  7. +3
    -1
      tests/testthat/css/mono_accent.css
  8. +3
    -1
      tests/testthat/css/mono_accent_inverse.css
  9. +3
    -1
      tests/testthat/css/mono_dark.css
  10. +3
    -1
      tests/testthat/css/mono_light-header_bg.css
  11. +3
    -1
      tests/testthat/css/mono_light.css
  12. +3
    -1
      tests/testthat/css/solarized_dark-header_bg.css
  13. +3
    -1
      tests/testthat/css/solarized_dark.css
  14. +3
    -1
      tests/testthat/css/solarized_light.css
  15. +3
    -1
      tests/testthat/css/xaringan.css

+ 3
- 1
inst/resources/template.css 查看文件

@@ -197,7 +197,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: {{table_row_even_background_color}};
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/duo-header_bg.css 查看文件

@@ -189,7 +189,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #E8ECEE;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/duo.css 查看文件

@@ -189,7 +189,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #E8ECEE;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/duo_accent.css 查看文件

@@ -191,7 +191,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #CCEDEA;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/duo_accent_inverse.css 查看文件

@@ -191,7 +191,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #024884;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/google_fonts.css 查看文件

@@ -185,7 +185,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #eee;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/mono_accent.css 查看文件

@@ -190,7 +190,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #D9D9E7;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/mono_accent_inverse.css 查看文件

@@ -190,7 +190,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #0B1E1F;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/mono_dark.css 查看文件

@@ -190,7 +190,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #3C4A47;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/mono_light-header_bg.css 查看文件

@@ -190,7 +190,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #D3D7DE;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/mono_light.css 查看文件

@@ -190,7 +190,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #D3D7DE;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/solarized_dark-header_bg.css 查看文件

@@ -187,7 +187,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #073642;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/solarized_dark.css 查看文件

@@ -187,7 +187,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #073642;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/solarized_light.css 查看文件

@@ -187,7 +187,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #eee8d5;
}
table.dataTable tbody {

+ 3
- 1
tests/testthat/css/xaringan.css 查看文件

@@ -186,7 +186,9 @@ blockquote {
th, td {
padding: 5px;
}
.remark-slide thead, .remark-slide tfoot, .remark-slide tr:nth-child(even) {
.remark-slide table:not(.table-unshaded) thead,
.remark-slide table:not(.table-unshaded) tfoot,
.remark-slide table:not(.table-unshaded) tr:nth-child(even) {
background: #eee;
}
table.dataTable tbody {

正在加载...
取消
保存