Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Где можно изменить цвет личных сообщений, уведомлений и друзья онлайн?

Featured Replies

Posted

Всем привет!
Подскажите, где можно изменить цвет пришедших личных сообщений, например горит типа индикатора 1 сообщение, также уведомления и друзья онлайн. Ну хотя бы что то из них, подскажите.

в ipb_styles.css

.ipsHasNotifications {
padding: 0px 4px;
height: 12px;
line-height: 12px;
background: #cf2020;
color: #fff !important;
font-size: 9px;
text-align: center;
-webkit-box-shadow: 0px 2px 4px rgba(0,0,0,0.3), 0px 1px 0px rgba(255,255,255,0.1) inset;
-moz-box-shadow: 0px 2px 4px rgba(0,0,0,0.3), 0px 1px 0px rgba(255,255,255,0.1) inset;
box-shadow: 0px 2px 4px rgba(0,0,0,0.3), 0px 1px 0px rgba(255,255,255,0.1) inset;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
border-radius: 2px;
position: relative;
top: -8px;
left: 3px;
}

где:

background: #cf2020;

цвет

  • Author

Благодарю, сейчас попробую и отпишусь позже!


Изменил, но цвет не поменялся, как был оранжевый, так и остался.

  • Author

С разных браузеров пробовал, даже с другого компа, всё равно не меняется. У меня и код этот различается от вашего. Вот ниже. 

.ipsHasNotifications {
	padding: 0px 4px;
	height: 12px;
	line-height: 12px;
	text-shadow: 0px 1px 1px rgba(255,255,255,0.4);
	border-radius: 4px;
	background: #ffaf4b;
	background: -moz-linear-gradient(top, #ffaf4b 0%, #ff920a 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffaf4b), color-stop(100%,#ff920a));
	background: -webkit-linear-gradient(top, #ffaf4b 0%,#ff920a 100%);
	background: -o-linear-gradient(top, #ffaf4b 0%,#ff920a 100%);
	background: -ms-linear-gradient(top, #ffaf4b 0%,#ff920a 100%);
	background: linear-gradient(top, #ffaf4b 0%,#ff920a 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffaf4b', endColorstr='#ff920a',GradientType=0 );
	box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
	color: #724C04 !important;
	font-size: 9px;
	text-align: center;

Это у вас градиент, удалите то что ниже :

background: #ffaf4b;
	background: -moz-linear-gradient(top, #ffaf4b 0%, #ff920a 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffaf4b), color-stop(100%,#ff920a));
	background: -webkit-linear-gradient(top, #ffaf4b 0%,#ff920a 100%);
	background: -o-linear-gradient(top, #ffaf4b 0%,#ff920a 100%);
	background: -ms-linear-gradient(top, #ffaf4b 0%,#ff920a 100%);
	background: linear-gradient(top, #ffaf4b 0%,#ff920a 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffaf4b', endColorstr='#ff920a',GradientType=0 );

И впишите это :

background: red;
  • Author

Спасибо, вечером попробую. А если удалить всё это, проблем нигде потом не будет?

То есть должно примерно так остаться?

.ipsHasNotifications {
	padding: 0px 4px;
	height: 12px;
	line-height: 12px;
	text-shadow: 0px 1px 1px rgba(255,255,255,0.4);
	border-radius: 4px;
	background: red;
	box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
	color: #724C04 !important;
	font-size: 9px;
	text-align: center;

 

Спасибо, вечером попробую. А если удалить всё это, проблем нигде потом не будет?

То есть должно примерно так остаться?

.ipsHasNotifications {
	padding: 0px 4px;
	height: 12px;
	line-height: 12px;
	text-shadow: 0px 1px 1px rgba(255,255,255,0.4);
	border-radius: 4px;
	background: red;
	box-shadow: 0px 1px 2px rgba(0,0,0,0.2);
	color: #724C04 !important;
	font-size: 9px;
	text-align: center;

Ты заменил цвет на красный, раньше он был градиентом.

Проблем не должно быть.

  • Author

Спасибо огромное, всё, получилось! Но возникла следующая проблемка. Цифры, то есть кол-во сообщений на красном индикаторе должны быть белого цвета, у меня получается черного цвета, и цифры из-за этого не заметные, то есть черные цифры на красном. Где можно изменить цифры на белый цвет. Ниже скрин как у меня сейчас.

 

post-22036-0-97195200-1423750871.jpg


Всё, спасибо, сам нашёл! 

Edited by Serg

Guest
This topic is now closed to further replies.

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.