W
W
weranda2020-07-30 18:25:30
css
weranda, 2020-07-30 18:25:30

How to concatenate CSS selectors in Python?

Greetings.
The question has arisen about how you can use Python to make it out of this:

.foo { color: #ff0000; }
.bar { color: rgba(255, 0, 0, 1); }

Here it is: Surely there is some kind of library for combining styles scattered throughout the file, including inside media queries. Do you know something like that? I honestly searched and couldn't find it.
.bar,.foo{color:red}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question