Skip to content

Instantly share code, notes, and snippets.

@agehrke
Created June 29, 2012 13:59
Show Gist options
  • Save agehrke/3018104 to your computer and use it in GitHub Desktop.
Save agehrke/3018104 to your computer and use it in GitHub Desktop.
Responsive CSS for dr.dk/nyheder
@media all and (max-width: 920px) {
.site-wrapper {
width: auto;
}
/* Footer */
#globalfooter > div, #globalfooter .disclaimer-section div {
width: auto;
}
/* Header */
#globalnavigation > div, #globalnavigation ul li.active ul {
width: auto;
min-width: 0;
}
#globalnavigation form {
}
}
@media all and (max-width: 400px) {
/* Stop floating columns */
.dr-page-article.row .span-8 {
width: auto;
float: none;
}
.dr-page-article.row .span-4 {
width: auto;
float: none;
}
/* Fix top nav */
.section-themes ul {
padding: 0;
}
.section-themes h2 {
position: static;
}
.section-themes > .dr-link-readmore {
color: #000;
top: 8px;
}
}​
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment