Skip to content

Instantly share code, notes, and snippets.

@itsravenous
Last active January 2, 2016 14:59
Show Gist options
  • Save itsravenous/8320654 to your computer and use it in GitHub Desktop.
Save itsravenous/8320654 to your computer and use it in GitHub Desktop.
Psuedo-elements breaking elementQuery
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="test.css" type="text/css" />
</head>
<body>
<ul class="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Contact</a></li>
</ul>
</body>
</html>
.menu {
li {
display: block;
}
&[min-width~="600px"] {
li {
display: inline-block;
&:after {
content: '|';
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment