This is a migrated thread and some comments may be shown as answers.

Badge style

6 Answers 194 Views
Button (Mobile)
This is a migrated thread and some comments may be shown as answers.
Voss
Top achievements
Rank 1
Voss asked on 13 Aug 2014, 01:02 PM
Is it possible to style the badge?

Looking to make it larger and possibly move it down and in a bit.

thanks for any help.

v.

6 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 14 Aug 2014, 08:11 AM
Hi Voss,

You can customize the appearance of the badge using custom CSS rules. As an example:
.km-ios .km-badge,
.km-ios7 .km-badge,
.km-blackberry .km-badge,
.km-android .km-badge,
.km-wp .km-badge,
.km-flat .km-badge{
    min-width: 2.2em;
    height: 2.2em;
    line-height: 2.2em;
    top: 0;
}
 
Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Voss
Top achievements
Rank 1
answered on 14 Aug 2014, 12:33 PM
Iliana,
I copied that into my site.css, but do not see any difference in my badges.

Can you supply a small example?

thanks.
0
Iliana Dyankova
Telerik team
answered on 14 Aug 2014, 12:44 PM
Hi Voss,

Here is a simple example which demonstrates the suggested solution is action. If you still experience any issues please modify the example and demonstrate your current implementation - this way I would be able to check what exactly is going wrong and provide concrete recommendations.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Voss
Top achievements
Rank 1
answered on 15 Aug 2014, 12:59 PM
Can you provide an example without the       var app = new kendo.mobile.Application(document.body);?

I cannot get the demo work without the mobile app part.

thanks.
0
Voss
Top achievements
Rank 1
answered on 18 Aug 2014, 01:07 PM
If I remove this  var app = new kendo.mobile.Application(document.body); it does not work.
0
Iliana Dyankova
Telerik team
answered on 18 Aug 2014, 02:05 PM
Hello Voss,

In this case you can use the following CSS rule: 
.km-badge{
   min-width: 2.2em;
   height: 2.2em;
   line-height: 2.2em;
   top: 0;
}
Here is the updated example.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Button (Mobile)
Asked by
Voss
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Voss
Top achievements
Rank 1
Share this question
or