Referencing stylesheet functionality for hover over using in portal forms

Dear SM community. Can I have your views over the following :

In our forms we have the possibility to use HTML code.

We would like to reference the stylesheet functionality to use hover over within our forms in our portal.
in our envir. we would like to use a grey-over for hovering, so the image gets a slight darker color.

As we would like to code it centrally and only use a div function withing the form.

Does anyone know where to find documentation on how to reference the stylesheet and then specifically hover over functionality?

Any hints are appreaciated.

Kind regards,
Patrick

  • 0  

    Hi Patrick

    You can manually apply the solution by appending the below line to the end of the CSS file: <webtier>/css/<version>/htmlviewer.css.

    span[style*="color"]>a{color:inherit !important}

    Important notice:

    1. Usually, this kind of change requires no restart of Tomcat, and it takes effect immediately after you save the file and use browser new incognito window (or clear browser cache) to access SM web tier again.

    2. As the old CSS file may also be cached on the web proxy side, you may also need to clear the cache from the proxy side if the solution does not work.

    3. In a branding environment, you need to modify <webtier>/less/htmlviewer.less instead and restart Tomcat.

    Thanks

  • 0 in reply to   

    Thanks a lot Simon for your answer. This works for the SM web tier.

    Now, how do i do the same on the portal? I've been looking for the CSS files, but where as those stored?

    in short, is this possible for SMAX as well ?

    maybe this query needs to be posted in another forum...

    thx/Patrick

  • 0   in reply to 

    Hi Patrick

    Portal and SMAX are containerized so we are not able to change any file liking SM web tier.

    It doesn't support that.

    Thanks 

  • 0 in reply to   

    Thanks Simon for getting back here.

    In fact, we only need to know what code is used so that we can refer to it.

    Is such information available?

    thanks!

    Patrick