Skip to content

Commit 207a99e

Browse files
committed
Add grid
1 parent f6ecc6d commit 207a99e

File tree

69 files changed

+148
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+148
-86
lines changed

_includes/collections/animations.html

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

_includes/collections/backgrounds.html

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

_includes/collections/box-model.html

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

_includes/collections/flexbox.html

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

_includes/collections/transitions.html

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

_includes/collections/typography.html

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

_includes/lists/finder-list.html

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

_includes/lists/menu-list.html

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

_includes/menu.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
<li><a class="menu-collection-link{% if page.collection_name == 'Backgrounds' %} menu-collection-link--active{% endif %}" href="{{site.url}}/backgrounds/">Backgrounds</a></li>
3838
<li><a class="menu-collection-link{% if page.collection_name == 'Box model' %} menu-collection-link--active{% endif %}" href="{{site.url}}/box-model/">Box model</a></li>
3939
<li><a class="menu-collection-link{% if page.collection_name == 'Flexbox' %} menu-collection-link--active{% endif %}" href="{{site.url}}/flexbox/">Flexbox</a></li>
40+
<li><a class="menu-collection-link{% if page.collection_name == 'Grid' %} menu-collection-link--active{% endif %}" href="{{site.url}}/css-grid/">CSS Grid</a></li>
4041
<li><a class="menu-collection-link{% if page.collection_name == 'Positioning' %} menu-collection-link--active{% endif %}" href="{{site.url}}/positioning/">Positioning</a></li>
4142
<li><a class="menu-collection-link{% if page.collection_name == 'Transitions' %} menu-collection-link--active{% endif %}" href="{{site.url}}/transitions/">Transitions</a></li>
4243
<li><a class="menu-collection-link{% if page.collection_name == 'Typography' %} menu-collection-link--active{% endif %}" href="{{site.url}}/typography/">Typography</a></li>

css/website.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ <h2 class="header-title">
6565
<a href="{{site.url}}/backgrounds/">Backgrounds</a>
6666
<a href="{{site.url}}/box-model/">Box model</a>
6767
<a href="{{site.url}}/flexbox/">Flexbox</a>
68+
<a class="is-new" href="{{site.url}}/css-grid/">CSS Grid <span class="tag">New!</span></a>
6869
<a href="{{site.url}}/positioning/">Positioning</a>
6970
<a href="{{site.url}}/transitions/">Transitions</a>
7071
<a href="{{site.url}}/typography/">Typography</a>

property/align-content/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/align-content/" data-property-name="align-content" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="align-content">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=flexbox" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=flexbox" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/align-content" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">
1818
<a href="#align-content"><span>#</span>align-content</a>
1919
</h2>
2020
<div class="property-description">
21-
<p>Defines how each line is aligned within a flexbox container. It only applies if <code>flex-wrap: wrap</code> is present, and if there are <strong>multiple lines</strong> of flexbox items.</p>
21+
<p>Defines how each line is aligned within a flexbox/grid container. It only applies if <code>flex-wrap: wrap</code> is present, and if there are <strong>multiple lines</strong> of flexbox/grid items.</p>
2222

2323
</div>
2424

@@ -72,7 +72,7 @@ <h2 class="property-name">
7272
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="align-content: flex-start;">align-content: flex-start;</code>
7373
</p>
7474
<div class="example-description">
75-
<p>Each line will only fill the space it <em>needs</em>. They will all move towards the <strong>start</strong> of the flexbox container&#39;s cross axis.</p>
75+
<p>Each line will only fill the space it <em>needs</em>. They will all move towards the <strong>start</strong> of the flexbox/grid container&#39;s cross axis.</p>
7676

7777
</div>
7878
</header>
@@ -94,7 +94,7 @@ <h2 class="property-name">
9494
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="align-content: flex-end;">align-content: flex-end;</code>
9595
</p>
9696
<div class="example-description">
97-
<p>Each line will only fill the space it <em>needs</em>. They will all move towards the <strong>end</strong> of the flexbox container&#39;s cross axis.</p>
97+
<p>Each line will only fill the space it <em>needs</em>. They will all move towards the <strong>end</strong> of the flexbox/grid container&#39;s cross axis.</p>
9898

9999
</div>
100100
</header>
@@ -116,7 +116,7 @@ <h2 class="property-name">
116116
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="align-content: center;">align-content: center;</code>
117117
</p>
118118
<div class="example-description">
119-
<p>Each line will only fill the space it <em>needs</em>. They will all move towards the <strong>center</strong> of the flexbox container&#39;s cross axis.</p>
119+
<p>Each line will only fill the space it <em>needs</em>. They will all move towards the <strong>center</strong> of the flexbox/grid container&#39;s cross axis.</p>
120120

121121
</div>
122122
</header>

property/align-items/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/align-items/" data-property-name="align-items" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="align-items">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=flexbox" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=flexbox" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/align-items" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/align-self/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/align-self/" data-property-name="align-self" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="align-self">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=flexbox" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=flexbox" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/align-self" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/animation-delay/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/animation-delay/" data-property-name="animation-delay" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="animation-delay">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/animation-delay" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/animation-direction/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/animation-direction/" data-property-name="animation-direction" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="animation-direction">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/animation-direction" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/animation-duration/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/animation-duration/" data-property-name="animation-duration" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="animation-duration">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/animation-duration" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/animation-fill-mode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/animation-fill-mode/" data-property-name="animation-fill-mode" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="animation-fill-mode">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/animation-fill-mode" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/animation-iteration-count/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/animation-iteration-count/" data-property-name="animation-iteration-count" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="animation-iteration-count">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/animation-iteration-count" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/animation-name/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/animation-name/" data-property-name="animation-name" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="animation-name">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/animation-name" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/animation-play-state/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/animation-play-state/" data-property-name="animation-play-state" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="animation-play-state">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/animation-play-state" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/animation-timing-function/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/animation-timing-function/" data-property-name="animation-timing-function" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="animation-timing-function">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/animation-timing-function" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/animation/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/animation/" data-property-name="animation" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="animation">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=css-animation" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/animation" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/background-attachment/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</a>
1212
<a class="property-links-direct" href="{{site.url}}/property/background-attachment/" data-property-name="background-attachment" data-tooltip="Single page for this property">Permalink</a>
1313
<a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="background-attachment">Share</a>
14-
<a target="_blank" href="https://caniuse.com/#feat=background-attachment" data-tooltip="See on Can I use..." rel="external">Can I use</a>
14+
<a target="_blank" href="http://caniuse.com/#feat=background-attachment" data-tooltip="See on Can I use..." rel="external">Can I use</a>
1515
<a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/background-attachment" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
1616
</nav>
1717
<h2 class="property-name">

