Skip to content

Commit 0d77112

Browse files
committed
Add collections
1 parent fc06688 commit 0d77112

21 files changed

Lines changed: 178 additions & 14 deletions

_includes/collections/animations.html

Lines changed: 24 additions & 0 deletions
Large diffs are not rendered by default.

_includes/collections/box-model.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

_includes/collections/flexbox.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

_includes/collections/positioning.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

_includes/collections/transitions.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

_includes/collections/typography.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

_includes/menu.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@
3333
</figure>
3434
</a>
3535
</header>
36+
<nav class="menu-collections">
37+
<p><strong>Collections</strong></p>
38+
<ul>
39+
<li><a class="menu-collection-link" href="{{site.url}}/animations/">Animations</a></li>
40+
<li><a class="menu-collection-link" href="{{site.url}}/box-model/">Box model</a></li>
41+
<li><a class="menu-collection-link" href="{{site.url}}/flexbox/">Flexbox</a></li>
42+
<li><a class="menu-collection-link" href="{{site.url}}/positioning/">Positioning</a></li>
43+
<li><a class="menu-collection-link" href="{{site.url}}/transitions/">Transitions</a></li>
44+
<li><a class="menu-collection-link" href="{{site.url}}/typography/">Typography</a></li>
45+
</ul>
46+
</nav>
3647
<nav id="menu-nav" class="menu-nav">
3748
<div class="menu-search">
3849
<input id="menu-search-input" type="search" autocomplete="off" placeholder="Search for a property">

_layouts/collection.html

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<!DOCTYPE html>
2+
<html class="is-collection" data-template="collection">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6+
<meta name="viewport" content="width=device-width">
7+
<title>{{page.collection_name}} - {{site.title}}</title>
8+
<link rel="stylesheet" type="text/css" href="{{site.url}}/css/website.css">
9+
10+
<meta property="og:url" content="{{site.url}}{{page.url}}">
11+
<meta property="og:type" content="website">
12+
<meta property="og:title" content="{{page.collection_name}} - {{site.title}}">
13+
<meta property="og:image" content="{{site.url}}/images/css-reference-share.png">
14+
<meta property="og:image:type" content="image/png">
15+
<meta property="og:image:width" content="1200">
16+
<meta property="og:image:height" content="630">
17+
<meta property="og:description" content="Learn how {{page.collection_name}} works in CSS.">
18+
19+
<meta name="twitter:card" content="summary_large_image">
20+
<meta name="twitter:site" content="@jgthms">
21+
<meta name="twitter:creator" content="@jgthms">
22+
<meta name="twitter:title" content="{{page.collection_name}} - {{site.title}}">
23+
<meta name="twitter:image" content="{{site.url}}/images/css-reference-share.png">
24+
<meta name="twitter:description" content="Learn how {{page.collection_name}} works in CSS.">
25+
26+
{% include favicons.html %}
27+
</head>
28+
<body>
29+
{% include menu.html %}
30+
<main class="main">
31+
<header class="heading">
32+
<h1 class="heading-title">
33+
<strong>{{page.collection_name}}</strong> in CSS
34+
</h1>
35+
<p class="heading-description">The CSS properties that allow you to {{page.description}}</p>
36+
</header>
37+
<section class="list">
38+
{{content}}
39+
</section>
40+
</main>
41+
{% include modals/share.html %}
42+
{% include google-fonts.html %}
43+
<script src="{{site.url}}/javascript/clipboard.min.js"></script>
44+
<script src="{{site.url}}/javascript/main.js"></script>
45+
{% include noscript.html %}
46+
</body>
47+
</html>

_layouts/single.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<i class="icon is-back"></i>
3333
<strong>View in context</strong>
3434
</a>
35-
<section class="single">
35+
<section class="list">
3636
{{content}}
3737
</section>
3838
</main>

animations.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: collection
3+
collection_name: "Animations"
4+
description: "animate almost any other property"
5+
---
6+
7+
{% include collections/animations.html %}

0 commit comments

Comments
 (0)