alfresco-ng2-components/lib/content-services/breadcrumb/dropdown-breadcrumb.component.scss
davidcanonieto e94ce4602b [ADF-2739] Improved breadcrumb logic (#3287)
* [ADF-2739] Long names in breadcrumb fixed

* [ADF-2739] Updated styles

* [ADF-2739] Fixing @mixin for breadcrumb

* [ADF-2739] Waiting for changes in demo-shell

* [ADF-2739] Fixed @mixin

* [ADF-2739] Fixed issue related to breadcrumb position

* [ADF-2739] Improved ngOnChanges call for breadcrumb

* [ADF-2739] Fixed issues with lint

* [ADF-2739] Removed comment in dropdown breadcrumb component file

* [ADF-2739] Changed recalculateNodes method from public to protected
2018-05-14 12:18:49 +01:00

75 lines
1.8 KiB
SCSS

@mixin adf-breadcrumb-dropdown-theme($theme) {
$primary: map-get($theme, primary);
$dropdownHorizontalOffset: 30px;
.adf {
&-dropdown-breadcrumb {
display: flex;
justify-content: flex-start;
width: 100%;
}
&-dropdown-breadcumb-trigger {
cursor: pointer;
padding: 0;
border: none;
background: transparent;
&:focus {
color: mat-color($primary);
outline: none;
}
}
&-dropdown-breadcrumb-item-chevron {
margin-top: 5px;
}
&-dropdown-breadcumb-trigger.isRoot {
cursor: not-allowed;
}
&-dropdown-breadcrumb-path {
width: 0;
height: 0;
overflow: hidden;
margin-top: 35px;
margin-left: -$dropdownHorizontalOffset;
&.mat-select {
width: 0;
}
}
&-current-folder {
text-align: left;
line-height: 25px;
margin-left: $dropdownHorizontalOffset;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
width: 75%;
}
&-current-folder.isRoot {
margin-left: 0;
}
&-dropdown-breadcrumb-path-option.mat-option {
height: 28px;
line-height: 28px;
padding: 0 12px;
font-size: 13px;
}
&-dropdown-breadcrumb-path-option.mat-option:first-child {
padding-top: 4px;
}
&-dropdown-breadcrumb-path-option.mat-option:last-child {
padding-bottom: 4px;
}
}
}