Created
July 8, 2015 08:45
-
-
Save AchalJ/4ba1ad0cc8bfcaad819b to your computer and use it in GitHub Desktop.
Custom Author Box (used with user photo plugin)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($){ | |
$('.dynamic-tabs > div').hide(); | |
$('.dynamic-tabs > div:first-child').show(); | |
$('.dynamic-list li:first-child').addClass('active'); | |
$('.dynamic-list li a').click(function() { | |
$(this).closest('.dynamic-wrapper').find('li').removeClass('active'); | |
$(this).parent().addClass('active'); | |
var currentTab = $(this).attr('href'); | |
if(currentTab.indexOf('#') != -1) { | |
currentTabExp = currentTab.split('#'); | |
currentTab = '#' + currentTabExp[1]; | |
} | |
$(this).closest('.dynamic-wrapper').find('.dynamic-tabs > div').hide(); | |
$(currentTab).show(); | |
return false; | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*** Author Box ***/ | |
.dynamic-list li { | |
float: left; | |
background: #f5f5f5; | |
padding: 5px 10px; | |
border: 1px solid #ddd; | |
border-bottom: 0; | |
} | |
.dynamic-list li a { | |
color: #333; | |
text-decoration: none; | |
font-family: 'Roboto', 'sans-serif' !important; | |
} | |
.dynamic-list li.active { | |
background: #256093; | |
} | |
.dynamic-list li.active a{ | |
color: #fff; | |
} | |
.author-box{ | |
border: 1px solid #ddd; | |
} | |
.author-box-title { | |
font-size: 20px; | |
} | |
.author-box-content{ | |
font-size: 14px; | |
padding-left: 114px; | |
} | |
.author-box img{ | |
background: #FFFFFF; | |
border: 0px solid #DDDDDD; | |
width: 90px; | |
height: 90px; | |
margin: 0 24px 0 0px; | |
padding: 0px; | |
float: left; | |
border-radius: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment