Blame view

bower_components/paper-card/README.md 1.93 KB
73bcce88   luigser   COMPONENTS
1
  
a1a3bc73   Luigi Serra   graphs updates
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <!---
  
  This README is automatically generated from the comments in these files:
  paper-card.html
  
  Edit those files, and our readme bot will duplicate them over here!
  Edit this file, and the bot will squash your changes :)
  
  The bot does some handling of markdown. Please file a bug if it does the wrong
  thing! https://github.com/PolymerLabs/tedium/issues
  
  -->
  
  [![Build Status](https://travis-ci.org/PolymerElements/paper-card.svg?branch=master)](https://travis-ci.org/PolymerElements/paper-card)
  
  _[Demo and API Docs](https://elements.polymer-project.org/elements/paper-card)_
  
  
  ##&lt;paper-card&gt;
  
  Material design: [Cards](https://www.google.com/design/spec/components/cards.html)
73bcce88   luigser   COMPONENTS
23
24
25
26
  
  `paper-card` is a container with a drop shadow.
  
  Example:
a1a3bc73   Luigi Serra   graphs updates
27
  
73bcce88   luigser   COMPONENTS
28
29
30
31
32
33
34
35
36
  ```html
  <paper-card heading="Card Title">
    <div class="card-content">Some content</div>
    <div class="card-actions">
      <paper-button>Some action</paper-button>
    </div>
  </paper-card>
  ```
  
a1a3bc73   Luigi Serra   graphs updates
37
38
39
40
41
42
43
44
  Example - top card image:
  
  ```html
  <paper-card heading="Card Title" image="/path/to/image.png">
    ...
  </paper-card>
  ```
  
73bcce88   luigser   COMPONENTS
45
  ### Accessibility
a1a3bc73   Luigi Serra   graphs updates
46
  
73bcce88   luigser   COMPONENTS
47
48
49
50
51
52
  By default, the `aria-label` will be set to the value of the `heading` attribute.
  
  ### Styling
  
  The following custom properties and mixins are available for styling:
  
a1a3bc73   Luigi Serra   graphs updates
53
54
55
56
57
58
59
60
61
62
  | Custom property | Description | Default |
  | --- | --- | --- |
  | `--paper-card-header-color` | The color of the header text | `#000` |
  | `--paper-card-header` | Mixin applied to the card header section | `{}` |
  | `--paper-card-header-text` | Mixin applied to the title in the card header section | `{}` |
  | `--paper-card-header-image` | Mixin applied to the image in the card header section | `{}` |
  | `--paper-card-header-image-text` | Mixin applied to the text overlapping the image in the card header section | `{}` |
  | `--paper-card-content` | Mixin applied to the card content section | `{}` |
  | `--paper-card-actions` | Mixin applied to the card action section | `{}` |
  | `--paper-card` | Mixin applied to the card | `{}` |