Skip to content

Instantly share code, notes, and snippets.

@aprohl5
Created September 5, 2014 16:56
Show Gist options
  • Save aprohl5/ceb42e4d117544dd77c9 to your computer and use it in GitHub Desktop.
Save aprohl5/ceb42e4d117544dd77c9 to your computer and use it in GitHub Desktop.
this an ampersand question
.front {
.header-container {
background-image: url("../images/screw.jpg");
height:400px;
background-attachment: fixed;
background-position: 0% 0%;
background-repeat: no-repeat;
background-size: cover;
@include breakpoint(1px 499px) {
height:200px;
}
.header-wrapper {
@include breakpoint(1px 499px) {
position: fixed;
width: 100%;
top: 45px;
}
.navbar-horizontal & { //THIS IS THE LINE I AM TALKING ABOUT ANNE
top:45px;
}
@include breakpoint($small) {
position: relative;
top: 140px;
}
...
That outputs: .navbar-horizontal .front ....
My hope is that I could get it to output: .front.navbar-horizontal or .navbar-horizontal.front
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment