Главная » Скрипты » Изменение всех кнопок на uCoz (белый стиль) 04.08.2012 19:30
DEMO |
Я уже писал в предыдущем посте о кнопках, используется тот же метод, а ставить код можно в любой CSS файл или в ПУ "Таблица стилей (CSS)". Теперь посмотрим демо и код. Code input[type="submit"] { border: 1px solid #ccc!important; border-radius: 3px!important; -webkit-box-shadow: 0 0px 1px #ccc!important; -moz-box-shadow: 0 0px 1px #ccc!important; box-shadow: 0 0px 1px #ccc!important; font: bold 11px Sans-Serif!important; padding: 3px 6px!important; white-space: nowrap!important; vertical-align: middle!important; color: #333!important; background: transparent!important; cursor: pointer!important; } input[type="submit"]:hover , input[type="submit"]:focus { border-color: #999!important; background: -webkit-linear-gradient(top, #ccc, #fff)!important; background: -moz-linear-gradient(top, #ccc, #fff)!important; background: -ms-linear-gradient(top, #ccc, #fff)!important; background: -o-linear-gradient(top, #ccc, #fff)!important; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff!important; -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff!important; box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff!important; } input[type="submit"]:active { border: 1px solid #AAA!important; border-bottom-color: #CCC!important; border-top-color: #999!important; -webkit-box-shadow: inset 0 0px 2px #aaa!important; -moz-box-shadow: inset 0 0px 2px #aaa!important; box-shadow: inset 0 0px 2px #aaa!important; background: -webkit-linear-gradient(top, #ccc, #ccc)!important; background: -moz-linear-gradient(top, #ccc, #ccc)!important; background: -ms-linear-gradient(top, #ccc, #ccc)!important; background: -o-linear-gradient(top, #ccc, #ccc)!important; } input[type="submit"]:disabled { border: 1px solid #666!important; border-radius: 3px!important; -webkit-box-shadow: 0 0px 1px #666!important; -moz-box-shadow: 0 0px 1px #666!important; box-shadow: 0 0px 1px #666!important; font: bold 11px Sans-Serif!important; padding: 3px 6px!important; white-space: nowrap!important; vertical-align: middle!important; color: #ccc!important; background: transparent!important; }
input[type="button"] { border: 1px solid #ccc!important; border-radius: 3px!important; -webkit-box-shadow: 0 0px 1px #ccc!important; -moz-box-shadow: 0 0px 1px #ccc!important; box-shadow: 0 0px 1px #ccc!important; font: bold 11px Sans-Serif!important; padding: 3px 6px!important; white-space: nowrap!important; vertical-align: middle!important; color: #333!important; background: transparent!important; cursor: pointer!important; } input[type="button"]:hover , input[type="button"]:focus { border-color: #999!important; background: -webkit-linear-gradient(top, #ccc, #fff)!important; background: -moz-linear-gradient(top, #ccc, #fff)!important; background: -ms-linear-gradient(top, #ccc, #fff)!important; background: -o-linear-gradient(top, #ccc, #fff)!important; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff!important; -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff!important; box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff!important; } input[type="button"]:active { border: 1px solid #AAA!important; border-bottom-color: #CCC!important; border-top-color: #999!important; -webkit-box-shadow: inset 0 0px 2px #aaa!important; -moz-box-shadow: inset 0 0px 2px #aaa!important; box-shadow: inset 0 0px 2px #aaa!important; background: -webkit-linear-gradient(top, #ccc, #ccc)!important; background: -moz-linear-gradient(top, #ccc, #ccc)!important; background: -ms-linear-gradient(top, #ccc, #ccc)!important; background: -o-linear-gradient(top, #ccc, #ccc)!important; } input[type="button"]:disabled { border: 1px solid #666!important; border-radius: 3px!important; -webkit-box-shadow: 0 0px 1px #666!important; -moz-box-shadow: 0 0px 1px #666!important; box-shadow: 0 0px 1px #666!important; font: bold 11px Sans-Serif!important; padding: 3px 6px!important; white-space: nowrap!important; vertical-align: middle!important; color: #ccc!important; background: transparent!important; } input[type="file"] { border: 1px solid #ccc!important; border-radius: 3px!important; -webkit-box-shadow: 0 0px 1px #ccc!important; -moz-box-shadow: 0 0px 1px #ccc!important; box-shadow: 0 0px 1px #ccc!important; font: bold 11px Sans-Serif!important; padding: 3px 6px!important; white-space: nowrap!important; vertical-align: middle!important; color: #333!important; background: transparent!important; cursor: pointer!important; } input[type="file"]:hover , input[type="file"]:focus { border-color: #999!important; background: -webkit-linear-gradient(top, #ccc, #fff)!important; background: -moz-linear-gradient(top, #ccc, #fff)!important; background: -ms-linear-gradient(top, #ccc, #fff)!important; background: -o-linear-gradient(top, #ccc, #fff)!important; -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff!important; -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff!important; box-shadow: 0 1px 2px rgba(0,0,0,0.25), inset 0 0 3px #fff!important; } input[type="file"]:active { border: 1px solid #AAA!important; border-bottom-color: #CCC!important; border-top-color: #999!important; -webkit-box-shadow: inset 0 0px 2px #aaa!important; -moz-box-shadow: inset 0 0px 2px #aaa!important; box-shadow: inset 0 0px 2px #aaa!important; background: -webkit-linear-gradient(top, #ccc, #ccc)!important; background: -moz-linear-gradient(top, #ccc, #ccc)!important; background: -ms-linear-gradient(top, #ccc, #ccc)!important; background: -o-linear-gradient(top, #ccc, #ccc)!important; } input[type="file"]:disabled { border: 1px solid #666!important; border-radius: 3px!important; -webkit-box-shadow: 0 0px 1px #666!important; -moz-box-shadow: 0 0px 1px #666!important; box-shadow: 0 0px 1px #666!important; font: bold 11px Sans-Serif!important; padding: 3px 6px!important; white-space: nowrap!important; vertical-align: middle!important; color: #ccc!important; background: transparent!important; } Теперь хочу сказать еще то что, использовать совместно предыдущий стиль и этот не получится, так как используются абсолютно одинаковые теги, то есть button , input и file
|
|
Добавлять комментарии могут только зарегистрированные пользователи. Регистрация | Вход
|
Полезная информация
Мы настоятельно рекомендуем вам использовать браузеры последних версий. Нажмите на иконку, чтобы перейти к скачиванию нужного вам браузера
Для правильного отображения сайта, вам понадобится минимальное разрешение экрана 1024 x 768px, оптимальное разрешение: 1280 x 1024px
Mozilla Firefox - один из лучших браузеров (рекомендуем)
Opera - Популярный браузер, но не полностью поддерживает CSS3
Google Chrome - один из лучших и быстрых браузеров
Safari - Качественый браузер от компании Apple
Яндекс.Браузер - браузер от Яндекс на платформе Chrome
|