276d9a9302
Import: HippoCanvasTheme => StTheme HippoCanvasThemeImage => StThemeImage HippoCanvasStyle => StThemeNode StThemeContext is a new class managing the theme for a stage and global properties like resolution. test-theme.c is a newly written test program to do verification of the style matching and property handling rules. Various changes are made in the import: - Comprehensive reindentation - guint32 pixels replaced with ClutterColor - General pseudo-class support added - Old-fashioned (non-bordered) background image support added, though with no support for repeat, etc. - Bug fixes for problems revealed by test program https://bugzilla.gnome.org/show_bug.cgi?id=595990
69 lines
909 B
CSS
69 lines
909 B
CSS
stage {
|
|
}
|
|
|
|
#group1 {
|
|
padding: 12pt;
|
|
padding-right: 12px;
|
|
padding-bottom: 2em;
|
|
padding-left: 1in;
|
|
|
|
background: #ff0000 url('some-background.png');
|
|
}
|
|
|
|
#text1 {
|
|
background-image: inherit;
|
|
}
|
|
|
|
.special-text {
|
|
font-size: 24pt;
|
|
font-style: italic;
|
|
}
|
|
|
|
ClutterTexture.special-text {
|
|
font-weight: bold;
|
|
}
|
|
|
|
#text2 {
|
|
background: inherit;
|
|
background: none; /* also overrides the color */
|
|
}
|
|
|
|
#group2 {
|
|
font: italic 12px serif;
|
|
}
|
|
|
|
#text3 {
|
|
font-variant: small-caps;
|
|
font-weight: bold;
|
|
font-style: oblique;
|
|
font-size: 200%;
|
|
}
|
|
|
|
ClutterTexture {
|
|
padding: 10px;
|
|
}
|
|
|
|
ClutterCairoTexture {
|
|
padding-right: 20px;
|
|
}
|
|
|
|
#group1 > #text1 {
|
|
color: #00ff00;
|
|
}
|
|
|
|
stage > #text2 {
|
|
color: #ff0000;
|
|
}
|
|
|
|
#group2 {
|
|
background-image: url('other-background.png');
|
|
}
|
|
|
|
ClutterText:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
ClutterText:visited {
|
|
color: #888888;
|
|
}
|