Sha256: 8f0e35159bb0503e1bca80cb99311daf2346d32430f35ccc9da21250a561158f

Contents?: true

Size: 1.93 KB

Versions: 18

Compression:

Stored size: 1.93 KB

Contents

@mixin html5-boilerplate-media {
  @media print {
    @include media-print;
  }

  @media all and (orientation:portrait) {
    @include media-orientation-portrait;
  }

  @media all and (orientation:landscape) {
    @include media-orientation-landscape;
  }

  @media screen and (max-device-width: 480px) {
    @include media-mobile;
  }
}

//
// Print styles
// Inlined to avoid required HTTP connection www.phpied.com/delay-loading-your-print-css/

@mixin media-print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important;
  -ms-filter: none !important; } // Black prints faster: sanbeiji.com/archives/953
  a, a:visited { color: #444 !important; text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  // Don't show links for images, or javascript/internal links
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } // css-discuss.incutio.com/wiki/Printing_Tables
  tr, img { page-break-inside: avoid; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3{ page-break-after: avoid; }
}


//
// Media queries for responsive design
// These follow after primary styles so they will successfully override.
//

@mixin media-orientation-portrait {
  // Style adjustments for portrait mode goes here
}

@mixin media-orientation-landscape {
  // Style adjustments for landscape mode goes here
}

// Grade-A Mobile Browsers (Opera Mobile, Mobile Safari, Android Chrome)
// consider this: www.cloudfour.com/css-media-query-for-mobile-is-fools-gold
@mixin media-mobile($optimize: true) {
  // j.mp/textsizeadjust
  @if not $optimize {
    // Don't allow iOS and WinMobile to mobile-optimize text
    html { -webkit-text-size-adjust: none; -ms-text-size-adjust: none; }
  }
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
playmo-0.1.10 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.1.9 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.1.8 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.1.7 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.1.6 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.1.5 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.1.4 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.1.3 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.1.2 recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.1.1 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.1.0 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.0.18 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.0.17 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.0.14 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.0.13 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.0.12 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.0.11 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss
playmo-0.0.10 lib/playmo/recipes/templates/assets_recipe/stylesheets/partials/html5-boilerplate/_media.css.scss