Advertisement
grappler

mediaquery style.css

Mar 10th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 4.65 KB | None | 0 0
  1. /* =Media Print
  2.     If you're working on a Child Theme, make sure that all
  3.     media queries are included in your style.css
  4. -------------------------------------------------------------- */
  5. @media print {
  6.  
  7.     h1 {
  8.         page-break-before: always;
  9.     }
  10.  
  11.     h1,  h2,  h3,  h4,  h5,  h6 {
  12.         page-break-after: avoid;
  13.     }
  14.  
  15.     ul,  ol,  dl {
  16.         page-break-before: avoid;
  17.     }
  18. }
  19.  
  20. /*  Retina (HiDPI) Display
  21.     http://www.quirksmode.org/blog/archives/2012/06/devicepixelrati.html
  22. -------------------------------------------------------------- */
  23. @media
  24.     only screen and (-moz-min-device-pixel-ratio:1.5),
  25.     only screen and (-o-min-device-pixel-ratio:3/2),
  26.     only screen and (-webkit-min-device-pixel-ratio:1.5),
  27.     only screen and (min-device-pixel-ratio:1.5) {
  28.    
  29.     body {}
  30. }
  31.  
  32. /* =Responsive (Mobile) Design
  33. -------------------------------------------------------------- */
  34. @media screen and (max-width: 980px) {
  35.  
  36.     body {}
  37.    
  38.     .grid,
  39.     .grid-right {
  40.         float: none;
  41.     }
  42.    
  43.     #featured-image .fluid-width-video-wrapper {
  44.         margin: 20px 0 0 0;
  45.     }
  46.    
  47.     .home #widgets {
  48.         margin-top: 40px;
  49.     }
  50.    
  51.     .top-widget,
  52.     .home .top-widget {
  53.         margin-top: 0 !important;
  54.     }
  55.    
  56.     .hide-980 {
  57.         display: none;
  58.     }
  59.    
  60.     .show-980 {
  61.         display: block;
  62.     }
  63.    
  64. }
  65.  
  66. @media screen and (max-width: 650px) {
  67.  
  68.     body {}
  69.  
  70.     #logo {
  71.         float: none;
  72.         margin: 0;
  73.         text-align: center;
  74.     }
  75.  
  76.     .grid,
  77.     .grid-right {
  78.         float: none;
  79.     }
  80.  
  81.     #featured-image .fluid-width-video-wrapper {
  82.         margin: 20px 0 0 0;
  83.     }
  84.    
  85.     .top-widget {
  86.         float: none;
  87.         margin: 0 auto 10px auto;
  88.         position: relative;
  89.         text-align: center;
  90.         width: auto;
  91.     }
  92.    
  93.     .top-widget .widget-title {
  94.         text-align: center;
  95.     }
  96.    
  97.     .js .menu,
  98.     .js .sub-header-menu {
  99.         display: none;
  100.     }
  101.    
  102.     .top-menu,
  103.     .footer-menu li {
  104.         float: none;
  105.         font-size: 11px;
  106.         text-align: center;
  107.     }
  108.    
  109.     .tinynav {
  110.         display: block;
  111.     }
  112.    
  113.     .sb-holder {
  114.         display: block;
  115.     }
  116.    
  117.     #author-meta {
  118.         padding: 20px;
  119.     }
  120.    
  121.     .hide-650 {
  122.         display: none;
  123.     }
  124.    
  125.     .show-650 {
  126.         display: block;
  127.     }
  128.    
  129.     #footer {
  130.         text-align: center;
  131.     }
  132.  
  133.     #footer .social-icons {
  134.         padding-bottom: 10px;
  135.         text-align: center;
  136.     }
  137. }
  138.  
  139. @media screen and (max-width: 480px) {
  140.  
  141.     body {}
  142.  
  143.     #logo {
  144.         float: none;
  145.         text-align: center;
  146.     }
  147.  
  148.     .grid,
  149.     .grid-right {
  150.         float: none;
  151.     }
  152.    
  153.     #featured-image .fluid-width-video-wrapper {
  154.         margin: 20px 0 0 0;
  155.     }
  156.    
  157.     .featured-title {
  158.         font-size: 40px;
  159.         padding: 40px 20px 0 20px
  160.     }
  161.    
  162.     .featured-subtitle {
  163.         font-size: 24px;
  164.     }
  165.    
  166.     .navigation .next,
  167.     .navigation .previous {
  168.         display: block;
  169.         margin: 0 auto;
  170.         text-align: center;
  171.     }
  172.    
  173.     .menu ul,
  174.     .menu li,
  175.     .top-menu,
  176.     .footer-menu li,
  177.     .sub-header-menu li {
  178.         float: none;
  179.         text-align: center;
  180.         text-rendering: optimizeSpeed;
  181.     }
  182.    
  183.     .hide-480 {
  184.         display: none;
  185.     }
  186.    
  187.     .show-480 {
  188.         display: block;
  189.     }
  190.    
  191.     #footer {
  192.         text-align: center;
  193.     }
  194.  
  195.     #footer .social-icons {
  196.         text-align: center;
  197.     }
  198. }
  199.  
  200. @media screen and (max-width: 320px) {
  201.    
  202.     body {}
  203.    
  204.     #featured p {
  205.         font-size: 12px;
  206.         line-height: 1.5em;
  207.     }
  208.  
  209.     .featured-title {
  210.         font-size: 35px;
  211.     }
  212.    
  213.     .featured-subtitle {
  214.         font-size: 15px;
  215.     }
  216.  
  217.     .call-to-action a.button {
  218.         font-size: 14px;
  219.         padding: 7px 17px;
  220.     }
  221.  
  222.     .hide-320 {
  223.         display: none;
  224.     }
  225.    
  226.     .show-320 {
  227.         display: block;
  228.     }
  229. }
  230.  
  231. @media screen and (max-width: 240px) {
  232.    
  233.     body {}
  234.    
  235.     #featured p {
  236.         font-size: 11px;
  237.         line-height: 1.5em;
  238.     }
  239.  
  240.     .featured-title {
  241.         font-size: 20px;
  242.     }
  243.    
  244.     .featured-subtitle {
  245.         font-size: 11px;
  246.     }
  247.  
  248.     .call-to-action a.button {
  249.         font-size: 12px;
  250.         padding: 5px 15px;
  251.     }
  252.    
  253.     .top-widget area,
  254.     .top-widget select,
  255.     .top-widget textarea,
  256.     .top-widget input[type="text"],
  257.     .top-widget input[type="password"] {
  258.         width: 75%;
  259.     }
  260.    
  261.     .widget-title,
  262.     .widget-title-home h3 {
  263.         font-size: 14px;
  264.         height: 13px;
  265.         line-height: 13px;
  266.         text-align: left;
  267.     }
  268.    
  269.     .hide-240 {
  270.         display: none;
  271.     }
  272.    
  273.     .show-240 {
  274.         display: block;
  275.     }
  276. }
  277.  
  278. /*The last 29 days of the month are the hardest."- Nikola Tesla*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement