CodePen

HTML

            
              %h1 Font-face at top. Font-family changed in @media > body

%p.alert Use this! Some browsers will only request the remote font IF it's being called. Hooray smart browsers.

%p Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.  

%table
  %thead
    %tr
      %th Browser
      %th OS
      %th Status
  %tr
    %td Chrome
    %td Mac
    %td PASS
  %tr
    %td Safari
    %td Mac
    %td PASS
  %tr
    %td Firefox
    %td Mac
    %td PASS??IDK
  %tr
    %td Opera
    %td Mac
    %td PASS
  %tr
    %td Mobile Safari
    %td iOS
    %td PASS

%pre
  = preserve do
    :escaped
      @font-face {
        font-family: 'Dr Sugiyama';
        font-style: normal;
        font-weight: 400;
        src: local('Dr Sugiyama Regular'), local('DrSugiyama-Regular'),
             url(http://google.com/fonts/drsugiyama/...si6Gc.woff) format('woff');
      }
      
      body {
        font-family: sans-serif;
          
        @media (min-width: 1000px) {
          font-family: 'Dr Sugiyama', sans-serif;
        }
          
      }

%p Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.  
            
          
!

↑ Insert the most common viewport meta tag

CSS

            
              @font-face {
  font-family: 'Dr Sugiyama';
  font-style: normal;
  font-weight: 400;
  src: local('Dr Sugiyama Regular'), local('DrSugiyama-Regular'), url(http://themes.googleusercontent.com/static/fonts/drsugiyama/v2/rq_8251Ifx6dE1Mq7bUM6brIa-7acMAeDBVuclsi6Gc.woff) format('woff');
}

body {
  // Demoing with a font that NO ONE ON EARTH has installed.
  font-family: sans-serif;
    
  @media (min-width: 1000px) {
    font-family: 'Dr Sugiyama', sans-serif;
  }
    
}


body {
  padding: 2em 3em;
}

table {
  font-family: sans-serif;
  width: 100%;
  
  td,th {
     padding: 0.5em;
    text-align: center;
    &:first-of-type {
        text-align: left;
      }
  }
  
  th {
    background-color:#eee;
  }
}

.alert { 
  background: #FCF8E3;
  color: #C09853;
  padding: 0.5em;
  border-radius: 4px;
}

pre {
  background: #eee;
  padding: 1em 1em;
}
            
          
!
? ?
? ?
Must be a valid URL.
+ add another resource
via CSS Lint

JS

            
              
            
          
!
Must be a valid URL.
+ add another resource
via JS Hint
Loading ..................