Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions content/about/theme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: GRASS Quarto Design Guide
description: Adopted from Quarto Documentation
image: images/LinkedIn-Post-Image.png
image: /images/other/default-social-image.png
title-block-banner: true
author:
- name: Corey White
Expand Down Expand Up @@ -535,82 +535,82 @@ See @tbl-panel for details, especially @tbl-second.
### Images

<figure>
<img src="../../images/logos/large/grass-gradient-horizontal.svg" style="width:25.0%" alt="Width 25%" />
<img src="/images/logos/grass-horizontal/grass-gradient-horizontal.svg" style="width:25.0%" alt="Width 25%" />
<figcaption aria-hidden="true">Width 25%</figcaption>
</figure>

``` md
![Width 25%](../../images/logos/large/grass-gradient-horizontal.svg){width=25%}
![Width 25%](/images/logos/grass-horizontal/grass-gradient-horizontal.svg){width=25%}
```

<figure>
<img src="../../images/logos/large/grass-gradient-horizontal.svg" style="width:50.0%" alt="Width 50%" />
<img src="/images/logos/grass-horizontal/grass-gradient-horizontal.svg" style="width:50.0%" alt="Width 50%" />
<figcaption aria-hidden="true">Width 50%</figcaption>
</figure>

``` md
![Width 50%](../../images/logos/large/grass-gradient-horizontal.svg){width=50%}
![Width 50%](/images/logos/grass-horizontal/grass-gradient-horizontal.svg){width=50%}
```

<figure>
<img src="../../images/logos/large/grass-gradient-horizontal.svg" style="width:75.0%" alt="Width 75%" />
<img src="/images/logos/grass-horizontal/grass-gradient-horizontal.svg" style="width:75.0%" alt="Width 75%" />
<figcaption aria-hidden="true">Width 75%</figcaption>
</figure>

``` md
![Width 75%](../../images/logos/large/grass-gradient-horizontal.svg){width=75%}
![Width 75%](/images/logos/grass-horizontal/grass-gradient-horizontal.svg){width=75%}
```

<figure>
<img src="../../images/logos/large/grass-gradient-horizontal.svg" style="width:100.0%" alt="Width 100%" />
<img src="/images/logos/grass-horizontal/grass-gradient-horizontal.svg" style="width:100.0%" alt="Width 100%" />
<figcaption aria-hidden="true">Width 100%</figcaption>
</figure>

``` md
![Width 100%](../../images/logos/large/grass-gradient-horizontal.svg){width=100%}
![Width 100%](/images/logos/grass-horizontal/grass-gradient-horizontal.svg){width=100%}
```

### Image Link

<figure>
<a href="https://grass.osgeo.org"><img src="../../images/logos/large/grass-gradient.svg" style="width:20.0%" /></a>
<a href="https://grass.osgeo.org"><img src="/images/logos/grass-logo/grass-gradient.svg" style="width:20.0%" /></a>
<figcaption>Caption</figcaption>
</figure>

``` md
[![Caption](../../images/logos/large/grass-gradient.svg){width=20%}](https://grass.osgeo.org)
[![Caption](/images/logos/grass-logo/grass-gradient.svg){width=20%}](https://grass.osgeo.org)
```

### Image Link with Alt-Text

<figure>
<a href="https://grass.osgeo.org"><img src="../../images/logos/large/grass-gradient.svg" title="Alt text" style="width:20.0%" /></a>
<a href="https://grass.osgeo.org"><img src="/images/logos/grass-logo/grass-gradient.svg" title="Alt text" style="width:20.0%" /></a>
<figcaption>Caption</figcaption>
</figure>

``` md
[![Caption](../../images/logos/large/grass-gradient.svg "Alt text"){width=20%}](https://grass.osgeo.org)
[![Caption](/images/logos/grass-logo/grass-gradient.svg "Alt text"){width=20%}](https://grass.osgeo.org)
```

### Aligned Images

<img src="../../images/logos/large/grass-gradient.svg" title="Alt text" style="width:20.0%" data-fig-align="left" alt="Aligned Left" />
<img src="../../images/logos/large/grass-gradient.svg" title="Alt text" style="width:20.0%" data-fig-align="right" alt="Aligned Right" />
<img src="/images/logos/grass-logo/grass-gradient.svg" title="Alt text" style="width:20.0%" data-fig-align="left" alt="Aligned Left" />
<img src="/images/logos/grass-logo/grass-gradient.svg" title="Alt text" style="width:20.0%" data-fig-align="right" alt="Aligned Right" />

``` md
![Aligned Left](../../images/logos/large/grass-gradient.svg "Alt text"){width=20% fig-align="left"}
![Aligned Right](../../images/logos/large/grass-gradient.svg "Alt text"){width=20% fig-align="right"}
![Aligned Left](/images/logos/grass-logo/grass-gradient.svg "Alt text"){width=20% fig-align="left"}
![Aligned Right](/images/logos/grass-logo/grass-gradient.svg "Alt text"){width=20% fig-align="right"}
```

### Lightbox

<figure>
<img src="../../images/logos/large/grass-gradient.svg" title="Alt text" class="lightbox" style="width:20.0%" data-fig-align="center" alt="Lightbox" />
<img src="/images/logos/grass-logo/grass-gradient.svg" title="Alt text" class="lightbox" style="width:20.0%" data-fig-align="center" alt="Lightbox" />
<figcaption aria-hidden="true">Lightbox</figcaption>
</figure>

``` md
![Lightbox](../../images/logos/large/grass-gradient.svg "Alt text"){width=20% fig-align="center" .lightbox}
![Lightbox](/images/logos/grass-logo/grass-gradient.svg "Alt text"){width=20% fig-align="center" .lightbox}
```

### Placeholders
Expand Down Expand Up @@ -1197,21 +1197,21 @@ The order of attribute for divs and spans follow rules defined in the [pandoc](h
### Column Full screen inset

<figure>
<img src="images/LinkedIn-Post-Image.png" alt="A full screen image" />
<img src="/images/other/default-social-image.png" alt="A full screen image" />
<figcaption aria-hidden="true">A full screen image</figcaption>
</figure>

### Column Full screen shaded inset

<figure>
<img src="images/LinkedIn-Post-Image.png" alt="A full screen image" />
<img src="/images/other/default-social-image.png" alt="A full screen image" />
<figcaption aria-hidden="true">A full screen image</figcaption>
</figure>

### Column Margin

<figure>
<img src="images/LinkedIn-Post-Image.png" alt="An image in the margin" />
<img src="/images/other/default-social-image.png" alt="An image in the margin" />
<figcaption aria-hidden="true">An image in the margin</figcaption>
</figure>

Expand Down
4 changes: 1 addition & 3 deletions themes/grass/layouts/shortcodes/figure.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@

{{- if not ($.Page.Scratch.Get "figurecount") }}<link rel="stylesheet" href="/css/gallery.css" />{{ end }}
{{- $.Page.Scratch.Add "figurecount" 1 -}}
{{- $thumb := .Get "src" | default (printf "%s." (.Get "thumb") | replace (.Get "link") ".") }}
<div class="box{{ with .Get "caption-position" }} fancy-figure caption-position-{{.}}{{end}}{{ with .Get "caption-effect" }} caption-effect-{{.}}{{end}}" {{ with .Get "width" }}style="max-width:{{.}}"{{end}}>
<figure {{ with .Get "class" }}class="{{.}}"{{ end }} itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">
<div class="img"{{ if .Parent }} style="background-image: url('{{ $thumb | relURL }}');"{{ end }}{{ with .Get "size" }} data-size="{{.}}"{{ end }}>
<img itemprop="thumbnail" src="{{ $thumb | relURL }}" {{ with .Get "alt" | default (.Get "caption") }}alt="{{.}}"{{ end }}/><
<img itemprop="thumbnail" src="{{ $thumb | relURL }}" {{ with .Get "alt" | default (.Get "caption") }}alt="{{.}}"{{ end }}/>
</div>
{{ with .Get "link" | default (.Get "src") }}<a href="{{.}}" itemprop="contentUrl"></a>{{ end }}
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
Expand Down