So, I want to add a new icon to the buttons, we have a tick and a cross and stuff like that, and I want to add a (!) button (i.e. using the warning icon)
Now, I don't want this in the main index.css file for obvious reasons so I thought, you know what, I'll put it in index.member.css, and extend input.submit that way.
So index.member.css has:
Code: [Select]
Except, and this is the troublesome part, this part is declared, effectively, before my input.warn class:
Code: [Select]
So background-position gets overridden by input.warn's own declaration.
I don't know how to deal with this in a good way since index.member.css stuff is loaded after index.css, but I don't really want to add this to index.css if I can help it. I think I'll just have to add background-position directly to input.warn :(
Now, I don't want this in the main index.css file for obvious reasons so I thought, you know what, I'll put it in index.member.css, and extend input.submit that way.
So index.member.css has:
input.warn extends input.submit
background: url($images/warning_ban.gif) no-repeat
background-color: #fff0e3
:hover
background-color: #fff5e8Except, and this is the troublesome part, this part is declared, effectively, before my input.warn class:
// Declare position only here, so that inherited classes can also set it.
input.submit
background-position: 5px centerSo background-position gets overridden by input.warn's own declaration.
I don't know how to deal with this in a good way since index.member.css stuff is loaded after index.css, but I don't really want to add this to index.css if I can help it. I think I'll just have to add background-position directly to input.warn :(



