大スリップ記法
UserCSS.icon
filter: invert()\invert Inverthttps://img.icons8.com/ios-glyphs/90/christmas-angel.png code:style.css
display: inline-block !important;
width: 100%;
box-shadow: var(--onpage-box-shadow);
&:has(img:not(.icon)) {
text-align: center !important; vertical-align: middle !important;
}
& img:not(.icon) {
max-width: 100% !important; max-height: 100% !important; filter: none !important;
}
/* \invert */
& .char-indec {
background-color: var(--page-text-color); color: var(--page-bg);
}
& img { filter: invert(1) !important; }
& :nth-child(-n + 8 of .char-index) { display: none; }
}
/* \black */
background-color: black; color: hsl(223 15% 80%);
& :nth-child(-n + 7 of .char-index) { display: none; }
}
/* \white */
background-color: white; color: #333; & :nth-child(-n + 7 of .char-index) { display: none; }
}
/* \red */
background-color: crimson; color: white;
& :nth-child(-n + 5 of .char-index) { display: none; }
}
/* \yellow */
background-color: var(--c-yellow-4, gold); color: black;
& :nth-child(-n + 8 of .char-index) { display: none; }
}
/* \purple */
background-color: #7c007c; color: white; & :nth-child(-n + 8 of .char-index) { display: none; }
}
/* \purple */
background-color: indigo; color: white;
& :nth-child(-n + 8 of .char-index) { display: none; }
}
}