Skip to content

Instantly share code, notes, and snippets.

@GregM
Last active August 29, 2015 14:03
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 GregM/4183a4e2a88140f2cc68 to your computer and use it in GitHub Desktop.
Save GregM/4183a4e2a88140f2cc68 to your computer and use it in GitHub Desktop.
uglymediaquery
.hero {
cursor: pointer;
background-repeat: no-repeat;
background-position: center;
background-color: #EBEBE8;
position: relative;
margin: 0 auto 0 auto;
height: 525px;
min-width: 960px;
max-width: 1680px;
overflow: hidden;
}
.anti-hero {
cursor: pointer;
background-repeat: no-repeat;
background-position: center;
background-color: #EBEBE8;
min-width: 960px;
max-width: 1680px;
overflow: hidden;
}
.wishes-it-was-a-hero {
background-color: #EBEBE8;
position: relative;
margin: 0 auto 0 auto;
height: 525px;
min-width: 960px;
max-width: 1680px;
overflow: hidden;
}
@media @viewport-tiny {
.hero {
height: auto;
min-width: inherit;
max-width: none;
width: 100%;
}
.anti-hero {
background-color: blue;
}
.wishes-it-was-a-hero {
max-width: 50px;
}
}
@media @viewport-narrow {
.hero {
height: auto;
min-width: inherit;
max-width: none;
width: 100%;
}
.anti-hero {
background-color: yellow;
}
.wishes-it-was-a-hero {
max-width: 150px;
}
}
@media @viewport-medium {
.hero {
height: 407px;
min-width: 767px;
}
.anti-hero {
background-color: green;
}
.wishes-it-was-a-hero {
max-width: 350px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment