Blame view

bower_components/paper-tooltip/README.md 1011 Bytes
73bcce88   luigser   COMPONENTS
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
  # paper-tooltip
  
  `<paper-tooltip>` is a label that appears on hover and focus when the user
  hovers over an element with the cursor or with the keyboard. It will be centered
  to an anchor element specified in the `for` attribute, or, if that doesn't exist,
  centered to the parent node containing it.
  Example:
  
  ```html
      <div style="display:inline-block">
        <button>Click me!</button>
        <paper-tooltip>Tooltip text</paper-tooltip>
      </div>
      <div>
        <button id="btn">Click me!</button>
        <paper-tooltip for="btn">Tooltip text</paper-tooltip>
      </div>
  ```
  
  ### Styling
  The following custom properties and mixins are available for styling:
  
  Custom property | Description | Default
  ----------------|-------------|----------
  `--paper-tooltip-background` | The background color of the tooltip | `#616161`
  `--paper-tooltip-opacity` | The opacity of the tooltip | `0.9`
  `--paper-tooltip-text-color` | The text color of the tooltip | `white`
  `--paper-tooltip` | Mixin applied to the tooltip | `{}`