0

css in zk app

asked 2015-12-02 12:23:07 +0800

demizon gravatar image demizon
179 1 6

Hello,

I am new to CSS. I am trying to customize atlantic theme.

My problem:

i got external CSS file.

i got listbox with <listitem> tag in my zul file what i want to do is change the colour when listitem is selected or when i pass by listitem with mouse cursor. (from default dark blue to purple)

i tried to add this to my css file but nothing has changed the colour is still same

.z-listitem-seld{
    background-color: #a8aff7;
}

.z-listitem:hover{
    background-color: #a8aff7;
}

but on the other hand i tried to change background of button like this:

.z-button {
    border: none;
    background: #a8aff7;
}
.z-button:hover{
    border: none;
    background: #a8aff7;
}

and it worked...

Can someone explain me what I am doing wrong?

Thanks.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-12-02 12:56:14 +0800

Darksu gravatar image Darksu
1991 1 4

Hello demizon,

Since you are using the atlantic theme the best would be to load the project, update, and redeploy it.

http://books.zkoss.org/wiki/ZKStyleCustomizationGuide/LookandFeelCustomization/CreateNewLookandFeel

If you want to style the component directly, and bypass the atlantic theme let me know.

Best Regards,

Darksu

link publish delete flag offensive edit

Comments

Darksu,I don't mind if I use atlantic, so lets say I would use breeze theme, how can I change colors that I have mentioned in original post?

demizon ( 2015-12-02 13:19:47 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-12-02 12:23:07 +0800

Seen: 27 times

Last updated: Dec 02 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More