# HG changeset patch # User Oleksandr Gavenko # Date 1485610175 -7200 # Node ID 15c3e60f7faa5c1bdcbf8effa9e4d225b0ccb894 # Parent 8ae2aee591e7f2808e0d77a74e43225c9f229d2e Refine "CSS import statement". diff -r 8ae2aee591e7 -r 15c3e60f7faa css.rst --- a/css.rst Sat Jan 28 15:27:12 2017 +0200 +++ b/css.rst Sat Jan 28 15:29:35 2017 +0200 @@ -130,15 +130,23 @@ * https://www.w3.org/TR/css3-selectors/#selectors * https://www.w3.org/TR/CSS/#selectors -CSS include statement -===================== -:: +CSS import statement +==================== +Any ``@import`` rules must precede all other at-rules and style rules in a style +sheet (besides ``@charset``):: + + @import "common.css"; @import url("common.css"); -Include statment supports media query syntax:: +Import statment supports media query syntax:: - @import url(print.css) print; + @import url("print.css") print; + @import url("bluish.css") projection, tv; + @import url("narrow.css") handheld and (max-width: 400px); + +https://www.w3.org/TR/css-cascade-3/#at-import + Importing Style Sheets: the @import rule. Including font ==============