Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagecss
titleInheritance Example
/* 
In this example, the MyClass class tags a selected layer named MyLayer.
- It is drawn in red.  The class name defined by "." is at the end of inheritance.
- Black background used. Altough the layer,that is defined by ".", is trying to make the backgroud gray, background becomes black because usage of !important at the "#" layer definition makes the layers statue higher at the inheritence level.
- Text edges are set to be white. Halo definition is inherited from "#" katman tanımından Halo tanımı devralınmıştırlayer definition.

*/
.MyCLass {
	label-Color:Red;
	label-BackgroundColor:Gray;
}
layer {
	label-Color:Blue;
}
#MyLayer {
	label-Halo:White;
	label-BackgroundColor:Black !important;
}

...

Macro can be used for style values. For syntax rules, see the Macros page. The [ ] characters should not be used in style values.

...