Hide by default responsibilities and click to show them

This commit is contained in:
Pau Trepat Segura 2020-07-15 11:19:57 +02:00
parent 3b8d0348c8
commit dd6fecf5b5
4 changed files with 23 additions and 2 deletions

View file

@ -22,6 +22,7 @@
.experiences-section .designation{
font-weight: 600;
text-align: left;
margin-bottom: 0.25em;
}
.company{
@ -158,6 +159,15 @@
.company-timeline-item.position::after {
left: 20px;
}
.responsabilities {
margin-top: 0.5em;
display: none;
}
.company-period {
color: #808080 !important;
}
}
/* iPhoneX, iPhone 6,7,8 */

View file

@ -373,6 +373,17 @@ var projectCards;
adjustRecentPostsHeight();
showAchievements();
};
if (isMobile) {
$(".position").click(function() {
let responsabilities = $(this).find('.responsabilities');
if (responsabilities.is(":visible")) {
responsabilities.slideUp( "slow");
}
else responsabilities.slideDown("slow");
});
}
});
})(jQuery);