Подскажите, пожалуйста, как округлит края кнопок "купить", "Добавить в корзину", "Быстрый заказ"? Шаблон Осень.
2
Как Округлит Края Кнопки "купить", "добавить В Корзину", "быстрый Заказ"
Автор Konlino, 14 окт. 2015 16:11
вид кнопок купить заказ
Сообщений в теме: 3
#1
Отправлено 14 Октябрь 2015 - 16:11
#2
Отправлено 14 Октябрь 2015 - 17:06
Konlino (14 Октябрь 2015 - 16:11) писал:
Подскажите, пожалуйста, как округлит края кнопок "купить", "Добавить в корзину", "Быстрый заказ"? Шаблон Осень.
Здравствуйте.
Зайдите в админ. панель -> Сайт -> Редактор шаблонов -> Стили -> main.css, найдите код:
#category_view_type.grid_view #product_list li .ajax_add_to_cart_button{border:none!important;display:inline;white-space:nowrap;float:none;clear:both;*padding-top:7px;*line-height:45px !important;}
Замените на:
#category_view_type.grid_view #product_list li .ajax_add_to_cart_button{border:none!important;display:inline;white-space:nowrap;float:none;clear:both;*padding-top:7px;*line-height:45px !important;border-radius: 7px;}
Найдите код:
.add_to_cart{ display: block; background: linear-gradient(to top, #87CEFA 0%, #4682B4 36%, #4682B4 100%); background-repeat: no-repeat; color: #fafafa!important; height: 35px; padding: 0 35px 0 37px; border: 1px solid #FFFFFF; cursor: pointer; font-weight: 700; line-height: 30px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; border-radius: 2px; -moz-border-radius: 2px; -webkit-border-radius: 2px; box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2); -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2); }
Замените на:
.add_to_cart{ display: block; background: linear-gradient(to top, #87CEFA 0%, #4682B4 36%, #4682B4 100%); background-repeat: no-repeat; color: #fafafa!important; height: 35px; padding: 0 35px 0 37px; border: 1px solid #FFFFFF; cursor: pointer; font-weight: 700; line-height: 30px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; border-radius: 7px; -moz-border-radius: 7px; -webkit-border-radius: 7px; box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2); -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2); }
Найдите код:
input.exclusive, #paymentForm input, a.exclusive{display:inline-block;background: #4682B4 !important;color:#fafafa!important;border:1px solid #ffffff;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-moz-border-radius:2px;-webkit-border-radius:2px;border-radius:2px;
Замените на:
input.exclusive, #paymentForm input, a.exclusive{display:inline-block;background: #4682B4 !important;color:#fafafa!important;border:1px solid #ffffff;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;-moz-border-radius: 7px;-webkit-border-radius: 7px;border-radius: 7px;
#3
Отправлено 30 Август 2021 - 13:14
К сожалению, не получается округлить кнопки.
1. Стиля main.css в моем шаблоне нет, указанные выше коды искала в style.css. Правильно?
2. Не удалось в style.css найти данный код
.add_to_cart{
display: block;
background: linear-gradient(to top, #87CEFA 0%, #4682B4 36%, #4682B4 100%);
background-repeat: no-repeat;
color: #fafafa!important;
height: 35px;
padding: 0 35px 0 37px;
border: 1px solid #FFFFFF;
cursor: pointer;
font-weight: 700;
line-height: 30px;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
-moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
-webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
}
1. Стиля main.css в моем шаблоне нет, указанные выше коды искала в style.css. Правильно?
2. Не удалось в style.css найти данный код
.add_to_cart{
display: block;
background: linear-gradient(to top, #87CEFA 0%, #4682B4 36%, #4682B4 100%);
background-repeat: no-repeat;
color: #fafafa!important;
height: 35px;
padding: 0 35px 0 37px;
border: 1px solid #FFFFFF;
cursor: pointer;
font-weight: 700;
line-height: 30px;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
-moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
-webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
}
#4
Отправлено 30 Август 2021 - 14:09
Gloksin (30 Август 2021 - 13:14) писал:
К сожалению, не получается округлить кнопки.
1. Стиля main.css в моем шаблоне нет, указанные выше коды искала в style.css. Правильно?
2. Не удалось в style.css найти данный код
.add_to_cart{
display: block;
background: linear-gradient(to top, #87CEFA 0%, #4682B4 36%, #4682B4 100%);
background-repeat: no-repeat;
color: #fafafa!important;
height: 35px;
padding: 0 35px 0 37px;
border: 1px solid #FFFFFF;
cursor: pointer;
font-weight: 700;
line-height: 30px;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
-moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
-webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
}
1. Стиля main.css в моем шаблоне нет, указанные выше коды искала в style.css. Правильно?
2. Не удалось в style.css найти данный код
.add_to_cart{
display: block;
background: linear-gradient(to top, #87CEFA 0%, #4682B4 36%, #4682B4 100%);
background-repeat: no-repeat;
color: #fafafa!important;
height: 35px;
padding: 0 35px 0 37px;
border: 1px solid #FFFFFF;
cursor: pointer;
font-weight: 700;
line-height: 30px;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
border-radius: 2px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
-moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
-webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);
}
Найдите в Редакторе шаблонов --- style.css данный код:
.add_to_cart{display:block;background-color:#da3b44;background-image:url('{ASSETS_IMAGES_PATH}cart_white.png?design=autumn');background-repeat:no-repeat;background-position:13px 50%; color:#fafafa!important;height:35px;padding:0 16px 0 46px;*padding:0 6px 0 36px;border:1px solid #a40f18;*border: none;cursor:pointer;font-weight:700;line-height:30px;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;border-radius:2px; -moz-border-radius:2px;-webkit-border-radius:2px;box-shadow:inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2);-moz-box-shadow:inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2); -webkit-box-shadow:inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2)}
Измените его на:
.add_to_cart{ display: block; background: linear-gradient(to top, #87CEFA 0%, #4682B4 36%, #4682B4 100%); background-repeat: no-repeat; color: #fafafa!important; height: 35px; padding: 0 35px 0 37px; border: 1px solid #FFFFFF; cursor: pointer; font-weight: 700; line-height: 30px; box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box; border-radius: 7px; -moz-border-radius: 7px; -webkit-border-radius: 7px; box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2); -moz-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2); -webkit-box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.15),0 1px 1px 0 rgba(0,0,0,0.2); }
Количество пользователей, читающих эту тему: 0
0 пользователей, 0 гостей, 0 анонимных