ui: Update Breadcrumbs styling (#7687)

pull/7857/head
Kenia 5 years ago committed by John Cowen
parent 7f3b9d04ba
commit 893ee7c237

@ -1,23 +1,11 @@
@import './skin'; @import './skin';
@import './layout'; @import './layout';
%breadcrumbs li > * { %breadcrumbs li a {
@extend %breadcrumb; @extend %crumbs;
}
%breadcrumbs strong {
@extend %breadcrumb-selected;
} }
%breadcrumbs-milestone { %breadcrumbs li:not(:first-child) a {
@extend %breadcrumbs; @extend %breadcrumb;
} }
%breadcrumbs-milestone li:first-child > * { %breadcrumbs li:first-child a {
@extend %breadcrumb-milestone; @extend %breadcrumb-milestone;
} }
%breadcrumbs-filesystem {
@extend %breadcrumbs;
}
%breadcrumbs-filesystem li:not(:first-child) > * {
@extend %breadcrumb-path;
}
%breadcrumbs-filesystem li:first-child > * {
@extend %breadcrumb-folder;
}

@ -1,11 +1,15 @@
%breadcrumbs { %breadcrumbs > li {
list-style-type: none;
display: inline-flex; display: inline-flex;
} }
%breadcrumbs li > * { %breadcrumb-milestone::before {
display: inline-flex; margin-right: 4px;
align-items: center; display: inline-block;
}
%breadcrumb {
margin-left: 8px;
} }
%breadcrumbs li > *::before, %breadcrumb::before {
%breadcrumbs li { margin-right: 8px;
margin-right: 0.5em; display: inline-block;
} }

@ -1,36 +1,19 @@
%breadcrumbs li { %crumbs {
list-style-type: none; color: $gray-500;
text-decoration: none;
} }
%breadcrumb::before { %crumbs:hover {
line-height: 1; color: $blue-500;
font-size: 0.7em; text-decoration: underline;
margin-top: 0.2em;
} }
%breadcrumb::before { %crumbs::before {
content: ''; text-decoration: none;
} }
%breadcrumb-milestone::before { %breadcrumb-milestone::before {
content: ''; @extend %with-chevron-left-mask, %as-pseudo;
} background-color: $gray-500;
%breadcrumb-path::before {
content: '/';
}
%breadcrumb-folder::before {
position: relative;
top: 2px;
margin-top: -4px;
@extend %with-folder-outline-color-icon;
@extend %as-pseudo;
}
%breadcrumb {
color: $color-action;
}
%breadcrumb-selected {
color: $gray-400;
} }
%breadcrumb::before { %breadcrumb::before {
color: rgba($color-action, 0.5); content: '/';
} color: $gray-500;
%breadcrumb-selected::before {
color: $gray-300;
} }

@ -7,7 +7,6 @@
<ol> <ol>
<li><a data-test-back href={{href-to 'dc.services'}}>All Services</a></li> <li><a data-test-back href={{href-to 'dc.services'}}>All Services</a></li>
<li><a data-test-back href={{href-to 'dc.services.show'}}>Service ({{item.Service}})</a></li> <li><a data-test-back href={{href-to 'dc.services.show'}}>Service ({{item.Service}})</a></li>
<li><strong>Instance</strong></li>
</ol> </ol>
</BlockSlot> </BlockSlot>
<BlockSlot @name="header"> <BlockSlot @name="header">

Loading…
Cancel
Save