N
N
Nikolai Kozlov2017-12-13 20:22:13
css
Nikolai Kozlov, 2017-12-13 20:22:13

How to quickly copy block styles with inner elements?

The task is this. Let's say I'm pulling a new template on the site. But there are blocks on the site for which the styles in the new template have not yet been made up.
And in order not to mess around for a long time, I want to transfer this entire block from the old template. How to quickly copy styles for a given block, including the styles of its nested elements. Maybe there is a browser extension?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolay, 2017-12-13
@nickolyashka

ChromeDevTools, layout using BEM methodology and store blocks in separate files. Or use the gists from github.

M
Maxim Timofeev, 2017-12-13
@webinar

We use sass (or less), we store block and element styles in separate files, we collect them using gulp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question