Click here to Skip to main content
15,887,821 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi, I'm trying to define a custom "modifier" attribute for an
HTML
<ons-bottom-tolbar>
in order to modify it's default height value (44px).

As is defined on Onsen's web page (here), the "ons-bottom-tolbar" has that attribute, and as comments here, if you want to create an modifier named "xxxx" for an onsen element named "ons-yyyy", you have to define an css class as:

CSS
.yyyy--xxxx {
   /* define style here ...
    */
}


where the class name is the onsen element without "ons-" sufix, "--" and the modifier name.

I can to do this for an "ons-button":

HTML
<ons-button modifier="green">GREEN BUTTON</ons-button>

CSS
.button--green {
  background-color: green;
}   

... but for an "ons-bottom-toolbar" don't work:
HTML
<ons-bottom-toolbar modifier="pink">
  PINK FOOTER????
</ons-bottom-toolbar>

CSS
.bottom-toolbar--pink{
  height: 24px;
  background-color: pink;
  border-top: 5px solid black;
}


Take a look here (codepen.io)

¿Any idea?

Thanks...
Posted

1 solution

You are prpbably better off getting support from here http://onsen.io/forum.html[^]

Quote:
If anything about Onsen UI is unclear, please ask a question on Stack Overflow, and tag onsen-ui.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900