This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 6 - Pages: 1 - Last Post: 10 Apr 22, 13:13 Last Post By: JeffTucker Threads: [ Previous | Next ]
JeffTucker

Posts: 8,436
Registered: 31-Jan-2006
Font size in Minimal
Posted: 5 Apr 22, 14:17
 
  Click to reply to this thread Reply
Changing Minimal > General > Album font size has no effect on the font sizes of the finished album.

The problem is in common.css. The font-size:${albumFontSize}px; needs to be applied to the html class, not the body.
davidekholm

Posts: 3,624
Registered: 18-Oct-2002
Re: Font size in Minimal
Posted: 8 Apr 22, 19:04   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Thanks for reporting
Laza

Posts: 1,961
Registered: 6-Sep-2005
Re: Font size in Minimal
Posted: 8 Apr 22, 19:05   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
Have I changed this? It's odd though why html is different from body.
JeffTucker

Posts: 8,436
Registered: 31-Jan-2006
Re: Font size in Minimal
Posted: 8 Apr 22, 20:12   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
It's because you're using rem font sizes in the album, and by definition, rem font sizes relate to the font size of the root of the document, which is html, not body. It's one of the more obscure points of CSS, something I didn't know until I went hunting for it!

The setting isn't working in Minimal 8.1, either. It works in Minimal 7.2, where the ${albumFontSize} is applied to html.
Laza

Posts: 1,961
Registered: 6-Sep-2005
Re: Font size in Minimal
Posted: 9 Apr 22, 09:22   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I just found it. I almost never use html for CSS rules, rather use em for font sizes.
JeffTucker

Posts: 8,436
Registered: 31-Jan-2006
Re: Font size in Minimal
Posted: 9 Apr 22, 14:02   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Laza wrote:
I almost never use html for CSS rules....

Neither do I, other than making width and height 100%. It's very strange to be putting a font-size on html, since there should never be any content there - that's what body is for! But for rem, that's what the standard requires. That was news, to me!
JeffTucker

Posts: 8,436
Registered: 31-Jan-2006
Re: Font size in Minimal
Posted: 10 Apr 22, 13:13   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Fixed in Minimal 8.4. :)
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums