Skip to content

Commit 23593e7

Browse files
committed
publish: Docs: add a better exemple for custom selectors
generated from commit 9fd680b4664de4a7a52f859476d637d1ea2ed535
1 parent e3bcc1f commit 23593e7

File tree

9 files changed

+537
-106
lines changed

9 files changed

+537
-106
lines changed

credits/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
</linearGradient>
162162
<path fill="url(#SVGID_12_)" d="M255.475,13.569l-4.391,21.613h-0.932l4.373-21.613H255.475z"/>
163163
</g>
164-
</svg></span><span class="cssnext-Header-version">1.8.0</span></a><a href="/features/" class="cssnext-Header-nav-item">Features</a><a href="/setup/" class="cssnext-Header-nav-item">Setup</a><a href="/usage/" class="cssnext-Header-nav-item">Usage</a><a href="/playground/" class="cssnext-Header-nav-item">Playground</a></span></div><div class="r-Grid-cell r-minM--2of6"><div class="cssnext-Header-nav"><a href="https://gitter.im/cssnext/cssnext" class="cssnext-Header-nav-item">Support</a><a href="https://github.com/cssnext/cssnext" title="GitHub" class="cssnext-Header-nav-item">GitHub</a><a href="https://twitter.com/cssnext" title="Twitter" class="cssnext-Header-nav-item">Twitter</a></div></div></div></header><header class="cssnext-Jumbotron cssnext-Jumbotron--default cssnext-Jumbotron--credits-html"><div class="r-Grid"><div class="r-Grid-cell"><h1 class="cssnext-Jumbotron-title cssnext-Light">Credits</h1></div></div></header><section class="r-Grid cssnext-Section"><div class="r-Grid-cell js-markdownIt-TOCOriginalContainer"><ul>
164+
</svg></span><span class="cssnext-Header-version">1.8.1</span></a><a href="/features/" class="cssnext-Header-nav-item">Features</a><a href="/setup/" class="cssnext-Header-nav-item">Setup</a><a href="/usage/" class="cssnext-Header-nav-item">Usage</a><a href="/playground/" class="cssnext-Header-nav-item">Playground</a></span></div><div class="r-Grid-cell r-minM--2of6"><div class="cssnext-Header-nav"><a href="https://gitter.im/cssnext/cssnext" class="cssnext-Header-nav-item">Support</a><a href="https://github.com/cssnext/cssnext" title="GitHub" class="cssnext-Header-nav-item">GitHub</a><a href="https://twitter.com/cssnext" title="Twitter" class="cssnext-Header-nav-item">Twitter</a></div></div></div></header><header class="cssnext-Jumbotron cssnext-Jumbotron--default cssnext-Jumbotron--credits-html"><div class="r-Grid"><div class="r-Grid-cell"><h1 class="cssnext-Jumbotron-title cssnext-Light">Credits</h1></div></div></header><section class="r-Grid cssnext-Section"><div class="r-Grid-cell js-markdownIt-TOCOriginalContainer"><ul>
165165
<li><a href="https://www.flickr.com/photos/jasoncipriani/11866004734">delorean back</a></li>
166166
<li><a href="https://www.flickr.com/photos/wizzer/9295055565">delorean with blue trails</a></li>
167167
<li><a href="https://www.flickr.com/photos/brianneudorff/10047726604">bttf legos</a></li>
@@ -330,5 +330,5 @@
330330
</linearGradient>
331331
<path fill="url(#SVGID_12_)" d="M255.475,13.569l-4.391,21.613h-0.932l4.373-21.613H255.475z"/>
332332
</g>
333-
</svg></span> is brought to you by <a href="https://twitter.com/MoOx">@MoOx</a> &amp; <a href="https://github.com/cssnext/cssnext/graphs/contributors">some other contributors</a>.</p><small><a href="/it-s-cssnext-not-CSSNext">Note: it&#x27;s cssnext, not CSSNext</a><span style="opacity:.4;margin-left:1rem;"><a href="/credits">Credits</a> | <a href="https://github.com/cssnext/cssnext/edit/master/docs/content/credits.md">Edit this page</a></span></small></footer><script src="/index.js?66b1ff6ea5bc40c47f8c"></script><script>
333+
</svg></span> is brought to you by <a href="https://twitter.com/MoOx">@MoOx</a> &amp; <a href="https://github.com/cssnext/cssnext/graphs/contributors">some other contributors</a>.</p><small><a href="/it-s-cssnext-not-CSSNext">Note: it&#x27;s cssnext, not CSSNext</a><span style="opacity:.4;margin-left:1rem;"><a href="/credits">Credits</a> | <a href="https://github.com/cssnext/cssnext/edit/master/docs/content/credits.md">Edit this page</a></span></small></footer><script src="/index.js?b9d8cee5717168afa1aa"></script><script>
334334
!function(c,s,S,n,e,x,t){c.GoogleAnalyticsObject=S;c[S]||(c[S]=function(){(c[S].q=c[S].q||[]).push(arguments)});c[S].l=+new Date;x=s.createElement(n);t=s.getElementsByTagName(n)[0];x.src=e;t.parentNode.insertBefore(x,t)}(window,document,'ga','script','//www.google-analytics.com/analytics.js');ga('create','UA-55403963-1','auto');ga('send','pageview');</script></body></html>

