VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: ioncap on February 29, 2016, 12:10:43 PM

Title: Category and css
Post by: ioncap on February 29, 2016, 12:10:43 PM
Hello dear people!

For some days now i have been playing around with com_virtuemart/assets/vm-ltr-site.css. A client wants his category page to be modified to show the description below:

All the visited categories (not the products) need to be recognizable in some way (best would be underlining the title of the category).
At first i thought this would be easy by adding a well placed a:visited {text-decoration:underline;}.
Though it seems like it isn't working, and i can't seem to figure out how to get this working.

link to the page (http://www.bonucci.de/index.php?option=com_virtuemart&view=category&virtuemart_category_id=52&virtuemart_manufacturer_id=0&categorylayout=0&showcategory=1&showproducts=1&productsublayout=0&Itemid=200&lang=nl)

As mentioned before, i tried to add something in vm-ltr-site.css, here is what i did:
Looked up the class names for the category display (Line: 94  |  .category-view .row .category .spacer h2 a{font-size:14px;display:block;text-align:center;})
Duplicated line 94 on 95 and added (Line: 95  |  .category-view .row .category .spacer h2 a:visited{font-size:14px;display:block;text-align:center;text-decoration:underline;}
Uploaded, tested and became sad.

If you have any idea on how to get this working, be my hero!


Version information:
Joomla!: 3.4.1
Virtuemart: 3.0.8
Title: Re: Category and css
Post by: studio42 on February 29, 2016, 16:18:36 PM
Check this articles, and you understand why.
https://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/
Title: Re: Category and css
Post by: ioncap on March 01, 2016, 08:34:38 AM
Quote from: studio42 on February 29, 2016, 16:18:36 PM
Check this articles, and you understand why.
https://hacks.mozilla.org/2010/03/privacy-related-changes-coming-to-css-vistited/

Thank you kindly for your reply, i appreciate the heads-up.
Though this client has a web-shop for delicious goods like chocolate-pie and cakes.
This client is very persistent concerning the layout and the feel of his site, for that matter i already implemented the CSS and this topic should be closed (if it ain't already).
None the less i am still thankful for your reply, much appreciated.

Kind regards,
-Ioncap