Responsiveness font scaling?

2 Answers 228 Views
General Discussions MediaQuery
Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
Blazorist asked on 30 Aug 2021, 05:13 PM

Hello.

I am testing the widgets and I see that these, in general, use non-scalable units. Consequently what I am doing is overwriting the CSS applied to these to get a responsiveness site. This takes quite a bit of time which is why I ask you if there is a relatively simple way to scale the font size of the components based on the viewport size?

Regards,

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimo
Telerik team
answered on 02 Sep 2021, 08:50 AM

Hello Ludwig,

It is possible to switch our components to a scalable font-size with a few selectors. Try the following:

body .k-widget,
body .k-button,
body .k-animation-container {
  font-size: max(1.25vw, 16px);
}

I may be missing something, but the above rule should be a good starting point that includes pretty much everything that our components render. If needed, add more classes in the same fashion. The "body" part is used only to increase the CSS specificity.

On a side note, you can consider posting a feature request in the Themes feedback portal. In this way, we will be able to measure the community interest and prioritize.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
answered on 02 Sep 2021, 03:31 PM

I've made some CSS replacements but  not the selector that you mention.  I will try it.

Thanks Dimo for your answer.  

Ludwig.


 

 

 

Tags
General Discussions MediaQuery
Asked by
Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
Answers by
Dimo
Telerik team
Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
Share this question
or