Skip to content

Commit

Permalink
new style for tags. Tags no longer automated and rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
Divya Manian committed Jan 21, 2012
1 parent c779697 commit b42fca6
Show file tree
Hide file tree
Showing 7 changed files with 281 additions and 179 deletions.
201 changes: 136 additions & 65 deletions css/style.css

Large diffs are not rendered by default.

58 changes: 21 additions & 37 deletions index.html
Expand Up @@ -22,31 +22,15 @@ <h2>
<input id=livesearch class=search name=livesearch placeholder='type to filter' type='search' value='' autofocus
/>
<a href="/" id=searchurl>link to this search ›</a>
<p class=featuretags>
Explore features:
<a href="./#showall">all</a>

<a href="./#fallback">fallback</a>

<a href="./#polyfill">polyfill</a>

<a href="./#prefixes">prefixes</a>

<a href="./#gtie7">gtie7</a>

<a href="./#gtie8">gtie8</a>

<a href="./#noie">noie</a>

<a href="./#nooldmobile">nooldmobile</a>

<a href="./#gtie9">gtie9</a>

<a href="./#nomobile">nomobile</a>

<a href="./#gtie6">gtie6</a>

</p>
<div class="explore-features">
<h2><b>Explore</b> features</h2>
<ul>
<li>supported by <a href="#gtie9">IE9+</a> <a href="#gtie8">IE8+</a> <a href="#gtie7">IE7+</a> <a href="#gtie6">IE6+</a> <a href="#noie">no IE</a> </li>
<li>not supported by <a href="#nomobile">mobile devices</a> <a href="#nooldmobile">older mobile devices</a></li>
<li>requiring <a href="#prefixes">prefixes</a><a href="#polyfill">polyfill</a><a href="#fallback">fallback</a></li>
<li> <a href="./#showall">all features</a></li>
</ul>
</div>
</div>
</header>
<div id=main role=main>
Expand All @@ -63,7 +47,7 @@ <h2 class='name'>
</h2>
</header>
<div class="more">
<div class='recco'><p>CSS Animations are still in a flux. The Working Group has decided to provide a universal animation spec that would work across CSS, SVG and HTML. For now, use animations for providing additional glamour and use feature detection to provide alternative experience on browsers that do not support this feature for critical animations.</p></div>
<div class='recco'><p>CSS Animations are still in a flux. The Working Group has <a href="http://www.w3.org/2012/01/13-svg-minutes.html#action02">decided to provide</a> a universal animation spec that would work across CSS, SVG and HTML. For now, use animations for providing additional glamour and use feature detection to provide alternative experience on browsers that do not support this feature for critical animations.</p></div>
<div class='polyfills'></div>
<a class="updateurl" href=https://github.com/h5bp/html5please/blob/master/posts/animations.md>Edit info on
animations</a>
Expand Down Expand Up @@ -134,7 +118,7 @@ <h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>

box-reflection
<a href="http://caniuse.com/box-reflection">box-reflection</a>

</h2>
</header>
Expand Down Expand Up @@ -458,7 +442,7 @@ <h3 class="status use">use <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>

font-feature-settings
<a href="http://caniuse.com/font-feature-settings">font-feature-settings</a>

</h2>
</header>
Expand Down Expand Up @@ -613,7 +597,7 @@ <h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>

match-media
<a href="http://caniuse.com/match-media">match-media</a>

</h2>
</header>
Expand Down Expand Up @@ -746,7 +730,7 @@ <h3 class="status use">use <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind html">html</h4>
<h2 class='name'>

ol-reversed
<a href="http://caniuse.com/ol-reversed">ol-reversed</a>

</h2>
</header>
Expand All @@ -766,7 +750,7 @@ <h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>

paged-media
<a href="http://caniuse.com/paged-media">paged-media</a>

</h2>
</header>
Expand Down Expand Up @@ -899,7 +883,7 @@ <h3 class="status avoid">avoid <i></i> </h3>
<h4 class="kind css">css</h4>
<h2 class='name'>

scoped-css
<a href="http://caniuse.com/scoped-css">scoped-css</a>

</h2>
</header>
Expand Down Expand Up @@ -1109,9 +1093,9 @@ <h2 class='name'>
<footer class="tags">fallback</footer>
</article>

<article class="none">
<article class="polyfill">
<header title="expand">
<h3 class="status avoid">avoid <i></i> </h3>
<h3 class="status caution">caution <i>with <b class=polyfill>polyfill</b></i> </h3>
<h4 class="kind api">api</h4>
<h2 class='name'>

Expand All @@ -1120,12 +1104,12 @@ <h2 class='name'>
</h2>
</header>
<div class="more">
<div class='recco'><p>While polyfills exist for web-sockets, browser support is not as widespread to recommend usage. If you like playing with fire, go ahead and use <a href="https://github.com/sockjs/sockjs-client">sockJS</a>,<a href="http://socket.io/">socket.io</a>, <a href="https://github.com/gimite/web-socket-js/">web-socket.js</a></p></div>
<div class='polyfills'></div>
<div class='recco'><p>Making your app real-time is a huge boost and <a href="http://socket.io/">Socket.io</a> helps with downlevel transports for browsers lacking native websocket support (and supports IE6+). However be prepared to tune your AJAX polling or Comet in order to meet the needs of your app.</p></div>
<div class='polyfills'><b>Recommended Polyfills: </b><p><a href="http://socket.io/">Socket.io</a></p></div>
<a class="updateurl" href=https://github.com/h5bp/html5please/blob/master/posts/websockets.md>Edit info on
websockets</a>
</div>
<footer class="tags">none</footer>
<footer class="tags">polyfill</footer>
</article>

<article class="gtie7 polyfill">
Expand Down
2 changes: 1 addition & 1 deletion js/script.js
Expand Up @@ -62,7 +62,7 @@ for(var i = 0; i < count; i++) {
};
}

var clicktags = document.querySelectorAll('.featuretags a');
var clicktags = document.querySelectorAll('.explore-features a');

[].map.call(clicktags, function(tag) {
tag.onclick = function(e) {
Expand Down
3 changes: 2 additions & 1 deletion lib/index.js
Expand Up @@ -13,7 +13,8 @@ var markup = new app.Markup({ collection: features });

// Reset is triggered whenever fetch happens
features.bind("reset", function() {
markup.updateurls();
//markup.updateurls();
markup.render();
});

// Kick off
Expand Down
29 changes: 29 additions & 0 deletions sass/_extends.scss
Expand Up @@ -7,3 +7,32 @@
.display-inline { display: inline; }

.reset-margin { margin: 0; }

.reset-list {
margin: 0; padding: 0;
list-style: none;

li {
margin: 0; padding: 0;
}
}

@mixin apply-status-style($color) {
background: $color;
box-shadow: -4px 0px 4px darken($color, 5%) inset;
border-right-color: darken($color, 12%);

&:before{
@include background(linear-gradient(34deg, transparentize($color, 1), transparentize($color, 1) 50%, darken($color, 5%) 53%, $color 56%));
}

&:after {
@include background(linear-gradient(-34deg, transparentize($color, 1), transparentize($color, 1) 50%, darken($color, 5%) 53%, $color 56%));
}
}

@mixin secondary-title {
font-size: 2em;
line-height: 1;
font-family: $index-font-family
}

0 comments on commit b42fca6

Please sign in to comment.