Hello MzM,
I think you'll agree that the only way to achieve this is to have a different CSS ID selector for each of a menu item.
I can't test it now, but I think you can use Pat template to do that. There might be several ways.
1) You will have to create new PHP file (i.e. menu_items.php) or edit existing which feeds the Pat template and define an array with ID numbers of menu items (simply a counter), and add it to template this way (example only):
Code:
$tmpl->addObject( 'rowid', $counter, 'row_' );
and place it in your template as 'ID="menuitem{ROW_ROWID}"'. This way, you would be able to define styles for menuitem1, menuitem2, menuitem3, etc.
2) You can use menu-item's name to name your styles, i.e. to name it menuitem_Homepage, menuitem_Gallery, etc. This could be an ellegant way, as you wouldn't have to change much of code and no extra PHP file would be required. I think if you change line...
STOP: At the moment I spotted the line:
Code:
id="menulist_{HIERARCHY}{CLASS_SUFFIX}"
which means you don't have to do anything, but use it... See what are the ID selectors in your output (HTML source code in your browser). If it doesn't generate different names, change this line i.e. to:
Code:
id="menulist_{MENU_ITEMS}"
which will most likely give you menulist_Homepage, menulist_Gallery, etc. as mentioned above...
If I were you, I'd study existing templates with this feature and inherit it's behavior in my template files.