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 (not print, braille, embossed, speech, tty) and (min-width: 30em) { | |
/* styles here */ | |
} |
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 (min-width: 30em) { | |
/* styles here */ | |
} |
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 screen and (min-width: 30em) { | |
/* styles here */ | |
} |
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
<link rel="stylesheet" href="basic.css"> | |
<link rel="stylesheet" media="not print" href="mq.css"> |
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
<body> | |
<h1>Media Query Tests</h1> | |
<p class="p0"></p> | |
<p class="p1"></p> | |
<p class="p2"></p> | |
<p class="p3"></p> |
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
/* this is a SCSS file which aggregates the necessary components for the | |
medium layout ONLY if JavaScript is enabled */ | |
.js { | |
@import "reset"; | |
@import "small"; | |
@import "medium"; | |
} |
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
<html class="no-mediaquery no-js"> | |
<head> | |
<script src="/js/media-query-check.js"> | |
<link rel="stylesheet" type="text/css" href="css/styles.css"> | |
</head> | |
</html> |
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
/* this is a SCSS file which aggregates the necessary components for the | |
original "desktop" design */ | |
@import "reset"; | |
@import "grid"; | |
@import "main"; |
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
<html> | |
<head> | |
<!-- always include the small layout --> | |
<!-- base-small.css has smallest styles at top and medium styles behind a media query at bottom --> | |
<link rel="stylesheet" type="text/css" href="css/base-small.css"> | |
<!-- if the viewport width is >= 980 px, serve the original styles --> | |
<link media="min-width: 980px" rel="stylesheet" type="text/css" href="css/base-original.css"> |
NewerOlder