Tiddlywiki5: [IDEA] - adding some classesto replace whitespace with spans

Created on 3 Jun 2020  路  11Comments  路  Source: Jermolene/TiddlyWiki5

There are many places where   or just are used for styling of the UI and I'd propose replacing those with spans with classes like tc-span-margin-05, tc-span-margin-025, tc-span-margin-05-left for example

Most helpful comment

I like tc-gap-small, tc-gap-left-small etc.

All 11 comments

+1 in principle.

But if there are  , there should be html elements that follow. .. If so, there shouldn't be extra spans, if we can use existing elements.

But if there are  , there should be html elements that follow. .. If so, there shouldn't be extra spans, if we can use existing elements.

Yes I'm thinking the same

Apologies for the delay, I agree this would be a worthwhile improvement.

@Jermolene - so I'll try to come up with a PR in time

@Jermolene, what names would you prefer for the classes? I was thinking about classes that add a margin-right, a margin-left, and both a margin-right and margin-left of 0.5em (which should replace  ) ... we could call the classes like "tc-margin-05em, tc-margin-05-em-right, tc-margin-05em-left and so on ...?

we could call the classes like "tc-margin-05em, tc-margin-05-em-right, tc-margin-05em-left and so on ...?

IMO you shouldn't use the "05em" part in the name. If we want to change it to 0.4em or rem, the name would be invalidated.

tc-small-margin-xxxxx, tc-tiny-margin-xxxx would be 2 possibilities I can think of atm. or even

tc-push-left and tc-push-right may be more generic. You could use both margin and padding to push "content" out of the way.

Maybe tc-small-gap rather than push?

Maybe tc-small-gap rather than push?

hmmm, gap doesn't have a direction, which should be part of the class so tc-gap-left, tc-gap-right?

Perhaps tc-small-gap for margin-left+margin-right, tc-small-gap-left and tc-small-gap-right?

I am wondering about order, tc-gap-left-small?

I like tc-gap-small, tc-gap-left-small etc.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

saqimtiaz picture saqimtiaz  路  5Comments

TiddlyTweeter picture TiddlyTweeter  路  6Comments

twMat picture twMat  路  5Comments

dainkaplan picture dainkaplan  路  5Comments

0xMH picture 0xMH  路  6Comments