Skip to content

Commit

Permalink
asfafs
Browse files Browse the repository at this point in the history
  • Loading branch information
bbitarello committed Dec 26, 2022
1 parent 72c8668 commit 0fa91d6
Show file tree
Hide file tree
Showing 4 changed files with 686 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.Rproj.user
.Rhistory
.Rdata
.httr-oauth
.DS_Store
13 changes: 13 additions & 0 deletions AGD/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,19 @@
deleted = true;
});
})();
// add `data-at-shortcutkeys` attribute to <body> to resolve conflicts with JAWS
// screen reader (see PR #262)
(function(d) {
let res = {};
d.querySelectorAll('.remark-help-content table tr').forEach(tr => {
const t = tr.querySelector('td:nth-child(2)').innerText;
tr.querySelectorAll('td:first-child .key').forEach(key => {
const k = key.innerText;
if (/^[a-z]$/.test(k)) res[k] = t; // must be a single letter (key)
});
});
d.body.setAttribute('data-at-shortcutkeys', JSON.stringify(res));
})(document);
(function() {
"use strict"
// Replace <script> tags in slides area to make them executable
Expand Down
34 changes: 32 additions & 2 deletions AGD/xaringan-themer.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* - xaringan wiki: https://github.com/yihui/xaringan/wiki
* - remarkjs wiki: https://github.com/gnab/remark/wiki
*
* Version: 0.3.4.9000
* Version: 0.4.1
*
* ------------------------------------------------------- */
@import url(https://fonts.googleapis.com/css?family=Montserrat:300,300i&display=swap);
Expand Down Expand Up @@ -113,7 +113,7 @@ h1, h2, h3 {
.remark-slide-number {
color: #7294D4;
opacity: 1;
font-size: 0.9em;
font-size: 0.9rem;
}
strong {
font-weight: bold;
Expand Down Expand Up @@ -221,6 +221,36 @@ table.dataTable.hover tbody tr:hover, table.dataTable.display tbody tr:hover {
color: var(--text-color) !important;
}

/* Horizontal alignment of code blocks */
.remark-slide-content.left pre,
.remark-slide-content.center pre,
.remark-slide-content.right pre {
text-align: start;
width: max-content;
max-width: 100%;
}
.remark-slide-content.left pre,
.remark-slide-content.right pre {
min-width: 50%;
min-width: min(40ch, 100%);
}
.remark-slide-content.center pre {
min-width: 66%;
min-width: min(50ch, 100%);
}
.remark-slide-content.left pre {
margin-left: unset;
margin-right: auto;
}
.remark-slide-content.center pre {
margin-left: auto;
margin-right: auto;
}
.remark-slide-content.right pre {
margin-left: auto;
margin-right: unset;
}

/* Slide Header Background for h1 elements */
.remark-slide-content.header_background > h1 {
display: block;
Expand Down
Loading

0 comments on commit 0fa91d6

Please sign in to comment.