Experimenting with new font size

This commit is contained in:
Eduard Urbach 2017-12-05 10:47:20 +01:00
parent 66f0cd8fe5
commit 74c169021e
5 changed files with 22 additions and 18 deletions

View File

@ -238,4 +238,4 @@ component AnimeInformation(anime *arn.Anime)
//- a.ajax(href=company.Link())= company.Name.English
component FriendEntry(friend *arn.User, listItems map[*arn.User]*arn.AnimeListItem)
CustomAvatar(friend, listItems[friend].Link(friend.Nick), friend.Nick + " => " + listItems[friend].Status + " | " + toString(listItems[friend].Episodes) + " eps | " + fmt.Sprintf("%.1f", listItems[friend].Rating.Overall) + " rating")
CustomAvatar(friend, friend.Link(), friend.Nick + " => " + listItems[friend].Status + " | " + toString(listItems[friend].Episodes) + " eps | " + fmt.Sprintf("%.1f", listItems[friend].Rating.Overall) + " rating")

View File

@ -3,22 +3,22 @@ component OsuRankingList(users []*arn.User)
UsersTabs
table.osu-ranking-list
table.ranking-list
thead
tr.mountable
th #
th Player
th Name
th.osu-ranking-pp Performance
th.osu-ranking-accuracy Accuracy
th.ranking-pp Performance
th.ranking-accuracy Accuracy
tbody
for index, user := range users
tr.osu-ranking.mountable
tr.ranking.mountable
td= toString(index + 1) + "."
td
Avatar(user)
td
a.ajax(href=user.Link())= user.Nick
td.osu-ranking-pp= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
td.osu-ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"
td.ranking-score= toString(int(user.Accounts.Osu.PP + 0.5)) + " pp"
td.ranking-accuracy= fmt.Sprintf("%.1f", user.Accounts.Osu.Accuracy) + "%"

View File

@ -1,12 +1,16 @@
.osu-ranking-list
.ranking-list
max-width 400px
.osu-ranking
.user-image
width calc(avatar-size / 2)
height calc(avatar-size / 2)
.ranking
width 100%
td
vertical-align middle
.osu-ranking-pp,
.osu-ranking-accuracy
.ranking-score,
.ranking-accuracy
text-align right

View File

@ -3,20 +3,20 @@ component OverwatchRankingList(users []*arn.User)
UsersTabs
table.osu-ranking-list
table.ranking-list
thead
tr.mountable
th #
th Player
th Name
th.osu-ranking-pp Skill Rating
th.ranking-pp Skill Rating
tbody
for index, user := range users
tr.osu-ranking.mountable
tr.ranking.mountable
td= toString(index + 1) + "."
td
Avatar(user)
td
a.ajax(href=user.Link())= user.Nick
td.osu-ranking-pp= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR"
td.ranking-score= strconv.Itoa(user.Accounts.Overwatch.SkillRating) + " SR"

View File

@ -7,9 +7,9 @@ html
html
font-size 90%
> 1400px
html
font-size 100%
// > 1400px
// html
// font-size 100%
body
tab-size 4