mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
docs: css-overview: Don’t recommend broken syntax
Using this produced warnings about the Pango syntax of <Family> <size> being deprecated, and the size being invalid due to no unit specified. Also, that multi-word font family presumably wouldn’t work as expected.
This commit is contained in:
parent
48055f99e7
commit
b5afe75700
@ -123,7 +123,7 @@ scale[.fine-tune]
|
||||
<programlisting><![CDATA[
|
||||
button, entry {
|
||||
color: #ff00ea;
|
||||
font: Comic Sans 12
|
||||
font: 12px "Comic Sans"
|
||||
}
|
||||
]]></programlisting>
|
||||
</example>
|
||||
@ -216,7 +216,7 @@ notebook > entry {
|
||||
<title>Theme any widget within a GtkBox</title>
|
||||
<programlisting><![CDATA[
|
||||
box * {
|
||||
font: Sans 20
|
||||
font: 20px Sans
|
||||
}
|
||||
]]></programlisting>
|
||||
</example>
|
||||
@ -225,7 +225,7 @@ box * {
|
||||
<title>Theme a label named title-label</title>
|
||||
<programlisting><![CDATA[
|
||||
label#title-label {
|
||||
font: Sans 15
|
||||
font: 15px Sans
|
||||
}
|
||||
]]></programlisting>
|
||||
</example>
|
||||
|
Loading…
Reference in New Issue
Block a user