909b5ec43c
Since style_class and pseudo_class are space-separated lists of names, add new methods to add and remove individual names rather than just re-setting the entire name. Update existing code to use the new pseudo-class methods where appropriate. In some cases, this may result in actors having multiple pseudoclasses where previously they only had one at a time, but there don't seem to be any visible differences. (There are some places that could usefully use the new style_class methods as well, but this patch doesn't change them.) Also, update test-theme.c to test the new methods. https://bugzilla.gnome.org/show_bug.cgi?id=604943
78 lines
1.1 KiB
CSS
78 lines
1.1 KiB
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');
|
|
padding: 1px 2px 3px 4px;
|
|
|
|
border: 2px solid #000000;
|
|
border-bottom: 5px solid #0000ff;
|
|
border-radius: 10px 10px 0px 0px;
|
|
}
|
|
|
|
ClutterText:hover, StLabel:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
ClutterText:visited, StLabel:visited {
|
|
color: #888888;
|
|
}
|
|
|
|
StLabel:boxed {
|
|
border: 1px;
|
|
}
|