Large Font

Dfferent Size (mobile, pc) possible? - Large Font

Dfferent Size (mobile, pc) possible?

by stefan-franz » Sat Mar 16, 2019 11:27 am

Hallo, great extension.

is it possible, to adjust the size different anywhere.
Size on Smartphone bigger
On PC normal?

Lg Stefan
stefan-franz
Registered User
Posts: 77
Joined: Mon Mar 11, 2019 7:29 pm
Contact:

Re: Dfferent Size (mobile, pc) possible?

by HiFiKabin » Sat Mar 16, 2019 11:41 am

Yes it is with a simple edit to a file. Just bear in mind that this will effect ALL users who have Large Font enabled, it will have no effect to users who do not have it enabled.

Download and unzip the attached, disable Large Font, Delete the files, Upload the new files and enable. Purge your BROWSERS Cache.

Normal font on everything wider than 700px, large font on everything narrower than 700px

Tested locally and working as expected, but please let me know if it doesn't give you the results you hoped for.


largefont_mobile.zip
(17.7 KiB) Downloaded 9 times
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 4063
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Dfferent Size (mobile, pc) possible?

by stefan-franz » Sat Mar 16, 2019 12:10 pm

Hallo, thanks for your great support - but my smartphone hast 1024x1920 (WxH)

Is it possible to make 2 separate Sizes:
One für Mobile Screen
One for PC Screen?
I think, on mobile device there another html code from the style - am i right?

If is much work, i can use your normal extension - but separately size were MEGA!

Best Regards, Stefan
stefan-franz
Registered User
Posts: 77
Joined: Mon Mar 11, 2019 7:29 pm
Contact:

Re: Dfferent Size (mobile, pc) possible?

by HiFiKabin » Sat Mar 16, 2019 12:20 pm

Its simple enough to change.

OPEN

hifikabin/largefont/styles/prosilver/template/event/overall_header_stylesheets_after.html

FIND

@media only screen and (max-width: 700px), only screen and (max-device-width: 700px)

CHANGE both instances of 700px to 1024px

SAVE>UPLOAD>PURGE CACHE

I will do some thinking about this and see if I can come up with a compromise solution that works.
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 4063
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Dfferent Size (mobile, pc) possible?

by stefan-franz » Sat Mar 16, 2019 12:30 pm

Hallo, thank you.

For me, the best solution would be if for mobile view (smartphone, tablet) and PC view each had its own switch. Due to the display pixel I think that it does not the perfekt solution. If the tablet is big enough, the user can switch to the pc version of the site. Otherwise he looks the size of his smartphones.
But to know, that is possible on depending the px is great.
Thank you very much for your support.

Lg Stefan
stefan-franz
Registered User
Posts: 77
Joined: Mon Mar 11, 2019 7:29 pm
Contact:

Re: Dfferent Size (mobile, pc) possible?

by HiFiKabin » Sat Mar 16, 2019 1:03 pm

The way that phpBB is written you can have something happen at any screen width you choose, the problem is choosing the most suitable width where a 'hand held' device starts and a PC stops.

In your opinion is 1024px the correct place to make the change?
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 4063
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact:

Re: Dfferent Size (mobile, pc) possible?

by stefan-franz » Sat Mar 16, 2019 1:16 pm

Yes i think. Until 1024 Handhelds going.

Lg Stefan
stefan-franz
Registered User
Posts: 77
Joined: Mon Mar 11, 2019 7:29 pm
Contact:

Re: Dfferent Size (mobile, pc) possible?

by stefan-franz » Sat Mar 16, 2019 1:22 pm

I found the right name for the two views:
Desktop and Responsive Style
I think that's the only future save way to separate it. What happend, if in may be 2 years the smartphones have 4K Displays? - but a 6" Display....

Best Regards (Party-DJ) Stefan
stefan-franz
Registered User
Posts: 77
Joined: Mon Mar 11, 2019 7:29 pm
Contact:

Re: Dfferent Size (mobile, pc) possible?

by HiFiKabin » Mon Mar 18, 2019 5:05 pm

Fully updated version now available HERE

You can increase all font size, just for mobile devices, or both
User avatar
HiFiKabin
Community Team Member
Community Team Member
Posts: 4063
Joined: Wed May 14, 2014 9:10 am
Location: Swearing at the PC, UK
Name: James
Contact: