Created
January 21, 2013 17:08
-
-
Save marek-saji/4587513 to your computer and use it in GitHub Desktop.
Using :not as @supports.
This file contains hidden or 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
/** | |
* Using :not as @supports. | |
*/ | |
article | |
{ | |
background-color: #7e7; | |
font-family: Droid Sans, Helvetica, Arial, sans; | |
} | |
article ul | |
{ | |
border: black solid thin; | |
margin: 1em 1.5em; | |
list-style: none; | |
} | |
/* middle elements */ | |
article ul:not(:first-child):not(:last-child) | |
{ | |
border-width: 0 thin; | |
margin-top: 0; | |
margin-bottom: 0; | |
} | |
/* first element */ | |
article ul:first-child:not(:last-child) | |
{ | |
border-width: thin thin 0 thin; | |
margin-bottom: 0; | |
} | |
/* last element */ | |
article ul:not(:first-child):last-child | |
{ | |
border-width: 0 thin thin thin; | |
margin-top: 0; | |
} |
This file contains hidden or 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
<article> | |
<ul> | |
<li>A | |
<li>B | |
</ul> | |
<ul> | |
<li>A | |
<li>B | |
</ul> | |
<ul> | |
<li>A | |
<li>B | |
</ul> | |
</article> | |
<article> | |
<ul> | |
<li>A | |
<li>B | |
</ul> | |
<ul> | |
<li>A | |
<li>B | |
</ul> | |
</article> | |
<article> | |
<ul> | |
<li>A | |
<li>B | |
</ul> | |
</article> |
This file contains hidden or 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 hidden or 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