faq/index.html

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

features/index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
</linearGradient>
162162
<path fill="url(#SVGID_12_)" d="M255.475,13.569l-4.391,21.613h-0.932l4.373-21.613H255.475z"/>
163163
</g>
164-
</svg></span><span class="cssnext-Header-version">1.8.0</span></a><a href="/features/" class="cssnext-Header-nav-item">Features</a><a href="/setup/" class="cssnext-Header-nav-item">Setup</a><a href="/usage/" class="cssnext-Header-nav-item">Usage</a><a href="/playground/" class="cssnext-Header-nav-item">Playground</a></span></div><div class="r-Grid-cell r-minM--2of6"><div class="cssnext-Header-nav"><a href="https://gitter.im/cssnext/cssnext" class="cssnext-Header-nav-item">Support</a><a href="https://github.com/cssnext/cssnext" title="GitHub" class="cssnext-Header-nav-item">GitHub</a><a href="https://twitter.com/cssnext" title="Twitter" class="cssnext-Header-nav-item">Twitter</a></div></div></div></header><header class="cssnext-Jumbotron cssnext-Jumbotron--default cssnext-Jumbotron--features-html cssnext-Jumbotron--darkRoad"><div class="r-Grid"><div class="r-Grid-cell"><h1 class="cssnext-Jumbotron-title cssnext-Light">cssnext features</h1><strong class="cssnext-Jumbotron-subtitle cssnext-Light">Discover the future of CSS</strong></div></div></header><section class="r-Grid cssnext-Section"><div class="r-Grid-cell js-markdownIt-TOCOriginalContainer"><p>
164+
</svg></span><span class="cssnext-Header-version">1.8.1</span></a><a href="/features/" class="cssnext-Header-nav-item">Features</a><a href="/setup/" class="cssnext-Header-nav-item">Setup</a><a href="/usage/" class="cssnext-Header-nav-item">Usage</a><a href="/playground/" class="cssnext-Header-nav-item">Playground</a></span></div><div class="r-Grid-cell r-minM--2of6"><div class="cssnext-Header-nav"><a href="https://gitter.im/cssnext/cssnext" class="cssnext-Header-nav-item">Support</a><a href="https://github.com/cssnext/cssnext" title="GitHub" class="cssnext-Header-nav-item">GitHub</a><a href="https://twitter.com/cssnext" title="Twitter" class="cssnext-Header-nav-item">Twitter</a></div></div></div></header><header class="cssnext-Jumbotron cssnext-Jumbotron--default cssnext-Jumbotron--features-html cssnext-Jumbotron--darkRoad"><div class="r-Grid"><div class="r-Grid-cell"><h1 class="cssnext-Jumbotron-title cssnext-Light">cssnext features</h1><strong class="cssnext-Jumbotron-subtitle cssnext-Light">Discover the future of CSS</strong></div></div></header><section class="r-Grid cssnext-Section"><div class="r-Grid-cell js-markdownIt-TOCOriginalContainer"><p>
165165
<ul class="markdownIt-TOC">
166166
<li>
167167
<a href="#automatic-vendor-prefixes">automatic vendor prefixes</a>
@@ -299,12 +299,18 @@ <h2 id="media-queries-ranges"><a class="markdownIt-Anchor" href="#media-queries-
299299
<h2 id="custom-selectors"><a class="markdownIt-Anchor" href="#custom-selectors">#</a> custom selectors</h2>
300300
<p>Alows you to create your own selectors</p>
301301
<pre><code class="language-css"><span class="hljs-at_rule">@<span class="hljs-keyword">custom-selector</span> :--button button, .button</span>;
302+
<span class="hljs-at_rule">@<span class="hljs-keyword">custom-selector</span> :--enter :hover, :focus</span>;
302303

