Skip to content

Instantly share code, notes, and snippets.

@skh-
Last active January 3, 2016 01:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skh-/8389205 to your computer and use it in GitHub Desktop.
Save skh-/8389205 to your computer and use it in GitHub Desktop.
/**
* @file: With breaks.
*/
.selector1 {
position: absolute;
padding-left: 2.5rem;
color: $blue;
.selector2 {
position: relative;
left: 0;
width: 2.5rem;
text-align: right;
color: $white;
&:hover {
color: $blue;
}
}
&:after {
content: "";
display: block;
width: 1rem;
height: 1rem;
background: blue;
}
}
/**
* @file: No line breaking.
*/
.selector1 {
position: absolute;
padding-left: 2.5rem;
color: $blue;
.selector2 {
position: relative;
left: 0;
width: 2.5rem;
text-align: right;
color: $white;
&:hover {
color: $blue;
}
}
&:after {
content: "";
display: block;
width: 1rem;
height: 1rem;
background: blue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment