Skip to content

Commit

Permalink
Update website image and theme settings
Browse files Browse the repository at this point in the history
- Font size fix
- Fixed button style
- Fixed typo
- Updated site image
- Output table changed to paged
  • Loading branch information
royfrancis committed Jan 7, 2024
1 parent c6ac61c commit 7211d1e
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 20 deletions.
6 changes: 3 additions & 3 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project:
output-dir: docs

website:
image: "assets/logos/nbis-scilifelab.png"
image: "assets/images/featured.jpg"
favicon: "assets/favicon.png"
navbar:
logo: "assets/logos/nbis-scilifelab.png"
Expand Down Expand Up @@ -59,7 +59,7 @@ format:
include-before-body: "assets/include_body_before.html"
include_after_body: "assets/include_body_after.html"
theme: ["default","assets/css/slides.scss"]
df-print: kable
df-print: paged
width: 1280
height: 720
transition: "fade"
Expand All @@ -81,7 +81,7 @@ format:
data-background-image: "assets/images/cover.jpg"
data-background-size: "cover"
data-background-opacity: "1"
subtitle: "Abstrave quarto theme"
subtitle: "Specky quarto theme"
header-logo-left: ../../assets/logos/nbis.png
header-logo-left-height: 25px
header-logo-left-url: https://royfrancis.github.io/specky/home_contents.html
Expand Down
52 changes: 36 additions & 16 deletions assets/css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
@import url('https://fonts.googleapis.com/css2?family=Fira+Mono&family=Nunito:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

$primary: #95b540;
$secondary: #E9F2D1;
$link-color: #96b43f;
$secondary: #BDD775;
$tertiary: #E9F2D1;
$link-color: $primary;
$body-color: #1c2833;
$code-color: #496985;
$code-block-bg: WhiteSmoke;
Expand All @@ -24,12 +25,11 @@ $h4-font-size: 1.266rem;
$h5-font-size: 1.125rem;
$h6-font-size: 1rem;
$code-block-border-color: none;
$code-font-size: 0.90rem;
$code-bg: $code-block-bg; /* inline code */
/*$code-color: ; */

/* site */
$navbar-bg: $secondary;
$navbar-bg: $tertiary;
$footer-bg: white;
$footer-fg: DimGray;

Expand All @@ -43,14 +43,6 @@ $footer-fg: DimGray;
.smaller { font-size: 0.64em;}
.smallest { font-size: 0.512em;}

.badge, .badge-primary {
background-color: $primary;
}

.badge-secondary {
background-color: $secondary;
}

/* site ---------------------------------------------------------------------- */

.fourofour {
Expand Down Expand Up @@ -78,10 +70,27 @@ $footer-fg: DimGray;
object-fit: cover;
}

.shadow{
box-shadow: 2px 2px 10px lightgray;
/* buttons and badges */

.badge,
.badge-primary {
background-color: $primary;
}

.badge-secondary {
background-color: $secondary;
}

.btn {
background-color: $secondary;
}

.btn:hover {
background-color: $tertiary;
}

/* alert */

.alert {
border-radius: 0;
}
Expand All @@ -93,11 +102,22 @@ $footer-fg: DimGray;
/* code */

pre {
// font-size: 1.05rem !important;
line-height: 1.4;
background-color: $code-block-bg;
border-radius: 0.25rem;
}

pre:not(.sourceCode), pre:not([class]) {
padding: 0.4em;
}

div.code-with-filename-file pre {
padding: 0;
}

code {
// font-size: 0.85em !important;
color: $code-color;
}

Expand All @@ -112,8 +132,8 @@ code {
border: solid silver 1px !important;
}

div.callout-note.callout-style-default .callout-title {
background-color: $secondary;
div.callout-note.callout-style-default > .callout-header {
background-color: $tertiary;
}

div.callout-note .callout-icon::before {
Expand Down
2 changes: 1 addition & 1 deletion assets/include_head.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Ubuntu+Mono&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Fira+Mono&family=Nunito:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap" rel="stylesheet">
20 changes: 20 additions & 0 deletions reports/demo-with-r/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,26 @@ Sys.Date()
sessionInfo()
```

An advanced example showing bash code generated from R.

````
```{{r}}
#| attr-output: "filename='bash'"
#| class-output: bash
#| echo: false
d <- "custom"
cat(paste("mkdir​", d))
```
````

```{r}
#| attr-output: "filename='bash'"
#| class-output: bash
#| echo: false
d <- "custom"
cat(paste("mkdir​", d))
```

Code chunk attributes are documented [here](https://quarto.org/docs/output-formats/html-code.html).

## Tables
Expand Down

0 comments on commit 7211d1e

Please sign in to comment.