Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2020-11-27 12:38:30

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: Contemporary font sizing for the concernedly lazy

Destry wrote #327099:

Your input is always appreciated, Pete. Designers don’t know everything.

These two are pretty bloody close, in fairness.

It’s all good, I like being made to think about things more closely, it’s one of the reasons I’m here.

Offline

#14 2020-11-27 12:47:03

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,250
Website GitHub

Re: Contemporary font sizing for the concernedly lazy

And Stef learns a new CSS thing today. clamp(). Wow. That’s super cool, thanks Phil! Imma go play with that on my next project.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#15 2020-11-27 13:00:17

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,909
Website

Re: Contemporary font sizing for the concernedly lazy

philwareham wrote #327091:

font: 12px / 14px;... . . . first value is font-size, second is line-height.

Ha! I never paid attention to the missing -size on that rule. So it’s a kind of shorthand, then. Mystery solved.

Last edited by Destry (2020-11-27 13:00:39)

Offline

#16 2020-11-27 17:31:57

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,072
Website Mastodon

Re: Contemporary font sizing for the concernedly lazy

philwareham wrote #327089:

Not meaning to piss on Tailwind, …, and throwing shade on it just like they now do to Bootstrap (which they all loved 4 years ago).

So if not Bootstrap what do all the cool young turks like these days?


…. texted postive

Offline

#17 2020-11-27 17:38:15

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Contemporary font sizing for the concernedly lazy

Well it seems to be Taiilwind right now but it’ll be something else in a couple of months, no doubt.

Offline

#18 2020-11-27 18:07:49

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: Contemporary font sizing for the concernedly lazy

bici wrote #327112:

So if not Bootstrap what do all the cool young turks like these days?

You could watch this for updates: stateofcss.com – they’ve taken and closed the survey, presumably they’re collating and presenting the data. I very much enjoyed poking through the 2019 results when they arrived.

Edit: frameworks from 2019

Last edited by gaekwad (2020-11-27 18:09:20)

Offline

#19 2020-11-28 04:54:04

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

Re: Contemporary font sizing for the concernedly lazy

philwareham wrote #327091:

Do you mean this shorthand?:

font: 12px / 14px;...

If so, then the first value is font-size, second is line-height.

The line height has no unit.

Offline

#20 2020-11-28 07:55:44

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 3,058
Website

Re: Contemporary font sizing for the concernedly lazy

GugUser wrote #327124:

The line height has no unit.

tut tut … :-) The line-height property can take a lenght as value (since CSS1 !). MDN doc

But anything other than a number (unitless) and the keyword normal is not such a good idea™.


Where is that emoji for a solar powered submarine when you need it ?
Sand space – admin theme for Textpattern

Offline

#21 2020-11-28 08:20:06

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

Re: Contemporary font sizing for the concernedly lazy

Yeah I’d never use that rule in production, it was just for an explanation!

Offline

#22 2020-11-28 10:49:27

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,134
GitHub

Re: Contemporary font sizing for the concernedly lazy

PS: I love how civilised this is, peak Textpattern right here.

Offline

Board footer

Powered by FluxBB