| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The Chromium Authors. All rights reserved. | 2 * Copyright 2014 The Chromium Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 .crumbs { | 7 .crumbs { |
| 8 display: inline-block; | 8 display: inline-block; |
| 9 pointer-events: auto; | 9 pointer-events: auto; |
| 10 cursor: default; | 10 cursor: default; |
| 11 font-size: 11px; | 11 font-size: 11px; |
| 12 line-height: 17px; | 12 line-height: 17px; |
| 13 white-space: nowrap; | 13 white-space: nowrap; |
| 14 } | 14 } |
| 15 | 15 |
| 16 .crumbs .crumb { | 16 .crumbs .crumb { |
| 17 display: inline-block; | 17 display: inline-block; |
| 18 padding: 0 7px; | 18 padding: 0 7px; |
| 19 height: 18px; | 19 height: 18px; |
| 20 white-space: nowrap; | 20 white-space: nowrap; |
| 21 } | 21 } |
| 22 | 22 |
| 23 :host-context(.material) .crumb { | |
| 24 padding: 0px 4px 0px 11px; | |
| 25 cursor: pointer; | |
| 26 line-height: 18px; | |
| 27 margin: 4px 0px; | |
| 28 position: relative; | |
| 29 color: hsl(0, 0%, 35%); | |
| 30 } | |
| 31 | |
| 32 :host-context(.material) .crumb:not(.collapsed):first-child { | |
| 33 padding-left: 2px; | |
| 34 } | |
| 35 | |
| 36 :host-context(.material) .crumb:not(.collapsed):not(:first-child):before { | |
| 37 content: "\27E9"; | |
| 38 position: absolute; | |
| 39 left: 0px; | |
| 40 color: hsl(0, 0%, 35%); | |
| 41 width: 7px; | |
| 42 text-align: center; | |
| 43 } | |
| 44 | |
| 45 .crumbs .crumb.collapsed > * { | 23 .crumbs .crumb.collapsed > * { |
| 46 display: none; | 24 display: none; |
| 47 } | 25 } |
| 48 | 26 |
| 49 .crumbs .crumb.collapsed::before { | 27 .crumbs .crumb.collapsed::before { |
| 50 content: "\2026"; | 28 content: "\2026"; |
| 51 font-weight: bold; | 29 font-weight: bold; |
| 52 } | 30 } |
| 53 | 31 |
| 54 .crumbs .crumb.compact .extra { | 32 .crumbs .crumb.compact .extra { |
| 55 display: none; | 33 display: none; |
| 56 } | 34 } |
| 57 | 35 |
| 58 .crumbs .crumb.selected, .crumbs .crumb.selected:hover { | 36 .crumbs .crumb.selected, .crumbs .crumb.selected:hover { |
| 59 background-color: rgb(56, 121, 217); | 37 background-color: rgb(56, 121, 217); |
| 60 color: white; | 38 color: white; |
| 61 text-shadow: rgba(255, 255, 255, 0.5) 0 0 0; | 39 text-shadow: rgba(255, 255, 255, 0.5) 0 0 0; |
| 62 } | 40 } |
| 63 | 41 |
| 64 :host-context(.material) .crumb.selected { | |
| 65 color: hsl(0, 0%, 35%); | |
| 66 background-color: transparent !important; | |
| 67 } | |
| 68 | |
| 69 :host-context(.material) .crumb.selected:before { | |
| 70 color: hsl(217, 89%, 61%) !important; | |
| 71 } | |
| 72 | |
| 73 .crumbs .crumb:hover { | 42 .crumbs .crumb:hover { |
| 74 background-color: rgb(216, 216, 216); | 43 background-color: rgb(216, 216, 216); |
| 75 } | 44 } |
| 76 | |
| 77 :host-context(.material) .crumb:hover { | |
| 78 background-color: transparent; | |
| 79 color: hsl(0, 0%, 20%) !important; | |
| 80 } | |
| OLD | NEW |