silexlabs / Silex

Silex is an online tool for visually creating static sites with dynamic data. With the free/libre spirit of internet, together.
https://www.silex.me
GNU Affero General Public License v3.0
2.34k stars 586 forks source link

How to change style of text inline #1067

Closed sidmint closed 2 years ago

sidmint commented 4 years ago

Suppose in a sentence, I want few words to have different colours and sizes within the same line. One way of doing it is by using multiple elements, where needed, each having different styles but it would be very delicate arrangement prone to disturbances and not efficient. Editing html code must be a good way but I don't know that yet. So is there another way? It's simple to do in a word processor app by simply selecting a portion of a sentence and changing its property. And that happens in Silex too, like for Bold; Underline; Italics, but not for colour and size. Whole style must be changed for changing the colour and size, unlike Bold; Underline; Italics. So may be this is a feature request if so applies and there's no other easy way.

lexoyo commented 4 years ago

Hello @sidmint This is a very good question What I do usually is put a style on text, let's say italic and then I style the italic in the style editor : I remove the italic appearance of italic text, I change color and size... I do the same with bold or underlined Do you see what I mean? Does it feal right to you? Maybe I should add other "inline" tags like span or maybe span1, span2...?

sidmint commented 4 years ago

Oh wow, that's a clever way to do it, I could not think of it. Thanks a lot.

sidmint commented 4 years ago

Though, it would be easier if there's a more straight forward way.

lexoyo commented 4 years ago

@sidmint so I am thinking I should add 3 buttons which add a span tag around the selection with css class name .style1, .style2 and .style3

Do you think it is enough? Is it a good css class names?

Also I wonder how you understand the style editor so well. Most people I know have hard times understanding how to style text in Silex. Did you learn with the docs or videos or does it feel obvious to you?

sidmint commented 4 years ago

Do you think it is enough? Is it a good css class names?

It would be helpful indeed, though still being limited due to a bigger issue as I indicated here #1072. And names look good.

Also I wonder how you understand the style editor so well. Most people I know have hard times understanding how to style text in Silex. Did you learn with the docs or videos or does it feel obvious to you?

Learning style management: I think my fortunate past experience with Libreoffice Writer is helping me and I was pretty much unaware of these things before that. Learning Silex: I've learnt Silex mostly from the Youtube videos, specially the two elaborate official webinars available as of now, those two webinars were very necessary. It gave me a good kick start and I feel blessed to have learnt even more now after using the software.

lexoyo commented 4 years ago

Thank you so much for the feedback @sidmint !

sidmint commented 4 years ago

Thank YOU so much for helping to make Silex a reality!