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

Hello. I had an idea to replace the first three places in widget with trophy icons. I tried several times and was successful in doing it only using CSS. 😉 

How to do it? Add the following code to custom.css:

/* First Place */
.ipsWidget .ipsDataItem:first-child div.ipsDataItem_icon.ipsType_large strong{
display:none;
}
.ipsWidget .ipsDataItem:first-child div.ipsDataItem_icon.ipsType_large:after {
content: "\f091";
color: var(--trophy-first--background);
font-family: FontAwesome;
}

/* Second Place */
.ipsWidget .ipsDataItem:nth-child(2) div.ipsDataItem_icon.ipsType_large strong{
display:none;
}
.ipsWidget .ipsDataItem:nth-child(2) div.ipsDataItem_icon.ipsType_large:after {
content: "\f091";
color: var(--trophy-second--background);
font-family: FontAwesome;
}

/* Third Place */
.ipsWidget .ipsDataItem:nth-child(3) div.ipsDataItem_icon.ipsType_large strong{
display:none;
}
.ipsWidget .ipsDataItem:nth-child(3) div.ipsDataItem_icon.ipsType_large:after {
content: "\f091";
color: var(--trophy-third--background);
font-family: FontAwesome;
}

Results:

cup-icon.png.2e34d0187ffaad4b6e73f81c3f929359.png.bae12fbcf3bd34da09c55389ce2f6464.pngimage.png.632d7ee68fd7b39363386e7f67e85de0.png.6ae82e581c328d3039f0c0e53231bf9f.png

MrHaim Хорошая работа. Но я предлагаю сделать так:

Спойлер

000.PNG.304eccbdaf87b1aaf0c73d8610744ada.PNG

На мой взгляд это смотрится интереснее. А цвета работают на всех шаблонах.

/*стиль для наград*/
/* First Place */
.ipsWidget .ipsDataItem:first-child div.ipsDataItem_icon.ipsType_large strong{
display:none;
}
.ipsWidget .ipsDataItem:first-child div.ipsDataItem_icon.ipsType_large:after {
content: "\f091";
color: #ffd700;
font-family: FontAwesome;
}

/* Second Place */
.ipsWidget .ipsDataItem:nth-child(2) div.ipsDataItem_icon.ipsType_large strong{
display:none;
}
.ipsWidget .ipsDataItem:nth-child(2) div.ipsDataItem_icon.ipsType_large:after {
content: "\f091";
color: #c0c0c0;
font-family: FontAwesome;
}

/* Third Place */
.ipsWidget .ipsDataItem:nth-child(3) div.ipsDataItem_icon.ipsType_large strong{
display:none;
}
.ipsWidget .ipsDataItem:nth-child(3) div.ipsDataItem_icon.ipsType_large:after {
content: "\f091";
color: #cd7f32;
font-family: FontAwesome;
}

/* Third Place */
.ipsWidget .ipsDataItem:nth-child(4) div.ipsDataItem_icon.ipsType_large strong{
display:none;
}
.ipsWidget .ipsDataItem:nth-child(4) div.ipsDataItem_icon.ipsType_large:after {
content: "\f091";
color: #404040ba;
font-family: FontAwesome;
}

/* Third Place */
.ipsWidget .ipsDataItem:nth-child(5) div.ipsDataItem_icon.ipsType_large strong{
display:none;
}
.ipsWidget .ipsDataItem:nth-child(5) div.ipsDataItem_icon.ipsType_large:after {
content: "\f091";
color: #404040ba;
font-family: FontAwesome;
}

 

  • Author
Только что, aLEX49566 сказал:

מר חייםעבודה טובה. אבל אני מציע לעשות את זה:

  הסתר תוכן

000.PNG.304eccbdaf87b1aaf0c73d8610744ada.PNG

לדעתי זה נראה יותר מעניין. וצבעים עובדים על כל התבניות.





 

Definitely, much more beautiful and aesthetic.  I will definitely use it.  Thank you for sharing!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 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.