News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

New And No New Post Icons

Started by Steve, March 30, 2022, 08:12:52 PM

Previous topic - Next topic

Steve

How the heck does one change these icons?

DO NOT pm me for support!

Shades.

You have to edit boardicons.png in Themes/default/images/boardicons.png

You cannot view this attachment.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Kindred

Or change the css..   that's what I did
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Steve

DO NOT pm me for support!

Antechinus

Like this:
/* ------------------------------- */
/* @todo - Board icons - animated. */
.board_on, .board_on2  {
    filter: sepia(1) hue-rotate(-10deg) saturate(1.6);
    animation: BoardOnPulse 3s infinite;
}
@keyframes BoardOnPulse{
    0% {
        opacity: .5;
    }
    50% {
        opacity: .5;
    }
    75% {
        opacity: .6;
    }
    100% {
        opacity: .5;
    }
}
/* ----------------------------- */
/* @todo - Board icons - static. */
.board_off {
mix-blend-mode: soft-light;
}
.board_redirect {
background-image: none !important;
position: relative;
}
.board_redirect::before {
position: absolute;
display: block;
width: 45px;
height: 45px;
content: '';
background: url(https://static.simplemachinesweb.com/smf/smsite/images/boardicons.png) no-repeat 0 0 / 90px;
background-position: -1px -41px;
    opacity: .3;
}
.board_redirect::after {
position: absolute;
display: block;
width: 45px;
height: 45px;
top: -2px;
left: 2px;
font-size: 3.125rem;
line-height: 1em;
content: '\21aa';
transform: scaleY(-1);
background: linear-gradient(90deg,#bb9c77,#eda85a);
color: transparent;
-webkit-background-clip: text;
background-clip: text;
text-shadow: 1px 1px 1px rgba(23,35,44,.3);
}
/* ------------------------------------------- */
/* @todo - Board icons - Hover, focus, active. */
.board_on:hover, .board_on:focus,.board_on:active,
.board_on2:hover, .board_on2:focus,.board_on2:active {
    animation: none;
    opacity: .9;
}
.board_redirect:hover::before, .board_redirect:focus::before,.board_redirect:active::before {
    opacity: .6;
}
.board_redirect:hover::after, .board_redirect:focus::after,.board_redirect:active::after {
background: #ffb866;
-webkit-background-clip: text;
background-clip: text;
}

(A smartarse answer, but it shows you the relevant elements.)

Kindred

Look at my test site.  Test2.turtleshellprod.com

I replaced the icons with a gradient circle, and then overlaid a star wars icon on top .
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Steve

Thanks guys. Not sure why we made it so we couldn't just replace the on and off pngs but it is what it is.

Thanks again. :)
DO NOT pm me for support!

Arantor

The reason is that pushing a single image with all the parts in it is faster for end users than separate images. And Google etc penalises you if you do this sort of thing wrong now.

Kindred

yup... which is why I replaced it with a css generated "bubble" and a font-set-icon :D
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Shades.

Quote from: Steve on March 30, 2022, 08:46:51 PM
Quote from: Kindred on March 30, 2022, 08:39:25 PMOr change the css..   that's what I did
How?
You can also use this mod. I just tested it and it works on 2.1.1! ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Steve

Thanks Shades. Will give that a look.
DO NOT pm me for support!

Advertisement: