summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/bookmarks/toolbar.html
blob: 91cc1b3e836bc964038fe3a9ebc8cafca84507f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<style include="shared-style">
  :host {
    position: relative;
  }

  cr-toolbar {
    flex: 1;
    --cr-toolbar-field-margin:
        calc(var(--sidebar-width) + var(--splitter-width));
  }

  cr-icon-button {
    justify-content: flex-end;
    margin: 4px;
  }

  @media (prefers-color-scheme: light) {
    cr-icon-button {
      --cr-icon-button-fill-color: currentColor;
    }
  }

  :host(:not([narrow_])) cr-toolbar-selection-overlay {
    --selection-overlay-padding: var(--card-padding-side);
    --cr-toolbar-field-margin: var(--sidebar-width);
    --selection-overlay-max-width: var(--card-max-width);
  }
</style>
<cr-toolbar page-name="$i18n{title}"
    has-overlay$="[[showSelectionOverlay]]"
    clear-label="$i18n{clearSearch}"
    search-prompt="$i18n{searchPrompt}"
    narrow="{{narrow_}}"
    autofocus
    on-search-changed="onSearchChanged_">
  <cr-icon-button iron-icon="cr:more-vert"
        id="menuButton"
        title="$i18n{organizeButtonTitle}"
        on-click="onMenuButtonOpenTap_"
        aria-haspopup="menu"></cr-icon-button>
</cr-toolbar>
<cr-toolbar-selection-overlay show="[[showSelectionOverlay]]"
    delete-label="$i18n{delete}"
    cancel-label="$i18n{cancel}"
    selection-label="[[getItemsSelectedString_(selectedItems_.size)]]"
    delete-disabled="[[!canDeleteSelection_(selectedItems_)]]"
    on-delete-selected-items="onDeleteSelectionTap_"
    on-clear-selected-items="onClearSelectionTap_">
</cr-toolbar-selection-overlay>