import { html } from 'chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js';
import 'chrome://resources/cr_elements/cr_shared_vars.css.js';
const styleMod = document.createElement('dom-module');
styleMod.appendChild(html `
  <template>
    <style>

: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? */

  font-family: 'DejaVu Sans Mono', monospace;



}
    </style>
  </template>
`.content);
styleMod.register('passwords-shared');
