Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 631 Bytes

direct-import.md

File metadata and controls

25 lines (18 loc) · 631 Bytes

Files referenced with the @import directive are inlined directly to save on http requests. Relative URL paths in the CSS are also updated if necessary.

If you specify a media designation following the import URL — as per the CSS standard — the imported file content is wrapped in a @media block.

/* Standard CSS @import statements */
@import "print.css" print;
@import url( "small-screen.css" ) screen and ( max-width: 500px );
@media print {
  /* Contents of print.css */
}
@media screen and ( max-width: 500px ) {
  /* Contents of small-screen.css */
}