-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Can somebody advise where I can find the ZK style sheets? I’ve been 5hrough all the docs on the ‘Documentation’ section and can’t see any5hing.
CSS styles are usually a "right-click -> inspect element" away, so it's not hard to figure out which styles are used inside ZK in order to apply them to a static html page if needed.
It's often even simple to guess (if that isn't logical):
textbox -> z-textbox
button -> z-button
label -> z-label
The styles are not obscured and a non-minified version is available as well. We even provide a project to build a custom theme with additional styles using the same less variables allowing for all kinds of customization needs.
If we provided those kind of trivial styles, they might help a few people but easily get in the way of many others.
Hi Davout,
Which stylesheet are you looking for? ZK default stylesheets are packaged separately in theme jars. I'd recommend a look at the documentation on themes here and at the theming and style page here.
Generally speaking, you should be able to make most small update by simply adding an additional CSS stylesheet on top of the existing, without modifying the default theme. If you want to start from the ground up, then I'd recommend looking at the custom theme creation starting from existing themes.
This question relates to my other post about how best to output long paragraphs of text (i.e. use the 'html' tag). In my case I have used a mix of 'h4' and 'p' tags as data within a ZUL page 'html' tag.
However, I want to have the text inside my HTML tag use the same fonts/style as found in other ZK controls on the same page. So how/where do find the same styles that have been used for the 'label', 'panel' and 'a' ZUL tags?
usually you simply find the styles applied to an element by right clicking the element in the browser and then "Inspect element". The Developer tools in modern browsers are amazing to figure out which css classes are applied to an element, and which styles they contain. Just try it in case you haven't already. ;)
Thanks...
I followed your advice and found that class="z-label" gets me what I want.
It seems strange that ZK does not surface a list of logical class names that can easily be reused for this type of situation
Asked: 2019-04-03 05:31:17 +0800
Seen: 21 times
Last updated: Apr 05 '19
[ZK8.6 Preview] New media components coming soon!
Bug in Datebox with lenient=false and value 01.04.1981?
javascript cannot catch id of zul component. Please help.
failed to utilize getTop(), getLeft() on div(component). Please help.
Serving zul files from a directory outside web application