Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

Removing shadow from item image

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

I'd like to remove the shadow effect from the image articles. I've tried through template.css file but it didn't work...

Thanks for help.
  • divalmeida's Avatar
  • divalmeida
  • 3 Month Basic
  • 35 posts
  • Karma: 0
The administrator has disabled public write access.
Not 100% sure what you are referring to

Could add a screenshot with an arrow?

Cheers
Pul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
OK, here's the shadow I've been talking about.
Thanks.
remove_shadow.jpg
  • divalmeida's Avatar
  • divalmeida
  • 3 Month Basic
  • 35 posts
  • Karma: 0
The administrator has disabled public write access.
The lines you need to target are

.item-image {
-webkit-box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.2);
}

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I had already done that and it didn't work. That's why I came to the forum...
  • divalmeida's Avatar
  • divalmeida
  • 3 Month Basic
  • 35 posts
  • Karma: 0
The administrator has disabled public write access.
I can't see a style targetting those selectors and the custom.css file is empty

Did you add?

.item-image {
-webkit-box-shadow: none;
box-shadow: none}

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
I found it only in the template.css file. But code changes don't work here.
  • divalmeida's Avatar
  • divalmeida
  • 3 Month Basic
  • 35 posts
  • Karma: 0
The administrator has disabled public write access.
ah ok

You need to leave the core files alone - the custom.css file is the only place to work

Add styling to the custom.css file to override existing template styling or to add completely new styles

Otherwise it will be lost if you update or re-compile the template (I'm assuming you are not working in LESS)
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
so with

.item-image {
-webkit-box-shadow: none;
box-shadow: none}

I'm overriding the template css without editing that file

It works by the custom.css file being processed last in the css files so it overrides the same template style

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
When selectors have an equal specificity value, the latest rule is the one that counts.

This is how the custom file works in this case
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
OK, Paul! Got it! Thanks a lot, once again! :D
  • divalmeida's Avatar
  • divalmeida
  • 3 Month Basic
  • 35 posts
  • Karma: 0
The administrator has disabled public write access.
You're welcome :)

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers