Added tab groups

This commit is contained in:
Eduard Urbach 2018-03-13 02:31:01 +01:00
parent 634bbb151e
commit e9385ec079
2 changed files with 18 additions and 21 deletions

View File

@ -26,9 +26,15 @@ component SoundTracksScrollable(tracks []*arn.SoundTrack, user *arn.User)
SoundTrack(track)
component SoundTracksTabs(tag string)
.tabs
Tab("Latest", "music", "/soundtracks")
Tab("Best", "heart", "/soundtracks/best")
.tab-groups
.tabs
Tab("Latest", "music", "/soundtracks")
Tab("Best", "heart", "/soundtracks/best")
if tag != ""
Tab(tag, "tag", "/soundtracks/tag/" + tag)
.tabs
Tab("opening", "tag", "/soundtracks/tag/opening")
Tab("ending", "tag", "/soundtracks/tag/ending")
if tag != "" && tag != "opening" && tag != "ending"
.tabs
Tab(tag, "tag", "/soundtracks/tag/" + tag)

View File

@ -29,13 +29,6 @@
border-top-right-radius ui-element-border-radius
border-bottom-right-radius ui-element-border-radius
// color text-color !important
// :hover
// color white !important
// &.active
// color white !important
// background-color link-hover-color
< 920px
.tab
.icon
@ -47,11 +40,9 @@
.tabs
horizontal
justify-content center
// margin-left calc(content-padding * -1)
// margin-top calc(content-padding * -1)
// margin-right calc(content-padding * -2)
margin-bottom content-padding
// background-color rgba(0, 0, 0, 0.02)
// justify-content flex-start !important
// margin-bottom 1rem
// margin-top -0.6rem
margin content-padding calc(content-padding / 4)
margin-top 0
.tab-groups
horizontal
justify-content center