Created
June 29, 2012 13:59
-
-
Save agehrke/3018104 to your computer and use it in GitHub Desktop.
Responsive CSS for dr.dk/nyheder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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