Skip to content

Commit

Permalink
Added notification for animations that use hover selector
Browse files Browse the repository at this point in the history
  • Loading branch information
kapoko committed Dec 29, 2020
1 parent a407b3f commit 0e21e30
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions site/assets/js/main.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import domReady from './helpers/domReady';
import { library, dom } from "@fortawesome/fontawesome-svg-core";
import { faGithub } from "@fortawesome/free-brands-svg-icons";
import { faDownload, faCode, faEllipsisH, faAngleLeft, faAngleRight } from "@fortawesome/free-solid-svg-icons";
import { faDownload, faCode, faEllipsisH, faAngleLeft, faAngleRight, faInfo, faCircle } from "@fortawesome/free-solid-svg-icons";
import { render } from 'github-buttons'

import tippy from 'tippy.js';

import '../../node_modules/tippy.js/dist/tippy.css'
import '../sass/main.scss';

library.add(faDownload, faGithub, faCode, faEllipsisH, faAngleLeft, faAngleRight);
library.add(faDownload, faGithub, faCode, faEllipsisH, faAngleLeft, faAngleRight, faInfo, faCircle);
dom.watch();

domReady(() => {
Expand Down
1 change: 1 addition & 0 deletions site/content/burger/parallel.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
title: Parallel
class: parallel
weight: 90
hover: true
---
1 change: 1 addition & 0 deletions site/content/burger/shelf.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
title: Shelf
class: shelf
weight: 20
hover: true
---
13 changes: 13 additions & 0 deletions site/layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ <h2 class="is-size-5 is-size-3-desktop">{{ .Title }}</h2>
{{ end }}
</nav>
</div>
{{ if .Params.hover }}
<article class="message is-warning">
<div class="message-header is-justify-content-left">
<span class="fa-stack mr-sm" style="vertical-align: top;">
<i class="fas fa-circle fa-stack-2x has-text-body"></i>
<i class="fas fa-info fa-stack-1x has-text-warning"></i>
</span> Uses :hover
</div>
<div class="message-body">
This animation uses the <strong>:hover selector</strong>, so keep in mind it behaves slightly different on touch devices.
</div>
</article>
{{ end }}
<p><strong>1.</strong> Install with npm or Yarn</p>
{{ highlight "npm install delicious-hamburgers --save" "bash" "" }}
{{ highlight "yarn add delicious-hamburgers" "bash" ""}}
Expand Down

0 comments on commit 0e21e30

Please sign in to comment.