Bu_410 Posted December 19, 2012 Report Share Posted December 19, 2012 Привет всем. Искал в style.css, но не смог найти, как изменить цвет кнопки добавить в корзину. Заранее спасибо. Quote Link to post Share on other sites
Rash Posted December 19, 2012 Report Share Posted December 19, 2012 /* Кнопка */.button {float: left;clear: left;cursor: pointer; }.button { -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; box-shadow:inset 0px 1px 0px 0px #ffffff; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); background-color:#ededed; -moz-border-radius:6px; -webkit-border-radius:6px; border-radius:6px; border:1px solid #cccccc; display:inline-block; color:#555555; font-family:arial; font-size:14px; font-weight:bold; padding:6px 20px; text-decoration:none; text-shadow:1px 1px 0px #ffffff;}.button:hover { background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ); background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed'); background-color:#dfdfdf;}.button:active { position:relative; top:1px;} Quote Link to post Share on other sites
Bu_410 Posted December 19, 2012 Author Report Share Posted December 19, 2012 Спасибо, помогло. Изменил цвет кнопки. Теперь пробую изменить цвет кнопки, в зависимости добавлен товар или нет. Добавить-один цвет, а если уже добавлен в корзину-другой. Quote Link to post Share on other sites
Rash Posted December 19, 2012 Report Share Posted December 19, 2012 }.button:hover { background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ); background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed'); background-color:#dfdfdf;}.button:active { position:relative; top:1px;}http://htmlbook.ru/css/hover здесь можно почитать что к чему Quote Link to post Share on other sites
delprofile Posted December 19, 2012 Report Share Posted December 19, 2012 Rashhover это при наведении на ссылку или кнопку Quote Link to post Share on other sites
Rash Posted December 19, 2012 Report Share Posted December 19, 2012 delprofile, да я ему так скинул справочник на "всякий пожарный" чтоб на будущее мог посмотреть Quote Link to post Share on other sites
mickt Posted December 19, 2012 Report Share Posted December 19, 2012 может быть добавлять класс с нужными стилями для кнопки по условию {if $cart->purchases} ? Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.