Mobile Styling

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-15-2018 10:18 PM
Has anyone changed or add some style sheets for mobile?
I need to have bigger fonts and bigger icons for mobile.
Any solution would be appreciated.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2018 12:58 AM
Hi,
For this you can use "CSS Media Queries". In this CSS will effective whenever its condition matches.
/* On screens that are 992px wide or less, the font size is 15px */
@media screen and (max-width: 992px) {
body {
font-size: 15px;
}
}
/* On screens that are 600px wide or less, font size is 10px */
@media screen and (max-width: 600px) {
body {
font-size: 10px;
}
}
Also you can refer this thread,
https://www.w3schools.com/css/css_rwd_mediaqueries.asp
Mark Correct or Helpful if it is so.
Regards,
Chandra Prakash

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2018 03:08 PM
Hi Chandra,
thanks for the reply. where in ServiceNow I can find it? we are in kingston release.
thanks,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2018 10:24 PM
Hi,
Try this in CSS - SCSS block of your widget
/* On screens that are 500px wide or less, the font size is 20px */
@media screen and (max-width: 500px) {
.deviceWidth{
font-size: 20px;
background-color: red;
}
}
/* On screens that are 200px wide or less, font size is 50px */
@media screen and (max-width: 200px) {
.deviceWidth {
font-size: 50px;
background-color: yellow;
and for HTML Template
<div>
<p class="deviceWidth">Test Fonts</p>
<div>
@media only screen and (max-width: XXX px) and (min-width: XXX px) {...}
Please let me know if you have any doubts.
Mark Correct or Helpful if it is so.
Regards,
Chandra Prakash