M
M
maxemga2021-02-02 21:33:53
css
maxemga, 2021-02-02 21:33:53

How to remove unnecessary code in CSS when writing in SASS?

I write in SASS and when you write in SASS justify-content: space-between;you get this in CSS:-

webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;

Or else, for example, when you write column-gap: 30px;, you get
-webkit-column-gap: 30px;
          column-gap: 30px;


Why is this and is it possible to cut it down somehow? For this is useless code that loads your code and it becomes even larger than in the same SASS, and also violates readability

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBird Rose, 2021-02-02
@maxemga

it's called - css property prefixes. and your sass is smarter than you and does everything right.
read https://itchief.ru/lessons/html-and-css/css-browse...
and google on this topic what they are for

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question