-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rebuild the breadcrumb component
- Loading branch information
Marvin Heilemann
committed
Feb 5, 2020
1 parent
dc3eb91
commit c3c446d
Showing
6 changed files
with
44 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,21 @@ | ||
#breadcrumb { | ||
overflow: hidden; | ||
text-overflow: ellipsis; // does not work here... | ||
white-space: nowrap; | ||
|
||
// TODO: remove div: https://github.com/sbardian/gatsby-plugin-breadcrumb/issues/56 | ||
> div { | ||
overflow: hidden; | ||
text-overflow: ellipsis; // does not work here... | ||
white-space: nowrap; | ||
} | ||
.breadcrumb__link { | ||
transition: opacity var(--transition-fast); | ||
opacity: 0.8; | ||
|
||
.breadcrumb:first-of-type .breadcrumb__link__disabled, | ||
.breadcrumb__title { | ||
display: none; | ||
&:hover { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
.breadcrumb { | ||
display: inline; | ||
.breadcrumb__item, | ||
.breadcrumb__separator { | ||
margin-right: var(--spacing-xs); | ||
font-size: var(--text-sm); | ||
letter-spacing: 1px; | ||
|
||
.breadcrumb__link { | ||
margin-right: var(--spacing-xs); | ||
transition: opacity var(--transition-fast); | ||
opacity: 0.8; | ||
|
||
&:hover { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
.breadcrumb__separator { | ||
margin-right: var(--spacing-xs); | ||
opacity: 0.8; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters