vuematerial / vue-material

Vue.js Framework - ready-to-use Vue components with Material Design, free forever.
https://www.creative-tim.com/vuematerial
MIT License
9.9k stars 1.15k forks source link

[Feature request] Add badges #364

Closed mtpc closed 6 years ago

mtpc commented 7 years ago

See https://getmdl.io/components/#badges-section or http://www.material-ui.com/#/components/badge

marcosmoura commented 7 years ago

This will be done in the near future. Right before the components.

lmj0011 commented 7 years ago

@marcosmoura :eyes: :hourglass: ?

agnivade commented 7 years ago

Hi there ! Great project. I am currently planning to start a new project with Vue and material design. And badge is something that I need. Any estimates around when this is going to be completed ?

lmj0011 commented 7 years ago

@agnivade

here's some css you can use to implement it yourself for now.

  .badge:after{
    content:"";
    position: absolute;
    background: rgba(255, 0, 0, 0.85);
    height:1rem;
    top:1rem;
    right:1rem;
    width:1rem;
    text-align: center;
    line-height: 2rem;;
    font-size: 1rem;
    border-radius: 50%;
    color:white;
}

then apply it to a material design button, like this:

<md-button class="md-fab md-primary md-fab-bottom-right badge">
    <md-icon md-iconset="fa fa-list-alt"></md-icon>
</md-button>
agnivade commented 7 years ago

Wow, that is handy. Now, if I have to show some nos. inside the badge, do I put it inside the content: "" ?

kgrosvenor commented 7 years ago

This project is a bit dead now as its not being maintained...

I've been using this and it has a hell of a lot more features.

https://github.com/museui/muse-ui

lmj0011 commented 7 years ago

@agnivade

Wow, that is handy. Now, if I have to show some nos. inside the badge, do I put it inside the content: ""

yea, but the scaling may be wonky

lmj0011 commented 7 years ago

@kgrosvenor

thanks for lib suggestion. May check it out, when I need more features

I'm currently only using vue-material just for the floating action button.

lmj0011 commented 7 years ago

@kgrosvenor also you may have spoken too soon about the lib being dead

https://github.com/vuematerial/vue-material/commits/develop, some new action as of yesterday :joy_cat:

Samuell1 commented 7 years ago

@kgrosvenor @lmj0011 lib is under https://github.com/vuematerial organization and we have new contributor 👍

Samuell1 commented 6 years ago

Soon will be added

obrazok