|
.container |
|
h1 The wide world of responsive, Bootstrap-powered card elements. |
|
br |
|
.row |
|
div.card3.col-sm-4(contentEditable="True") |
|
div |
|
div.cardhead |
|
h3.text-center Improved Product Card: .card3 |
|
img.img-responsive(src="http://fasttechcdn.com/products/120/1205700/1205700-1.jpg") |
|
div.cardcontent |
|
p Features of this card: |
|
ul |
|
li |
|
p Card title above image. |
|
li |
|
p Pure bootstrap + CSS3. |
|
li |
|
p No flexbox. |
|
p.alert.alert-success |
|
em Nota bene: |
|
| This card's mobile-friendliness has vastly improved over card1, because of a max-width on the div containing the image. |
|
li |
|
p Arbitrary HTML below image/title fold |
|
li |
|
p goes |
|
li |
|
p here |
|
form(role="form") |
|
.form-group |
|
label(for="nonsense") Nonsense |
|
input.form-control(type="text", id="nonsense") |
|
br |
|
div.card1.col-sm-4(contentEditable="True") |
|
div |
|
div.cardhead |
|
img.img-responsive(src="//placehold.it/300x168") |
|
h3 Basic Card: .card1 |
|
div.cardcontent |
|
p Features of this card: |
|
ul |
|
li |
|
p Image above the card title. |
|
p |
|
em Nota bene: |
|
| This card can be less than ideal for mobile, due to poor image resizing. |
|
li |
|
p Arbitrary HTML below image/title fold |
|
li goes |
|
li here |
|
form(role="form") |
|
.form-group |
|
label(for="nonsense") Nonsense |
|
input.form-control(type="text", id="nonsense") |
|
br |
|
div.card2.col-sm-4(contentEditable="True") |
|
div |
|
div.cardhead |
|
div.cardtitles |
|
h3 Card Title Text how long can this get without making this break |
|
h4 Subtitle text if needed? |
|
div.cardcontent |
|
p colored text? |
|
ul |
|
li arbitrary |
|
li html |
|
li goes |
|
li here |
|
form(role="form") |
|
.form-group |
|
label(for="nonsense") Nonsense |
|
input.form-control(type="text", id="nonsense") |
|
br |
|
div.card2.col-sm-4(contentEditable="True") |
|
div |
|
div.cardhead |
|
div.cardtitles |
|
h3 Material-ish: .card2 |
|
h4 A versitile info-card. |
|
div.cardcontent |
|
h4 To Do |
|
p |
|
i on this card style |
|
pre |
|
| - [ ] incorporate color scheme |
|
| - [ ] incorporate baseline grid calculations for padding & spacing |
|
| - [ ] test with all kinds of sizes of content |
|
| - [ ] 1px on right uncovered in middle card. Where's that coming from? |
|
h4 Features of this card: |
|
h5 Good background images |
|
p The background image fills its container along the limiting dimension. |
|
p.alert.alert-info |
|
em Nota bene: |
|
| Ambiance images work best here, though they are not the only images that can fit. |
|
p.alert.alert-warning |
|
em Careful! |
|
| This may not be appropriate for product imagery. |
|
h5 Title overlay |
|
p A title overlay appears in the header. |
|
p.alert.alert-danger |
|
em |
|
span.fa.fa-warning |
|
| Take note: |
|
| This feature is not compatible with IE<10, thanks to use of flexbox. |
|
h5 Refined style |
|
p Subtle refinements to styles create a durable presentation. |
|
form(role="form") |
|
.form-group |
|
label(for="nonsense") Nonsense |
|
input.form-control(type="text", id="nonsense") |
|
br |
|
.row |
|
.col-md-12 |
|
p new row |