Created
April 19, 2012 14:59
-
-
Save dumaurier/2421492 to your computer and use it in GitHub Desktop.
Adding New Flexbox to Old Flexbox
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
/** | |
* Adding New Flexbox to Old Flexbox | |
*/ | |
a{text-decoration:none; | |
font-family:Helvetica; | |
font-size:18px;} | |
.filter{ | |
display: -webkit-box; | |
display: -moz-box; | |
display: -o-box; | |
display: -ms-box; | |
display: box; | |
-webkit-box-orient:horizontal; | |
-moz-box-orient:horizontal; | |
-o-box-orient:horizontal; | |
-ms-box-orient:horizontal; | |
box-orient:horizontal; | |
border:2px solid #8b8b8b; | |
border:2px solid #1271C7; /*blue*/ | |
-webkit-border-radius:6px; | |
-moz-border-radius:6px; | |
-o-border-radius:6px; | |
border-radius:6px; | |
width: 100%; | |
box-shadow: 4px 4px 4px rgba(0,0,0,.2); | |
transition:all .4s ease-in-out; | |
} | |
.filter a{ | |
/* background:white; */ | |
display:block; | |
color:#1271C7; | |
/* color:black; */ | |
padding:10px; | |
-webkit-box-flex:1; | |
-moz-box-flex:1; | |
-o-box-flex:1; | |
-ms-box-flex:1; | |
box-flex:1; | |
text-align:center; | |
text-shadow: 1px 1px 1px #fff; | |
font-size:1em; | |
transition:all .4s ease-in-out; | |
} | |
#options .option-set a.selected { | |
background-color: #1271C7; | |
/* background-color: #8b8b8b; */ | |
color: white; | |
text-shadow: 1px 1px 1px #000; | |
} | |
#options .option-set a:last-child{ | |
border-radius:0 4px 4px 0; | |
} | |
#options .option-set a:first-child{ | |
border-radius:4px 0px 0px 4px; | |
} | |
.filter a:hover { | |
background-color:rgba(18,113,199,.1); | |
background-color:rgba(0,0,0,.2); | |
color:white; | |
text-shadow: 1px 1px 1px #000; | |
} | |
.option-combo{ | |
width: 100%; | |
} | |
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
<!-- content to be placed inside <body>…</body> --> | |
<div id="options" class="clearfix combo-filters"> | |
<div class="option-combo sel_type"> | |
<nav class="filter option-set floated clearfix " data-flexie-id="1" data-flexie-parent="true"><a href="#filter-any" data-filter="" data-group="selector" class="selected all parentNav" data-flexie-id="2" style="width: 1024px; ">All</a><a href="#filter-selectors" data-group="selector" data-filter=".selector" class="simp parentNav" data-flexie-id="3" style="width: 1024px; ">Basic and Attribute Selectors</a><a href="#filter-classes" data-group="selector" data-filter=".classes" class="pclass parentNav" data-flexie-id="4" style="width: 1024px; ">Pseudo-Classes</a><a href="#filter-element" data-group="selector" data-filter=".element" class="pelement parentNav" data-flexie-id="5" style="width: 1024px; ">Pseudo-Elements</a><a href="#filter-combinators" data-group="selector" data-filter=".combinator" class="combi parentNav" data-flexie-id="6" style="width: 1024px; ">Combinators</a></nav> | |
</div> | |
<div class="option-combo simple_attribute" id="simple_attributes" style="display: none; "> | |
<nav class="filter option-set floated clearfix " data-flexie-id="7" data-flexie-parent="true"><a href="#filter" data-filter="" data-group="basic-selectors" class="selected childNav" data-flexie-id="8" style="">any</a><a href="#filter" data-group="basic-selectors" data-filter=".universal" data-flexie-id="9" style="">universal</a><a href="#filter" data-group="basic-selectors" data-filter=".type" data-flexie-id="10" style="">type</a><a href="#filter" data-group="basic-selectors" data-filter=".attribute" data-flexie-id="11" style="">attribute</a><a href="#filter" data-group="basic-selectors" data-filter=".class" data-flexie-id="12" style="">class</a><a href="#filter" data-group="basic-selectors" data-filter=".id" data-flexie-id="13" style="">id</a></nav> | |
</div> | |
<div class="option-combo simple_attribute" id="pseudo_class" style="display: none; "> | |
<nav class="filter option-set floated clearfix " data-flexie-id="14" data-flexie-parent="true"><a href="#filter-any" data-filter="" data-group="pseudo-classes" class="selected childNav" data-flexie-id="15" style="">any</a><a href="#filter" data-group="pseudo-classes" data-filter=".str_pc" data-flexie-id="16" style="">structural</a><a href="#filter" data-group="pseudo-classes" data-filter=".dynamic_pc" data-flexie-id="17" style="">dynamic</a><a href="#filter" data-group="pseudo-classes" data-filter=".target_pc" data-flexie-id="18" style="">target</a><a href="#filter" data-group="pseudo-classes" data-filter=".lang_pc" data-flexie-id="19" style="">:lang()</a><a href="#filter" data-group="pseudo-classes" data-filter=".ui_pc" data-flexie-id="20" style="">UI element states</a><a href="#filter" data-group="pseudo-classes" data-filter=".neg_pc" data-flexie-id="21" style="">negation</a></nav> | |
</div> | |
</div> |
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":"","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment