Introduce mixin for global breadcrumb styles. Thus we can avoid the use of component styles in a global style sheet. Further the number of *breadcrumb.sass files was reduced from three to two (global and component)
parent
e74cf99ef0
commit
303dd6bf9f
@ -1,3 +1,15 @@ |
||||
@import "src/assets/sass/helpers" |
||||
|
||||
.op-wp-breadcrumb |
||||
.active-parent-select |
||||
min-width: 320px |
||||
@include global-breadcrumb-styles |
||||
height: initial |
||||
|
||||
&--ellipsed |
||||
max-width: 420px |
||||
@include text-shortener |
||||
|
||||
&--active-parent-select |
||||
min-width: 320px |
||||
|
||||
@media screen and (max-width: 1248px) |
||||
margin-top: 0 |
||||
|
@ -1,49 +0,0 @@ |
||||
%breadcrumb--default-font |
||||
@include default-font(var(--breadcrumb-font-color), var(--breadcrumb-font-size), bold) |
||||
|
||||
#breadcrumb, |
||||
.op-wp-breadcrumb |
||||
margin-top: 10px |
||||
height: initial |
||||
display: none |
||||
@include default-transition |
||||
height: var(--breadcrumb-height) |
||||
overflow: hidden |
||||
background: none repeat scroll 0 0 |
||||
background-color: var(--body-background) |
||||
border: none |
||||
width: auto |
||||
position: relative |
||||
&.nosidebar |
||||
// 7px of the icon to align breadcrumb with content |
||||
margin-left: -7px |
||||
ul |
||||
margin: 0 |
||||
|
||||
a |
||||
font-size: 12px |
||||
color: var(--content-link-color) |
||||
font-weight: normal |
||||
|
||||
ul.op-breadcrumb |
||||
height: initial |
||||
li |
||||
float: left |
||||
margin: 0 5px 0 0 |
||||
padding: 0 |
||||
line-height: 20px |
||||
|
||||
.op-wp-breadcrumb--ellipsed |
||||
max-width: 420px |
||||
@include text-shortener |
||||
|
||||
li |
||||
@extend %breadcrumb--default-font |
||||
// TODO was lighten($breadcrumb-font-color, 20) |
||||
color: #666 |
||||
list-style-type: none |
||||
|
||||
&.-show |
||||
display: block |
||||
|
||||
|
Loading…
Reference in new issue