property/background-image/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h2 class="property-name">
5858
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="background-image: url(/images/jt.png);">background-image: url(/images/jt.png);</code>
5959
</p>
6060
<div class="example-description">
61-
<p>Uses the image defined in the <strong>url</strong> path. This path can either be <em>relative</em> (to the css file) or <em>absolute</em> (like <code>https://cssreference.io/images/jt.png</code>).</p>
61+
<p>Uses the image defined in the <strong>url</strong> path. This path can either be <em>relative</em> (to the css file) or <em>absolute</em> (like <code>http://cssreference.io/images/jt.png</code>).</p>
6262

6363
</div>
6464
</header>
@@ -211,7 +211,7 @@ <h2 class="property-name">
211211
<code class="example-value" data-tooltip="Click to copy" data-clipboard-text="background-image: radial-gradient(circle closest-side at 45px 45px, green 0%, purple 20%, orange 100%);">background-image: radial-gradient(circle closest-side at 45px 45px, green 0%, purple 20%, orange 100%);</code>
212212
</p>
213213
<div class="example-description">
214-
<p>Like with the <a href="https://cssreference.io/#background-position"><code>background-position</code></a>, you can specify the <strong>position</strong> of the gradient.</p>
214+
<p>Like with the <a href="http://cssreference.io/#background-position"><code>background-position</code></a>, you can specify the <strong>position</strong> of the gradient.</p>
215215

216216
</div>
217217
</header>

property/border-bottom-color/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2 class="property-name">
1414
<a href="#border-bottom-color"><span>#</span>border-bottom-color</a>
1515
</h2>
1616
<div class="property-description">
17-
<p>Like <code class="shorthand"><a href="https://cssreference.io/#border-color">border-color</a></code>, but for the <strong>bottom</strong> border only.</p>
17+
<p>Like <code class="shorthand"><a href="http://cssreference.io/#border-color">border-color</a></code>, but for the <strong>bottom</strong> border only.</p>
1818

1919
</div>
2020

property/border-bottom-style/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2 class="property-name">
1414
<a href="#border-bottom-style"><span>#</span>border-bottom-style</a>
1515
</h2>
1616
<div class="property-description">
17-
<p>Like <code class="shorthand"><a href="https://cssreference.io/#border-style">border-style</a></code>, but for the <strong>bottom</strong> border only.</p>
17+
<p>Like <code class="shorthand"><a href="http://cssreference.io/#border-style">border-style</a></code>, but for the <strong>bottom</strong> border only.</p>
1818

1919
</div>
2020

property/border-bottom-width/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h2 class="property-name">
1717
<a href="#border-bottom-width"><span>#</span>border-bottom-width</a>
1818
</h2>
1919
<div class="property-description">
20-
<p>Like <code class="shorthand"><a href="https://cssreference.io/#border-width">border-width</a></code>, but for the <strong>bottom</strong> border only.</p>
20+
<p>Like <code class="shorthand"><a href="http://cssreference.io/#border-width">border-width</a></code>, but for the <strong>bottom</strong> border only.</p>
2121

2222
</div>
2323

property/border-left-color/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2 class="property-name">
1414
<a href="#border-left-color"><span>#</span>border-left-color</a>
1515
</h2>
1616
<div class="property-description">
17-
<p>Like <code class="shorthand"><a href="https://cssreference.io/#border-color">border-color</a></code>, but for the <strong>left</strong> border only.</p>
17+
<p>Like <code class="shorthand"><a href="http://cssreference.io/#border-color">border-color</a></code>, but for the <strong>left</strong> border only.</p>
1818

1919
</div>
2020

property/border-left-style/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2 class="property-name">
1414
<a href="#border-left-style"><span>#</span>border-left-style</a>
1515
</h2>
1616
<div class="property-description">
17-
<p>Like <code class="shorthand"><a href="https://cssreference.io/#border-style">border-style</a></code>, but for the <strong>left</strong> border only.</p>
17+
<p>Like <code class="shorthand"><a href="http://cssreference.io/#border-style">border-style</a></code>, but for the <strong>left</strong> border only.</p>
1818

1919
</div>
2020

property/border-left-width/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h2 class="property-name">
1717
<a href="#border-left-width"><span>#</span>border-left-width</a>
1818
</h2>
1919
<div class="property-description">
20-
<p>Like <code class="shorthand"><a href="https://cssreference.io/#border-width">border-width</a></code>, but for the <strong>left</strong> border only.</p>
20+
<p>Like <code class="shorthand"><a href="http://cssreference.io/#border-width">border-width</a></code>, but for the <strong>left</strong> border only.</p>
2121

2222
</div>
2323

property/border-right-color/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2 class="property-name">
1414
<a href="#border-right-color"><span>#</span>border-right-color</a>
1515
</h2>
1616
<div class="property-description">
17-
<p>Like <code class="shorthand"><a href="https://cssreference.io/#border-color">border-color</a></code>, but for the <strong>right</strong> border only.</p>
17+
<p>Like <code class="shorthand"><a href="http://cssreference.io/#border-color">border-color</a></code>, but for the <strong>right</strong> border only.</p>
1818

1919
</div>
2020

0 commit comments

Comments
 (0)