materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Add a toolbar to a card

Open abigtoe opened this issue 11 years ago • 4 comments

Material design allows one to add a toolbar to a card. See:

layout_structure_toolbars4

and here:

google-material2

It would be great if you could extend the navbar to cards

the code would look something like this

<div class='card'>
    <div class='card-toolbar'>
         <ul class='card-toolbar'>
              <li>.action icons here </li>
        </ul>
    </div>
    <div class='card-image'> ... </div>
   <div class='card-content'>...</div>
</div>

abigtoe avatar Feb 10 '15 03:02 abigtoe

Good thought!

Mahesh22ye avatar Feb 11 '15 09:02 Mahesh22ye

anyone seen this developed somewhere even as an alpha, or an addon for materialize perhaps ?

romant avatar Jan 29 '16 00:01 romant

The feature always existed. Hasn't anybody used cards every before?

Cards have no padding. That is they are optimized for use with other if not all components.

<div class="card"> <nav> <ul> <li><a href="#">Home</a></li> </ul> </nav> <div class="card-content"> Lorem ipsum dolor sit amet consectetur, adipisicing elit. Alias laudantium dicta nihil reiciendis, facere atque libero distinctio neque sunt, aliquam voluptates cum officia nesciunt. Adipisci similique dolores tempore quae veritatis! </div> </div>

Try replacing nav element with some other component. They are gonna work like a charm.

samlovescoding avatar Nov 19 '17 10:11 samlovescoding

Also for some reason GitHub didnt beautify my HTML. So use this http://htmlformatter.com/ to see what i wrote.

samlovescoding avatar Nov 19 '17 10:11 samlovescoding