Кнопки Каталога И Корзины
#1
Отправлено 21 Июнь 2016 - 01:32
Можно надпись каталога перенести вниз кнопки вместо "D" вставить логотип. в кнопке корзины написать внизу кнопки написать корзина.
#2
Отправлено 21 Июнь 2016 - 06:37
#fixed_catalog:after { content:"D"; position: absolute; top: 45%; left: 50%; display: block; width: 1.35em; height: 1.475em; color: rgb(121,193,244); font-size: 220%; line-height: 1.5em; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.05em 0.5em 0 rgba(6,111,184,1), 0 0.35em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
замените на:
#fixed_catalog:after { content:" "; position: absolute; top: 45%; left: 50%; display: block; width: 1.35em; height: 1.475em; background: url('ссылка на лого') no-repeat center center; border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.05em 0.5em 0 rgba(6,111,184,1), 0 0.35em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
в нем измените текст на ссылку
Далее найдите:
.cart-header:after { content: 'к'; position: absolute; top: 50%; left: 50%; display: block; width: 1.25em; height: 1.275em; color: #ffffff; font-size:250%; line-height: 2.5em; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.15em 0.5em 0 rgba(6,111,184,1), 0 0.75em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
замените на:
.cart-header:after { content: 'К'; position: absolute; top: 50%; left: 50%; display: block; width: 1.25em; height: 1.275em; color: #ffffff; font-size: 250%; line-height: 140px; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.15em 0.5em 0 rgba(6,111,184,1), 0 0.75em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
#3
Отправлено 22 Июнь 2016 - 01:06
Vaccina (21 Июнь 2016 - 06:37) писал:
#fixed_catalog:after { content:"D"; position: absolute; top: 45%; left: 50%; display: block; width: 1.35em; height: 1.475em; color: rgb(121,193,244); font-size: 220%; line-height: 1.5em; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.05em 0.5em 0 rgba(6,111,184,1), 0 0.35em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
замените на:
#fixed_catalog:after { content:" "; position: absolute; top: 45%; left: 50%; display: block; width: 1.35em; height: 1.475em; background: url('ссылка на лого') no-repeat center center; border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.05em 0.5em 0 rgba(6,111,184,1), 0 0.35em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
в нем измените текст на ссылку
Далее найдите:
.cart-header:after { content: 'к'; position: absolute; top: 50%; left: 50%; display: block; width: 1.25em; height: 1.275em; color: #ffffff; font-size:250%; line-height: 2.5em; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.15em 0.5em 0 rgba(6,111,184,1), 0 0.75em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
замените на:
.cart-header:after { content: 'К'; position: absolute; top: 50%; left: 50%; display: block; width: 1.25em; height: 1.275em; color: #ffffff; font-size: 250%; line-height: 140px; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.15em 0.5em 0 rgba(6,111,184,1), 0 0.75em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
#4
Отправлено 22 Июнь 2016 - 01:43
#5
Отправлено 22 Июнь 2016 - 07:03
.cart-header:before { content: ''; position: absolute; top: 15%; left: 50%; display: block; width: 1.575em; height: 1.275em; border: 2px solid rgba(255,255,255,1); border-radius: 50%; box-shadow: inset 0 0.25em 0.25em rgba(53,166,245,1), inset 0 0.35em 0.25em rgba(0,0,0,0.1); transform: translate(-50%,-50%); } .cart-header:after { content: 'к'; position: absolute; top: 50%; left: 50%; display: block; width: 1.25em; height: 1.275em; color: #ffffff; font-size:250%; line-height: 2.5em; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.15em 0.5em 0 rgba(6,111,184,1), 0 0.75em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
#fixed_catalog:after { content:"D"; position: absolute; top: 45%; left: 50%; display: block; width: 1.35em; height: 1.475em; color: rgb(121,193,244); font-size: 220%; line-height: 1.5em; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.05em 0.5em 0 rgba(6,111,184,1), 0 0.35em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
Вставить иконки с текстом напрямую, список иконок: http://fontawesome.ru/all-icons/
#6
Отправлено 23 Июнь 2016 - 03:47
Vaccina (22 Июнь 2016 - 07:03) писал:
.cart-header:before { content: ''; position: absolute; top: 15%; left: 50%; display: block; width: 1.575em; height: 1.275em; border: 2px solid rgba(255,255,255,1); border-radius: 50%; box-shadow: inset 0 0.25em 0.25em rgba(53,166,245,1), inset 0 0.35em 0.25em rgba(0,0,0,0.1); transform: translate(-50%,-50%); } .cart-header:after { content: 'к'; position: absolute; top: 50%; left: 50%; display: block; width: 1.25em; height: 1.275em; color: #ffffff; font-size:250%; line-height: 2.5em; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.15em 0.5em 0 rgba(6,111,184,1), 0 0.75em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
#fixed_catalog:after { content:"D"; position: absolute; top: 45%; left: 50%; display: block; width: 1.35em; height: 1.475em; color: rgb(121,193,244); font-size: 220%; line-height: 1.5em; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.05em 0.5em 0 rgba(6,111,184,1), 0 0.35em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
Вставить иконки с текстом напрямую, список иконок: http://fontawesome.ru/all-icons/
#7
Отправлено 24 Июнь 2016 - 01:55
#10
Отправлено 01 Июль 2016 - 09:58
Beliu (01 Июль 2016 - 01:18) писал:
Здравствуйте.
Подключил Вам иконки по первому способу инструкции на сайте http://fontawesome.ru/ и установил требуемую иконку, добавив пару стилей в main.css.
Проверьте, пожалуйста.
#11
Отправлено 01 Июль 2016 - 13:33
Firefly (01 Июль 2016 - 09:58) писал:
Здравствуйте.
Подключил Вам иконки по первому способу инструкции на сайте http://fontawesome.ru/ и установил требуемую иконку, добавив пару стилей в main.css.
Проверьте, пожалуйста.
#14
Отправлено 26 Август 2016 - 00:39
Vaccina (22 Июнь 2016 - 07:03) писал:
.cart-header:before { content: ''; position: absolute; top: 15%; left: 50%; display: block; width: 1.575em; height: 1.275em; border: 2px solid rgba(255,255,255,1); border-radius: 50%; box-shadow: inset 0 0.25em 0.25em rgba(53,166,245,1), inset 0 0.35em 0.25em rgba(0,0,0,0.1); transform: translate(-50%,-50%); } .cart-header:after { content: 'к'; position: absolute; top: 50%; left: 50%; display: block; width: 1.25em; height: 1.275em; color: #ffffff; font-size:250%; line-height: 2.5em; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.15em 0.5em 0 rgba(6,111,184,1), 0 0.75em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
#fixed_catalog:after { content:"D"; position: absolute; top: 45%; left: 50%; display: block; width: 1.35em; height: 1.475em; color: rgb(121,193,244); font-size: 220%; line-height: 1.5em; text-align: center; text-shadow: 0 0.025em rgba(255,255,255,0.5), 0 -0.025em rgba(6,111,184,0.25); background: rgba(255,255,255,1); border-radius: 0.25em; box-shadow: inset 0 -0.025em 0.05em 0em rgba(0,0,0,0.15), inset 0 -2.5em 3em -2em rgba(0,0,0,0.2), 0 0.05em 0.5em 0 rgba(6,111,184,1), 0 0.35em 0.5em rgba(6,111,184,0.35); transform: translate(-50%,-50%); }
Вставить иконки с текстом напрямую, список иконок: http://fontawesome.ru/all-icons/
#15
Отправлено 28 Август 2016 - 19:38
Beliu (26 Август 2016 - 00:39) писал:
#16
Отправлено 29 Август 2016 - 09:19
Danil (28 Август 2016 - 19:38) писал:
Обозначьте, пожалуйста, на скриншоте, как примерно должна отображаться иконка на Вашем сайте. Нужно но ли удалить"0" и букву "к"?
#17
Отправлено 31 Август 2016 - 10:47
Beliu (29 Август 2016 - 09:19) писал:
Изменения Вам произвел, проверьте.
Количество пользователей, читающих эту тему: 0
0 пользователей, 0 гостей, 0 анонимных