Skip to content

Commit

Permalink
Merge pull request #1769 from nextcloud/update-counter-component
Browse files Browse the repository at this point in the history
Update AppNavigationCounter styles
  • Loading branch information
marcoambrosini authored Mar 25, 2021
2 parents be63a9a + 6898f64 commit 2820a02
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/AppNavigationCounter/AppNavigationCounter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
export default {
name: 'AppNavigationCounter',
props: {
highlighted: {
type: Boolean,
Expand All @@ -60,19 +61,22 @@ export default {

<style lang="scss" scoped>
.app-navigation-entry__counter {
font-size: calc(var(--default-font-size) * .8);
overflow: hidden;
width: fit-content;
max-width: $clickable-area;
margin: 4px;
padding: 0 4px;
text-align: center;
text-overflow: ellipsis;
line-height: 1em;
padding: 4px 8px;
border-radius: var(--border-radius-pill);
background-color: var(--color-background-darker);
&--highlighted {
padding: 4px 6px;
color: var(--color-primary-text);
border-radius: 10px;
background-color: var(--color-primary);
}
}
</style>

0 comments on commit 2820a02

Please sign in to comment.