User table with R Markdown v2 and ioslides

I am making a presentation with R Markdown v2 and ioslides. The font that I get in the default tables is a little too small.

For instance:

---
title: "Never put off 'till tomorrow?"
author: "Ignacio Martinez"
date: "09/23/2014"
output:
  ioslides_presentation:
    incremental: yes
    css: ./styles.css
    logo: ./img/rotunda.png 
    widescreen: yes
    self_contained: true
    font-import: http://fonts.googleapis.com/css?family=Ubuntu
    font-family: Ubuntu
runtime: shiny

---

## Estimates (OLS)

|                    |          Certificate|
|-------------------:|--------------------:|
|Took Quiz 1 on Day 1|          0.154\*\*\*|
|                    |          (0.003)    |
|Constant            |          0.006\*\*\*|
|                    |          (0.002)    |
|N                   |               23,463|

How to increase the font size?

+4
source share
1 answer

I don't like the default color scheme or spacing of the CSS file, so I wrote this. It works in both ioslides_presentation and html_document.

table,
.table-condensed,
table.rmdtable {
  width: auto;
  margin-left: auto;
  margin-right: auto;
}
table,
.table-condensed,
table.rmdtable,
table.rmdtable .header th,
.table > thead > tr > th {
  border-collapse: collapse;
  border-style: solid;
  border-spacing: 0;
  border-width: medium 0 medium 0;
  border-color: inherit
}
table.rmdtable th,
table.rmdtable td,
table th,
table.rmdtable tr > td:first-child,
table.rmdtable .even {
  font-size: 100%;
  padding: 0.4em 0.5em;
  color: inherit;
  background: #FFF;
  font-weight: normal;
}
.table > tbody > tr > td {
  border-width: 0;
}

, . Firefox , , " ". , ; CSS . , , .

+6

All Articles