Skip to content

Commit 563d7b0

Browse files
committed
[css-cascade] Syntax highlighting.
1 parent f468a9d commit 563d7b0

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

css-cascade/Overview.bs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Importing Style Sheets: the ''@import'' rule</h2>
7171
and illustrate both ''@import'' syntaxes
7272
(one with ''url()'' and one with a bare string):
7373

74-
<pre>
74+
<pre class='lang-css'>
7575
@import "mystyle.css";
7676
@import url("mystyle.css");
7777
</pre>
@@ -175,19 +175,20 @@ Shorthand Properties</h2>
175175
is a <a>shorthand</a> property for setting <a property>font-style</a>, <a property>font-variant</a>, <a property>font-weight</a>, 'font-size', 'line-height', and <a property>font-family</a> all at once.
176176
The multiple declarations of this example:
177177

178-
<pre>
179-
h1 {
180-
font-weight: bold;
181-
font-size: 12pt;
182-
line-height: 14pt;
183-
font-family: Helvetica;
184-
font-variant: normal;
185-
font-style: normal;
186-
}</pre>
178+
<pre class='lang-css'>
179+
h1 {
180+
font-weight: bold;
181+
font-size: 12pt;
182+
line-height: 14pt;
183+
font-family: Helvetica;
184+
font-variant: normal;
185+
font-style: normal;
186+
}
187+
</pre>
187188

188189
can therefore be rewritten as
189190

190-
<pre>h1 { font: bold 12pt/14pt Helvetica }</pre>
191+
<pre class='lang-css'>h1 { font: bold 12pt/14pt Helvetica }</pre>
191192

192193
As more 'font' <a>sub-properties</a> are introduced into CSS,
193194
the shorthand declaration resets those to their initial values as well.
@@ -742,7 +743,7 @@ Important Declarations: the ''!important'' annotation</h3>
742743
in its value are the delimiter token ''!'' followed by the identifier token ''important''.
743744

744745
<div class='example'>
745-
<pre>[hidden] { display: none !important; }</pre>
746+
<pre class='lang-css'>[hidden] { display: none !important; }</pre>
746747
</div>
747748

748749
An <a>important</a> declaration takes precedence over a normal declaration.
@@ -770,7 +771,7 @@ Important Declarations: the ''!important'' annotation</h3>
770771
Also, the third author rule will lose to the second author rule since the second declaration is ''!important''.
771772
This shows that ''!important'' declarations have a function also within author style sheets.
772773

773-
<pre>
774+
<pre class='lang-css'>
774775
/* From the user's style sheet */
775776
p { text-indent: 1em !important }
776777
p { font-style: italic !important }

0 commit comments

Comments
 (0)