diff --git a/webapp/pages/profile/_id/_slug.vue b/webapp/pages/profile/_id/_slug.vue index 9a7af82ac..6e75a585f 100644 --- a/webapp/pages/profile/_id/_slug.vue +++ b/webapp/pages/profile/_id/_slug.vue @@ -132,69 +132,50 @@ + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + ' + str) + this.tabActive = str + }, uniq(items, field = 'id') { return uniqBy(items, field) }, @@ -370,8 +356,48 @@ export default { cursor: pointer; } -.ds-tab-nav .ds-card-content .ds-tab-nav-item:hover { - border-bottom: 3px solid #c9c6ce; +.Tab { + border-collapse: collapse; + padding-bottom: 5px; +} +.Tab:hover { + border-bottom: 2px solid #c9c6ce; +} + +.Tabs { + position: relative; + background-color: #fff; + &:after { + content: ' '; + display: table; + clear: both; + } + margin: 0; + padding: 0; + list-style: none; + &__tab { + float: left; + width: 33.333%; + text-align: center; + &:first-child.active ~ .Tabs__presentation-slider { + left: 0; + } + &:nth-child(2).active ~ .Tabs__presentation-slider { + left: 33.333%; + } + &:nth-child(3).active ~ .Tabs__presentation-slider { + left: calc(33.333% * 2); + } + } + &__presentation-slider { + position: absolute; + bottom: 0; + left: 0; + width: 33.333%; + height: 2px; + background-color: #17b53f; + transition: left 0.25s; + } } .profile-avatar.ds-avatar {