diff --git a/src/style/breadcrumbs.scss b/src/style/breadcrumbs.scss deleted file mode 100644 index f199923d..00000000 --- a/src/style/breadcrumbs.scss +++ /dev/null @@ -1,57 +0,0 @@ -nav.breadcrumbs{ - width: 80%; - margin: 0 auto; - padding: .35em 0 0; - color: #bbb; - - a { - color: #9990e0; - } - - ul{ - list-style: none; - - li { - display: inline-block; - - &:not(:first-child):before{ - content: '⟶'; - margin-left: .4em; - } - } - } -} - -@media screen and (max-width: 31.25em) { - nav.breadcrumbs{ - width: 100%; - margin: 0; - font-size: 0.75em; - - ul{ - li { - &:not(:first-child):before{ - content: '>'; - margin-left: .2em; - } - } - } - } -} - -@media screen and (min-width: 31.25em) and (max-width: 59.99999em){ - nav.breadcrumbs{ - width: 100%; - margin: 0; - font-size: 0.75em; - - ul{ - li { - &:not(:first-child):before{ - content: '>'; - margin-left: .2em; - } - } - } - } -} diff --git a/src/style/components/breadcrumbs.scss b/src/style/components/breadcrumbs.scss new file mode 100644 index 00000000..79ca74b9 --- /dev/null +++ b/src/style/components/breadcrumbs.scss @@ -0,0 +1,45 @@ +@import "../variables"; + +$font-size: 0.75em; +$item-active-color: $link-color; +$item-inactive-color: $inactive-link-color; +$separator: '⟶'; +$mobile-separator: '>'; + +breadcrumbs{ + padding: .35em 0 0; + color: $item-inactive-color; + + a { + color: $item-active-color; + } + + ul{ + list-style: none; + + li { + display: inline-block; + + &:not(:first-child):before{ + content: $separator; + margin-left: .4em; + } + } + } +} + +@media screen and (max-width: $mobile-width) { + breadcrumbs{ + margin: 0; + font-size: $font-size; + + ul{ + li { + &:not(:first-child):before{ + content: $mobile-separator; + margin-left: .2em; + } + } + } + } +} diff --git a/src/style/style.scss b/src/style/style.scss index 81d38d89..d40517c4 100644 --- a/src/style/style.scss +++ b/src/style/style.scss @@ -1,3 +1,4 @@ @import "./components/gallery-item"; @import "./components/document"; -@import "./components/team-member-proifile"; \ No newline at end of file +@import "./components/team-member-proifile"; +@import "./components/breadcrumbs";