aboutsummaryrefslogtreecommitdiff
path: root/docs/pkgdown.css
diff options
context:
space:
mode:
authorRanke Johannes <johannes.ranke@agroscope.admin.ch>2023-11-10 18:40:34 +0100
committerRanke Johannes <johannes.ranke@agroscope.admin.ch>2023-11-10 19:21:11 +0100
commit816de01ce642c1c3d633ffb1cbcf960036d27114 (patch)
treecf732b6e18bcc0864b481f804a1cb0b16bdd7d4d /docs/pkgdown.css
parent67384ac3c7c0b888d67d06473f81e46d520a7dd3 (diff)
Make an RStudio project and improve the docs
Diffstat (limited to 'docs/pkgdown.css')
-rw-r--r--docs/pkgdown.css83
1 files changed, 50 insertions, 33 deletions
diff --git a/docs/pkgdown.css b/docs/pkgdown.css
index 1273238..80ea5b8 100644
--- a/docs/pkgdown.css
+++ b/docs/pkgdown.css
@@ -56,8 +56,10 @@ img.icon {
float: right;
}
-img {
+/* Ensure in-page images don't run outside their container */
+.contents img {
max-width: 100%;
+ height: auto;
}
/* Fix bug in bootstrap (only seen in firefox) */
@@ -78,11 +80,10 @@ dd {
/* Section anchors ---------------------------------*/
a.anchor {
- margin-left: -30px;
- display:inline-block;
- width: 30px;
- height: 30px;
- visibility: hidden;
+ display: none;
+ margin-left: 5px;
+ width: 20px;
+ height: 20px;
background-image: url(./link.svg);
background-repeat: no-repeat;
@@ -90,17 +91,15 @@ a.anchor {
background-position: center center;
}
-.hasAnchor:hover a.anchor {
- visibility: visible;
-}
-
-@media (max-width: 767px) {
- .hasAnchor:hover a.anchor {
- visibility: hidden;
- }
+h1:hover .anchor,
+h2:hover .anchor,
+h3:hover .anchor,
+h4:hover .anchor,
+h5:hover .anchor,
+h6:hover .anchor {
+ display: inline-block;
}
-
/* Fixes for fixed navbar --------------------------*/
.contents h1, .contents h2, .contents h3, .contents h4 {
@@ -264,31 +263,26 @@ table {
/* Syntax highlighting ---------------------------------------------------- */
-pre {
- word-wrap: normal;
- word-break: normal;
- border: 1px solid #eee;
-}
-
-pre, code {
+pre, code, pre code {
background-color: #f8f8f8;
color: #333;
}
+pre, pre code {
+ white-space: pre-wrap;
+ word-break: break-all;
+ overflow-wrap: break-word;
+}
-pre code {
- overflow: auto;
- word-wrap: normal;
- white-space: pre;
+pre {
+ border: 1px solid #eee;
}
-pre .img {
+pre .img, pre .r-plt {
margin: 5px 0;
}
-pre .img img {
+pre .img img, pre .r-plt img {
background-color: #fff;
- display: block;
- height: auto;
}
code a, pre a {
@@ -305,9 +299,8 @@ a.sourceLine:hover {
.kw {color: #264D66;} /* keyword */
.co {color: #888888;} /* comment */
-.message { color: black; font-weight: bolder;}
-.error { color: orange; font-weight: bolder;}
-.warning { color: #6A0366; font-weight: bolder;}
+.error {font-weight: bolder;}
+.warning {font-weight: bolder;}
/* Clipboard --------------------------*/
@@ -365,3 +358,27 @@ mark {
content: "";
}
}
+
+/* Section anchors ---------------------------------
+ Added in pandoc 2.11: https://github.com/jgm/pandoc-templates/commit/9904bf71
+*/
+
+div.csl-bib-body { }
+div.csl-entry {
+ clear: both;
+}
+.hanging-indent div.csl-entry {
+ margin-left:2em;
+ text-indent:-2em;
+}
+div.csl-left-margin {
+ min-width:2em;
+ float:left;
+}
+div.csl-right-inline {
+ margin-left:2em;
+ padding-left:1em;
+}
+div.csl-indent {
+ margin-left: 2em;
+}

Contact - Imprint