Home › Forums › Legacy Support › Support queries › Styling issues › Active tab style
- This topic has 3 replies, 3 voices, and was last updated 8 years, 10 months ago by isigma.
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
January 31, 2016 at 5:10 am #23408isigmaSpectatorThe background for the tab icon is left white on the active tab by mistake, so it looks like a white circle. Quick fix is nav.nav-tabs>li.active>a>span {background:none} Also when the color of the icon and the active background color on the tab is the same, naturally, the icon disappears. In case somebody uses matching colors like me the fix would be .nav.nav-tabs>li.active>a>span i { -webkit-filter: invert(100%); filter: invert(100%); } See before and after. I'm not sure that the solution for the second issue is universal, but will you include the first one into the future shortcodes plugin? == Alternatively, if you use darker colors for active tabs, both the text and the icon can be set to white .nav.nav-tabs>li.active>a, .nav.nav-tabs>li.active>a>span i {color:white}February 1, 2016 at 5:47 am #23605H.K. LatiyanParticipantThanx for the information.February 3, 2016 at 4:43 pm #24999Johnny NassarParticipantcan i know where to change the tabs style please in the theme ? I have the following issue in this link : http://www.enassar.com/academy/onlinelibrary/ the below is the code and yo u can check also online through the link I couldn't find the style "tabs-left" I tried a lot even using the custom css in the content but it didn't work also ! [tabs style="tabs-left" theme=""] [tab title="Communication" icon=""] BODY LANGUAGE TOOLKIT COMMUNICATION TOOLKIT GAMES & ICEBREAKERS TOOLKIT BODY LANGUAGE TOOLKIT COMMUNICATION TOOLKIT GAMES & ICEBREAKERS TOOLKIT [/tab] [/tabs]February 3, 2016 at 6:48 pm #25038isigmaSpectatorYou add custom style in the theme's style.css file, or, if you're using a child theme, edit the same file in the child theme folder. Do not change tabs-left in the shortcode plugin folder. If your browser can inspect a page code, check the existing style parameters then substitute them in your style.css. Keep in mind two things: 1. Some theme styles use more specific class names (nested classes chain), so they have a priority over the general one, and you have to use the same specific nested style class chain to get power over the theme's ones. In your case you have to work not with .<span style="line-height: 1.5;">tabs-left</span> but with <span style="line-height: 1.5;">.content .tabs-left </span> .tabs-left .nav > li > a etc. 2. In some cases in order to overwrite the theme's code you have to enforce your's with !important, although do not use it unless you're sure that, say <em style="line-height: 1.5;"><span style="line-height: 1.5;"> .tabs-left </span><span style="line-height: 1.5;">is unique to tabs only. If you enforce your style I'd suggest to check how it changes the mobile style as well.</span> In your case the enforced style will be .tabs-left .nav > li > a {padding: 17px 24px !important} I hope it makes sense for you.
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- The topic ‘Active tab style’ is closed to new replies.