I
I
Ilnar252017-09-29 18:32:34
css
Ilnar25, 2017-09-29 18:32:34

How to write different styles in one line?

How to properly style dynamic content for the KONSTANTINOPOLSKY / KONSTANTIN KONSTANTINOVICH field. I use slim gem. It is necessary to put the last name in bold, and pull up the first and middle name after it. Here is an example code for slim

.bold_line
     = "#{order.client.first_name} / "  
 = order.client.name.short_name_to_ticket

59ce6602b3a1b718318476.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
N. Bekseitov, 2017-09-30
@Ilnar25

As an option:
But it is better to leave your version, as it is more understandable when reading.

R
Roman Mirilaczvili, 2017-09-29
@2ord

<span class="bold">Иванов</span>, <span>Иван Иваныч</span>

.bold { font-weight:bold; }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question