Skip to content

Commit

Permalink
Merge pull request #10 from grantmcdermott/v1.1
Browse files Browse the repository at this point in the history
V1.1
  • Loading branch information
grantmcdermott committed Apr 1, 2024
2 parents 16a48a5 + 7523e29 commit ede9585
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 5 deletions.
39 changes: 38 additions & 1 deletion _extensions/clean/clean.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ Note: This theme uses the Roboto font family, which it imports from Google
preserving consistent font weights, you may also wish to remove "Roboto"
from the choice set if the family is installed locally.
*/
@import url(https://fonts.googleapis.com/css?family=Roboto:200,200i,300,300i,350,350i,400,400i);
@import url('https://fonts.googleapis.com/css?family=Roboto:200,200i,300,300i,350,350i,400,400i&display=swap');

$font-family-sans-serif: "Roboto", sans-serif !default;
$presentation-heading-font: "Roboto", sans-serif !default;

Expand Down Expand Up @@ -240,6 +241,42 @@ $selection-bg: #26351c !default;
margin-right: 5px;
}

// tables

.reveal table {
// height: auto; /* Adjust table width to fit content up to the available slide space */
margin: auto;
border-collapse: collapse;
border-spacing: 0;
font-size: 0.8em;
}

.reveal table th,
.reveal table td {
border: none; /* Remove internal row lines */
padding: .23em; /* Adjust padding as needed */
text-align: left; /* Adjust text alignment as needed */
font-weight: lighter; /* Lighter font weight for main table text */
}

/* Adds a bottom border to the table header row for distinction */
.reveal table thead th,
.reveal .slides table tr:last-child td,
.reveal .slides table {
border-bottom: 2px solid #D3D3D3; /* Dark grey color for the bottom border */
}

/* Make column headers bold */
.reveal table thead th {
font-weight: bold;
}

/* Styling table captions */
.reveal table caption {
color: #666666; /* Dark grey color for the caption */
font-variant: small-caps; /* Use small caps for the caption text */
}

// Special catch for etable environment to ensure these table images
// don't overflow the slide.
// See: https://lrberge.github.io/fixest/articles/etable_new_features.html
Expand Down
Binary file modified clean-title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions template.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ with more examples for integrating code, tables, figures, etc.
### A minimal and elegant presentation theme

The Quarto reveal.js clean theme aims to be a minimal and elegant presention
theme.
theme. Here are some options to get you started:

Install the theme.
Add the theme to an existing project.

```{.bash}
quarto install extension grantmcdermott/quarto-revealjs-clean
```

Use this lean template.
... or, create a new project using this slide deck as a lean template.

```{.bash}
quarto use template grantmcdermott/quarto-revealjs-clean
```

Use the longer demo template.
... or, create a new project using the demo slide deck as a full template.

```{.bash}
quarto use template grantmcdermott/quarto-revealjs-clean-demo
Expand Down

0 comments on commit ede9585

Please sign in to comment.