summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/settings/settings_page/settings_subheader.html
blob: ad3f437d7c673f95b25f9e29e6883e8862952e8b (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
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-icons/iron-icons.html">
<link rel="import" href="chrome://md-settings/settings_shared_css.html">

<dom-module id="settings-subheader">
  <template>
    <style include="settings-shared">
      :host {
        display: block;
        margin: 8px 0 16px 0;
      }

      :root {
        --iron-icon-fill-color: var(--settings-nav-grey);
      }

      paper-icon-button {
        /* The inner icon is 20px in size. paper-icon-button has 8px padding. */
        height: 36px;
        /* Centers the ripple on the icon with appropriate margin on right. */
        margin: 0 12px 0 -8px;
        width: 36px;
      }

      h2 {
        color: var(--settings-nav-grey);
        font-size: 107.6923%; /* go to 14px from 13px */
      }
    </style>
    <div class="settings-box first">
      <paper-icon-button icon="arrow-back" on-tap="onTapBack_">
      </paper-icon-button>
      <h2>[[pageTitle]]</h2>
    </div>
  </template>
  <script src="settings_subheader.js"></script>
</dom-module>