| /* Copyright 2022 The Chromium Authors |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. */ |
| |
| /* #css_wrapper_metadata_start |
| * #type=style |
| * #import=chrome://resources/cr_elements/cr_shared_vars.css.js |
| * #css_wrapper_metadata_end */ |
| |
| :host { |
| display: flex; |
| flex-direction: column; |
| } |
| |
| .dialog-title { |
| color: var(--cr-primary-text-color); |
| font-size: 15px; |
| font-weight: normal; |
| line-height: 22px; |
| margin: 0; |
| padding-block-end: 16px; |
| padding-block-start: 16px; |
| } |
| |
| .list-with-header > div:first-of-type { |
| border-top: var(--cr-separator-line); |
| } |
| |
| .website-column { |
| align-items: center; |
| display: flex; |
| flex: 1; |
| } |
| |
| .website-column .text-elide { |
| color: var(--cr-primary-text-color); |
| } |
| |
| .username-column { |
| display: flex; |
| flex: 1; |
| margin: 0 8px; |
| } |
| |
| .password-column { |
| align-items: center; |
| display: flex; |
| flex: 1; |
| } |
| |
| .password-field { |
| background-color: transparent; |
| border: none; |
| flex: 1; |
| height: 20px; |
| width: 0; |
| } |
| |
| .type-column { |
| align-items: center; |
| display: flex; |
| flex: 2; |
| overflow: hidden; |
| } |
| |
| .ellipses { |
| flex: 1; |
| max-width: fit-content; |
| overflow: hidden; |
| text-overflow: ellipsis; |
| white-space: nowrap; |
| } |
| |
| .elide-left { |
| /* The following non-flex directives allow eliding long originUrls from |
| * the left. Forcing rtl should not cause an issue for right-to-left |
| * languages in this case, since valid URL characters are restricted to |
| * ASCII. |
| */ |
| direction: rtl; |
| } |
| |
| .elide-left > span { |
| direction: ltr; |
| /* This styling is necessary to fix the display of domains starting with |
| * numbers. |
| */ |
| unicode-bidi: bidi-override; |
| } |
| |
| site-favicon { |
| margin-inline-end: 16px; |
| min-width: 16px; |
| } |
| |
| input.password-input, |
| cr-input.password-input::part(input), |
| #leakedPassword { |
| /* Since passwords are displayed with an input element, this is |
| * necessary to prevent Chrome from using the operating system's font |
| * instead of the Material Design font. |
| * TODO(dbeam): why not font: inherit? */ |
| <if expr="is_linux or is_chromeos"> |
| font-family: 'DejaVu Sans Mono', monospace; |
| </if> |
| <if expr="is_win"> |
| font-family: 'Consolas', monospace; |
| </if> |
| <if expr="is_macosx"> |
| font-family: 'Menlo', monospace; |
| </if> |
| } |