Don’t write for buttons in CSS background-color:#a46497; color:#fff; margin: 0;
-
EN:
Don’t write for buttons in CSS margin: 0; background-color:#a46497; color:#fff;It’s extremely infuriating that you cling to the violet color of the buttons everywhere!
You know very well that we will ALWAYS recolor, but you enter in the main CSS /wp-content/plugins/woocommerce/assets/css/woocommerce.css all the colors we do NOT need!If you would normally write CSS:
.button.alt, button { background-color:#a46497; color:#fff; }
well, it could have been easily repainted.
but you write in a perverted way, indicating a bunch of classes starting from body:
.woocommerce #respond input#submit.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt { background-color:#a46497; color:#fff; }
why do we need all these classes?
it is clear that on the site buttons and links in the form of buttons are painted in 1 or 2 colors. why for each type of buttons to specify the color in css?as a result, repaint and set your own color is unrealistic. you have to open your CSS file and close all your colors.
if you like the purple color so much – make a separate css file so that you can turn it off or delete it or replace the colors in it through autocorrect.
the same is true for buttons with
margin: 0;
You know perfectly well that NEVER buttons are placed close to anything. always leave a margin or padding. But you’re creating extra work for us. Again you have to edit your main file!* * *
RU:
Не пишите для кнопок в CSS margin: 0; background-color:#a46497; color:#fff;Чрезвычайно бесит что вы везде цепляете фиолетовый цвет кнопок!
Вы же прекрасно знаете что мы ВСЕГДА будем перекрашивать, но вы вписываете в основной CSS /wp-content/plugins/woocommerce/assets/css/woocommerce.css все НЕнужные нам цвета!Если бы вы по-нормальному писали CSS:
.button.alt, button { background-color:#a46497; color:#fff; }
то ещё ладно, можно было легко перекрасить.
но вы же пишите по-извращенски, указывая кучу классов начиная с body:
.woocommerce #respond input#submit.alt,.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt { background-color:#a46497; color:#fff; }
зачем нам все эти классы?
понятно что на сайте кнопки и ссылки в виде кнопок красят в 1 или 2 цвета. зачем для каждого типа кнопок указывать цвет в css?в итоге перекрасить и задать свой цвет нереально. приходится открывать ваш CSS файл и закрывать все ваши цвета.
если вам так нравится фиолетовый цвет – сделайте отдельный css файл, чтобы его можно было отключить или удалить или в нём заменить цвета через автозамену.
аналогично обстоят дела для кнопок с
margin: 0;
Вы же прекрасно знаете что НИКОГДА кнопки не ставят вплотную к чему бы то ни было. всегда оставляют отступ margin или padding. Но вы создаёте для нас дополнительную работу. Опять приходится править ваш основной файл!
- The topic ‘Don’t write for buttons in CSS background-color:#a46497; color:#fff; margin: 0;’ is closed to new replies.