UX: Long category names pushed badges to a new line in the hamburger

This commit is contained in:
Robin Ward 2015-09-02 15:42:20 -04:00
parent d1717cdb12
commit 4a6f617f4d
4 changed files with 16 additions and 11 deletions

View File

@ -67,6 +67,7 @@
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
background-color: transparent;
display: inline;
padding: 0;
}
}
@ -76,6 +77,13 @@
font-weight: normal;
font-size: 11px;
}
span.badge-category {
max-width: 90px;
overflow: hidden;
text-overflow: ellipsis;
}
}
.search-menu {

View File

@ -126,17 +126,6 @@
}
}
}
span.badge-category {
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
.menu-panel & {
max-width: 90px;
}
}
}
// Category badge dropdown

View File

@ -18,6 +18,7 @@
@import "mobile/user";
@import "mobile/history";
@import "mobile/directory";
@import "mobile/menu-panel";
/* These files doesn't actually exist, they are injected by DiscourseSassImporter. */

View File

@ -0,0 +1,7 @@
.menu-panel {
span.badge-category {
max-width: 85px;
overflow: hidden;
text-overflow: ellipsis;
}
}