Skip to content

Commit

Permalink
Fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
man90es committed May 8, 2024
1 parent 5ebd72c commit e1c5374
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 14 deletions.
17 changes: 8 additions & 9 deletions src/pages/leaderboard/components/LeaderboardHeaderLine.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<div v-for="header of headers" :key="header ?? ''">{{ header }}</div>
<template module>
<div :class="$style.root" v-for="header of headers" :key="header ?? ''">
{{ header }}
</div>
</template>

<script setup lang="ts">
Expand All @@ -24,17 +26,14 @@
})
</script>

<style scoped>
#leaderboard > * {
<style module>
.root {
padding: 0.5rem;
}
div {
font-weight: bold;
}
div:first-child,
div:nth-child(4) {
.root:first-child,
.root:nth-child(4) {
text-align: right;
}
</style>
10 changes: 5 additions & 5 deletions src/pages/leaderboard/components/LeaderboardLine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@
</script>
<style scoped>
#leaderboard > * {
.position,
.family-name,
.character-name,
.score {
align-items: center;
background-color: v-bind(backgroundColour);
color: v-bind(colour);
Expand Down Expand Up @@ -165,8 +169,4 @@
opacity: 0.8;
width: 1.5rem;
}
.mobile-layout .character-name::before {
zoom: 0.7;
}
</style>

0 comments on commit e1c5374

Please sign in to comment.