From 74c169021ece2a1f2a98674dfff48a8a29995b7e Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Tue, 5 Dec 2017 10:47:20 +0100 Subject: [PATCH] Experimenting with new font size --- pages/anime/anime.pixy | 2 +- pages/users/osu.pixy | 12 ++++++------ pages/users/osu.scarlet | 12 ++++++++---- pages/users/overwatch.pixy | 8 ++++---- styles/base.scarlet | 6 +++--- 5 files changed, 22 insertions(+), 18 deletions(-) diff --git a/pages/anime/anime.pixy b/pages/anime/anime.pixy index 9bffe83b..20c1d388 100644 --- a/pages/anime/anime.pixy +++ b/pages/anime/anime.pixy @@ -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") diff --git a/pages/users/osu.pixy b/pages/users/osu.pixy index 8e6805ba..edbdc8a5 100644 --- a/pages/users/osu.pixy +++ b/pages/users/osu.pixy @@ -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) + "%" \ No newline at end of file diff --git a/pages/users/osu.scarlet b/pages/users/osu.scarlet index fbb47b8c..e43be914 100644 --- a/pages/users/osu.scarlet +++ b/pages/users/osu.scarlet @@ -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 \ No newline at end of file diff --git a/pages/users/overwatch.pixy b/pages/users/overwatch.pixy index 975f4b08..c9554cf4 100644 --- a/pages/users/overwatch.pixy +++ b/pages/users/overwatch.pixy @@ -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" \ No newline at end of file diff --git a/styles/base.scarlet b/styles/base.scarlet index f18f1b64..58bc22b7 100644 --- a/styles/base.scarlet +++ b/styles/base.scarlet @@ -7,9 +7,9 @@ html html font-size 90% -> 1400px - html - font-size 100% +// > 1400px +// html +// font-size 100% body tab-size 4