303304
<span class="hljs-pseudo">:--button</span> <span class="hljs-rules">{
304305
<span class="hljs-comment">/* styles for your buttons */</span>
305306
}</span>
306-
<span class="hljs-pseudo">:--button</span><span class="hljs-pseudo">:hover</span> <span class="hljs-rules">{
307-
<span class="hljs-comment">/* hover styles for your button */</span>
307+
<span class="hljs-pseudo">:--button</span><span class="hljs-pseudo">:--enter</span> <span class="hljs-rules">{
308+
<span class="hljs-comment">/*
309+
hover/focus styles for your button
310+
311+
Read more about :enter proposal
312+
http://discourse.specifiction.org/t/a-common-pseudo-class-for-hover-and-focus/877
313+
*/</span>
308314
}</span></code></pre>
309315
<p><a href="http://dev.w3.org/csswg/css-extensions/#custom-selectors">Specification</a>
310316
|
@@ -623,5 +629,5 @@ <h2 id="todo"><a class="markdownIt-Anchor" href="#todo">#</a> @todo</h2>
623629
</linearGradient>
624630
<path fill="url(#SVGID_12_)" d="M255.475,13.569l-4.391,21.613h-0.932l4.373-21.613H255.475z"/>
625631
</g>
626-
</svg></span> is brought to you by <a href="https://twitter.com/MoOx">@MoOx</a> &amp; <a href="https://github.com/cssnext/cssnext/graphs/contributors">some other contributors</a>.</p><small><a href="/it-s-cssnext-not-CSSNext">Note: it&#x27;s cssnext, not CSSNext</a><span style="opacity:.4;margin-left:1rem;"><a href="/credits">Credits</a> | <a href="https://github.com/cssnext/cssnext/edit/master/docs/content/features.md">Edit this page</a></span></small></footer><script src="/index.js?66b1ff6ea5bc40c47f8c"></script><script>
632+
</svg></span> is brought to you by <a href="https://twitter.com/MoOx">@MoOx</a> &amp; <a href="https://github.com/cssnext/cssnext/graphs/contributors">some other contributors</a>.</p><small><a href="/it-s-cssnext-not-CSSNext">Note: it&#x27;s cssnext, not CSSNext</a><span style="opacity:.4;margin-left:1rem;"><a href="/credits">Credits</a> | <a href="https://github.com/cssnext/cssnext/edit/master/docs/content/features.md">Edit this page</a></span></small></footer><script src="/index.js?b9d8cee5717168afa1aa"></script><script>
627633
!function(c,s,S,n,e,x,t){c.GoogleAnalyticsObject=S;c[S]||(c[S]=function(){(c[S].q=c[S].q||[]).push(arguments)});c[S].l=+new Date;x=s.createElement(n);t=s.getElementsByTagName(n)[0];x.src=e;t.parentNode.insertBefore(x,t)}(window,document,'ga','script','//www.google-analytics.com/analytics.js');ga('create','UA-55403963-1','auto');ga('send','pageview');</script></body></html>

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
</linearGradient>
162162
<path fill="url(#SVGID_12_)" d="M255.475,13.569l-4.391,21.613h-0.932l4.373-21.613H255.475z"/>
163163
</g>
164-
</svg></span><span class="cssnext-Header-version">1.8.0</span></a><a href="/features/" class="cssnext-Header-nav-item">Features</a><a href="/setup/" class="cssnext-Header-nav-item">Setup</a><a href="/usage/" class="cssnext-Header-nav-item">Usage</a><a href="/playground/" class="cssnext-Header-nav-item">Playground</a></span></div><div class="r-Grid-cell r-minM--2of6"><div class="cssnext-Header-nav"><a href="https://gitter.im/cssnext/cssnext" class="cssnext-Header-nav-item">Support</a><a href="https://github.com/cssnext/cssnext" title="GitHub" class="cssnext-Header-nav-item">GitHub</a><a href="https://twitter.com/cssnext" title="Twitter" class="cssnext-Header-nav-item">Twitter</a></div></div></div></header><div class=""><div class="cssnext-Jumbotron cssnext-Jumbotron--default cssnext-Center cssnext-Light">
164+
</svg></span><span class="cssnext-Header-version">1.8.1</span></a><a href="/features/" class="cssnext-Header-nav-item">Features</a><a href="/setup/" class="cssnext-Header-nav-item">Setup</a><a href="/usage/" class="cssnext-Header-nav-item">Usage</a><a href="/playground/" class="cssnext-Header-nav-item">Playground</a></span></div><div class="r-Grid-cell r-minM--2of6"><div class="cssnext-Header-nav"><a href="https://gitter.im/cssnext/cssnext" class="cssnext-Header-nav-item">Support</a><a href="https://github.com/cssnext/cssnext" title="GitHub" class="cssnext-Header-nav-item">GitHub</a><a href="https://twitter.com/cssnext" title="Twitter" class="cssnext-Header-nav-item">Twitter</a></div></div></div></header><div class=""><div class="cssnext-Jumbotron cssnext-Jumbotron--default cssnext-Center cssnext-Light">
165165
<section class="r-Grid">
166166
<div class="r-Grid-cell">
167167
<strong class="cssnext-Jumbotron-title">Use tomorrow's CSS syntax, today.</strong>
@@ -560,5 +560,5 @@ <h3 class="cssnext-Section-title">Based on NPM ecosystem</h3>
560560
</linearGradient>
561561
<path fill="url(#SVGID_12_)" d="M255.475,13.569l-4.391,21.613h-0.932l4.373-21.613H255.475z"/>
562562
</g>
563-
</svg></span> is brought to you by <a href="https://twitter.com/MoOx">@MoOx</a> &amp; <a href="https://github.com/cssnext/cssnext/graphs/contributors">some other contributors</a>.</p><small><a href="/it-s-cssnext-not-CSSNext">Note: it&#x27;s cssnext, not CSSNext</a><span style="opacity:.4;margin-left:1rem;"><a href="/credits">Credits</a> | <a href="https://github.com/cssnext/cssnext/edit/master/docs/content/index.md">Edit this page</a></span></small></footer><script src="/index.js?66b1ff6ea5bc40c47f8c"></script><script>
563+
</svg></span> is brought to you by <a href="https://twitter.com/MoOx">@MoOx</a> &amp; <a href="https://github.com/cssnext/cssnext/graphs/contributors">some other contributors</a>.</p><small><a href="/it-s-cssnext-not-CSSNext">Note: it&#x27;s cssnext, not CSSNext</a><span style="opacity:.4;margin-left:1rem;"><a href="/credits">Credits</a> | <a href="https://github.com/cssnext/cssnext/edit/master/docs/content/index.md">Edit this page</a></span></small></footer><script src="/index.js?b9d8cee5717168afa1aa"></script><script>
564564
!function(c,s,S,n,e,x,t){c.GoogleAnalyticsObject=S;c[S]||(c[S]=function(){(c[S].q=c[S].q||[]).push(arguments)});c[S].l=+new Date;x=s.createElement(n);t=s.getElementsByTagName(n)[0];x.src=e;t.parentNode.insertBefore(x,t)}(window,document,'ga','script','//www.google-analytics.com/analytics.js');ga('create','UA-55403963-1','auto');ga('send','pageview');</script></body></html>

it-s-cssnext-not-CSSNext/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
</linearGradient>
162162
<path fill="url(#SVGID_12_)" d="M255.475,13.569l-4.391,21.613h-0.932l4.373-21.613H255.475z"/>
163163
</g>
164-
</svg></span><span class="cssnext-Header-version">1.8.0</span></a><a href="/features/" class="cssnext-Header-nav-item">Features</a><a href="/setup/" class="cssnext-Header-nav-item">Setup</a><a href="/usage/" class="cssnext-Header-nav-item">Usage</a><a href="/playground/" class="cssnext-Header-nav-item">Playground</a></span></div><div class="r-Grid-cell r-minM--2of6"><div class="cssnext-Header-nav"><a href="https://gitter.im/cssnext/cssnext" class="cssnext-Header-nav-item">Support</a><a href="https://github.com/cssnext/cssnext" title="GitHub" class="cssnext-Header-nav-item">GitHub</a><a href="https://twitter.com/cssnext" title="Twitter" class="cssnext-Header-nav-item">Twitter</a></div></div></div></header><header class="cssnext-Jumbotron cssnext-Jumbotron--default cssnext-Jumbotron--it-s-cssnext-not-cssnext-html"><div class="r-Grid"><div class="r-Grid-cell"><h1 class="cssnext-Jumbotron-title cssnext-Light">It&#x27;s cssnext, not CSSNext</h1></div></div></header><section class="r-Grid cssnext-Section"><div class="r-Grid-cell js-markdownIt-TOCOriginalContainer"><h2 id="is-it-cssnext-or-cssnext-or-cssnext"><a class="markdownIt-Anchor" href="#is-it-cssnext-or-cssnext-or-cssnext">#</a> Is it cssnext or CSSNext or CSSnext?</h2>
164+
</svg></span><span class="cssnext-Header-version">1.8.1</span></a><a href="/features/" class="cssnext-Header-nav-item">Features</a><a href="/setup/" class="cssnext-Header-nav-item">Setup</a><a href="/usage/" class="cssnext-Header-nav-item">Usage</a><a href="/playground/" class="cssnext-Header-nav-item">Playground</a></span></div><div class="r-Grid-cell r-minM--2of6"><div class="cssnext-Header-nav"><a href="https://gitter.im/cssnext/cssnext" class="cssnext-Header-nav-item">Support</a><a href="https://github.com/cssnext/cssnext" title="GitHub" class="cssnext-Header-nav-item">GitHub</a><a href="https://twitter.com/cssnext" title="Twitter" class="cssnext-Header-nav-item">Twitter</a></div></div></div></header><header class="cssnext-Jumbotron cssnext-Jumbotron--default cssnext-Jumbotron--it-s-cssnext-not-cssnext-html"><div class="r-Grid"><div class="r-Grid-cell"><h1 class="cssnext-Jumbotron-title cssnext-Light">It&#x27;s cssnext, not CSSNext</h1></div></div></header><section class="r-Grid cssnext-Section"><div class="r-Grid-cell js-markdownIt-TOCOriginalContainer"><h2 id="is-it-cssnext-or-cssnext-or-cssnext"><a class="markdownIt-Anchor" href="#is-it-cssnext-or-cssnext-or-cssnext">#</a> Is it cssnext or CSSNext or CSSnext?</h2>
165165
<p>The official name is <strong>cssnext</strong>, which should never be capitalized, especially not at the start of a sentence, unless it is being displayed in a location that is customarily all-caps (such as the title of man pages).</p>
166166
<h3 id="why"><a class="markdownIt-Anchor" href="#why">#</a> Why ?</h3>
167167
<pre><code class="language-js"><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">nameify</span>(<span class="hljs-params">string</span>) </span>{
@@ -342,5 +342,5 @@ <h3 id="why"><a class="markdownIt-Anchor" href="#why">#</a> Why ?</h3>
342342
</linearGradient>
343343
<path fill="url(#SVGID_12_)" d="M255.475,13.569l-4.391,21.613h-0.932l4.373-21.613H255.475z"/>
344344
</g>
345-
</svg></span> is brought to you by <a href="https://twitter.com/MoOx">@MoOx</a> &amp; <a href="https://github.com/cssnext/cssnext/graphs/contributors">some other contributors</a>.</p><small><a href="/it-s-cssnext-not-CSSNext">Note: it&#x27;s cssnext, not CSSNext</a><span style="opacity:.4;margin-left:1rem;"><a href="/credits">Credits</a> | <a href="https://github.com/cssnext/cssnext/edit/master/docs/content/it-s-cssnext-not-CSSNext.md">Edit this page</a></span></small></footer><script src="/index.js?66b1ff6ea5bc40c47f8c"></script><script>
345+
</svg></span> is brought to you by <a href="https://twitter.com/MoOx">@MoOx</a> &amp; <a href="https://github.com/cssnext/cssnext/graphs/contributors">some other contributors</a>.</p><small><a href="/it-s-cssnext-not-CSSNext">Note: it&#x27;s cssnext, not CSSNext</a><span style="opacity:.4;margin-left:1rem;"><a href="/credits">Credits</a> | <a href="https://github.com/cssnext/cssnext/edit/master/docs/content/it-s-cssnext-not-CSSNext.md">Edit this page</a></span></small></footer><script src="/index.js?b9d8cee5717168afa1aa"></script><script>
346346
!function(c,s,S,n,e,x,t){c.GoogleAnalyticsObject=S;c[S]||(c[S]=function(){(c[S].q=c[S].q||[]).push(arguments)});c[S].l=+new Date;x=s.createElement(n);t=s.getElementsByTagName(n)[0];x.src=e;t.parentNode.insertBefore(x,t)}(window,document,'ga','script','//www.google-analytics.com/analytics.js');ga('create','UA-55403963-1','auto');ga('send','pageview');</script></body></html>

playground.js

Lines changed: 81 additions & 80 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)