Last active
August 29, 2015 14:24
-
-
Save kevinmarks/4ac1d674ff859989cfce to your computer and use it in GitHub Desktop.
dl to flex tabs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* dl to flex tabs | |
*/ | |
dl {display:flex; flex-wrap: wrap; justify-content: space-around; align-items:center;} | |
dt {order:1; flex-grow:1; } | |
dt:first-child { background:yellow;} | |
dd {order:2; width:100%; flex-basis:auto; background:aliceblue;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dl> | |
<dt>Original HTML</dt> | |
<dd><pre class="prettyprint lang-html linenums original_html selected"><div> | |
<a href="http://www.bbc.co.uk/programmes/b006qykl">In Our Time</a>, | |
<a href="http://www.bbc.co.uk/programmes/b03ggc19">Ordinary Language Philosophy</a>, episode 604, | |
broadcast on BBC Radio 4 at 09:00, 7th of November 2013, available online from 09:45 on the same day. | |
</div></pre> | |
</dd> | |
<dt>Microformats 2</dt> | |
<dd><pre class="prettyprint lang-html linenums microformats "> | |
<div class="h-schema-RadioSeries"> | |
<a class="p-name" href="http://www.bbc.co.uk/programmes/b006qykl">In Our Time</a>, | |
<div class="p-schema-episode h-schema-RadioEpisode"> | |
<a class="p-name" href="http://www.bbc.co.uk/programmes/b03ggc19">Ordinary Language Philosophy</a>, | |
episode <span class="p-schema-position">604</span>, | |
broadcast on | |
<span class="p-schema-publication h-schema-BroadcastEvent"> | |
<a class="p-schema-publishedOn h-schema-BroadcastService" href="http://bbc.co.uk/radio4">BBC Radio 4</a> | |
at <time class="dt-schema-startDate" datetime="2013-11-07T09:00+0100">09:00, 7th of November 2013</time> | |
</span>, available online from | |
<span class="p-schema-publication h-schema-OnDemandEvent"> | |
<time class="dt-schema-startDate" datetime="2013-11-07T09:45+0100">09:45 on the same day</time> | |
</span>. | |
</div> | |
</div></pre> | |
</dd> | |
<dt>Microformats parsed</dt> | |
<dd><pre class="prettyprint lang-html linenums microformats-parsed ">{ "items": [{ "type": ["h-schema-RadioSeries"], "properties": { "name": ["In Our Time"], "schema-episode": [{ "value": "Ordinary Language Philosophy", "type": ["h-schema-RadioEpisode"], "properties": { "name": ["Ordinary Language Philosophy"], "schema-position": ["604"], "schema-publication": [{ "value": "BBC Radio 4\n at 09:00, 7th of November 2013", "type": ["h-schema-BroadcastEvent"], "properties": { "schema-publishedOn": [{ "value": "BBC Radio 4", "type": ["h-schema-BroadcastService"], "properties": { "name": ["BBC Radio 4"], "url": ["http://bbc.co.uk/radio4"] } }], "schema-startDate": ["2013-11-07T09:00+0100"], "name": ["BBC Radio 4\n at 09:00, 7th of November 2013"] } }, { "value": "09:45 on the same day", "type": ["h-schema-OnDemandEvent"], "properties": { "schema-startDate": ["2013-11-07T09:45+0100"], "name": ["09:45 on the same day"] } }], "url": ["http://www.bbc.co.uk/programmes/b03ggc19"] } }], "url": ["http://www.bbc.co.uk/programmes/b006qykl"] } }], "rels": {}, "rel-urls": {}}</pre> | |
</dd> | |
<dt>Microdata</dt> | |
<dd><pre class="prettyprint lang-html linenums microdata "><div itemscope itemtype="http://schema.org/RadioSeries"> <a itemprop="url" href="http://www.bbc.co.uk/programmes/b006qykl"> <span itemprop="name">In Our Time</span></a>, <div itemprop="episode" itemscope itemtype="http://schema.org/RadioEpisode"> <a itemprop="url" href="http://www.bbc.co.uk/programmes/b03ggc19"> <span itemprop="name">Ordinary Language Philosophy</span></a>, episode <span itemprop="position">604</span>, broadcast on <div itemprop="publication" itemscope itemtype="http://schema.org/BroadcastEvent"> <div itemprop="publishedOn" itemscope itemtype="http://schema.org/BroadcastService"> <a itemprop="url" href="http://www.bbc.co.uk/radio4"><span itemprop="name">BBC Radio 4</span></a> </div> at <span itemprop="startDate" content="2013-11-07T09:00:00+01:00">09:00, 7th of November 2013</span> </div>, available online from <div itemprop="publication" itemscope itemtype="http://schema.org/OnDemandEvent"> <span itemprop="startDate" content="2013-11-07T09:45:00+01:00">09:45 on the same day</span>. </div> </div></div></pre></dd> | |
<dt>RDFa</dt> | |
<dt>Json-LD</dt> | |
</dl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// alert('Hello world!'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"view":"split","fontsize":"100","seethrough":"1","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment