Skip to content

Commit

Permalink
Limit the size of breadcrumbs
Browse files Browse the repository at this point in the history
This prevents wrapping and favors showing the first part
of every breadcrumb rather than a long item title taking up
most of the space.
  • Loading branch information
acdha authored and rstorey committed Oct 12, 2018
1 parent b6cdb65 commit b2193e4
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion concordia/static/css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
100vh - (8.0625rem + 1.59375rem + 2.375rem)
);

/* Subtract height of navbar, breadcrumd, and nav pills */
/* Subtract height of navbar, breadcrumbs, and nav pills */
--height-contribute-input: calc(50vh - 5.96875rem);
--height-tags-input: calc(50vh - 2.625rem);
--top-tags-input: calc(50vh - 0.75rem);
Expand Down Expand Up @@ -869,6 +869,25 @@ div.nav-secondary {
box-shadow: 0 0 0.25rem var(--shadow-color);
}

/*
* Common navigational elements
*/

.breadcrumb {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: start;
align-items: start;
}

.breadcrumb-item {
max-width: 20em;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}

/*
* List-like displays for items and assets
*/
Expand Down

0 comments on commit b2193e4

Please sign in to comment.