MythonPonty Posted 20 hours ago Posted 20 hours ago /* Menütags */ li[data-navapp="blog"] span:nth-child(2)::after { content: "Pro"; display: inline-block; background: #FFB343; padding: 2px 5px; font-size: 10px; text-transform: uppercase; border-radius: 4px; color: black; font-weight: bold; margin-left: 10px; letter-spacing: 0em; } li[data-navapp="gallery"] span:nth-child(2)::after { content: "Neu"; display: inline-block; background: #00cc66; padding: 2px 5px; font-size: 10px; text-transform: uppercase; border-radius: 4px; color: black; font-weight: bold; margin-left: 10px; letter-spacing: 0em; } I did this for my testsite... here you control which app it should affect Daniel F, Matt, David N. and 1 other 4
Drewfus Posted 19 hours ago Posted 19 hours ago @David N. Exactly where did you put this code ?? I can't figure it out.
EliasM Posted 19 hours ago Posted 19 hours ago 39 minutes ago, MythonPonty said: /* Menütags */ li[data-navapp="blog"] span:nth-child(2)::after { content: "Pro"; display: inline-block; background: #FFB343; padding: 2px 5px; font-size: 10px; text-transform: uppercase; border-radius: 4px; color: black; font-weight: bold; margin-left: 10px; letter-spacing: 0em; } li[data-navapp="gallery"] span:nth-child(2)::after { content: "Neu"; display: inline-block; background: #00cc66; padding: 2px 5px; font-size: 10px; text-transform: uppercase; border-radius: 4px; color: black; font-weight: bold; margin-left: 10px; letter-spacing: 0em; } I did this for my testsite... here you control which app it should affect How to make it appear on mobile?
David N. Posted 19 hours ago Posted 19 hours ago 2 minutes ago, Drewfus said: @David N. Exactly where did you put this code ?? I can't figure it out. In the Custom CSS, that you can access in the Theme editor. Drewfus 1
fileo Posted 13 hours ago Posted 13 hours ago 12 hours ago, David N. said: Love the pun!! 🤣 Is it possible to renew my beta community? https://x332394.invisionservice.com/ How did you add color for Buttons?
MythonPonty Posted 4 hours ago Posted 4 hours ago 9 hours ago, fileo said: How did you add color for Buttons? You can do it with this short snippet li[data-navapp="blog"] .fa-solid { color: #007BFF; font-size: 16px; transition: color 0.3s ease; } li[data-navapp="blog"]:hover .fa-solid { color: #FF5733; } David N. 1
MythonPonty Posted 4 hours ago Posted 4 hours ago (edited) 15 hours ago, EliasM said: How to make it appear on mobile? /* Blogs */ li:nth-child(2) span.ipsOffCanvas__label::after { content: "Pro"; display: inline-block; background: #00cc66; padding: 2px 5px; font-size: 10px; text-transform: uppercase; border-radius: 4px; color: black; font-weight: bold; margin-left: 10px; } /* Downloads */ li:nth-child(6) span.ipsOffCanvas__label::after { content: "Neu"; display: inline-block; background: #FFB343; padding: 2px 5px; font-size: 10px; text-transform: uppercase; border-radius: 4px; color: black; font-weight: bold; margin-left: 10px; } Here only this works, currently. Maybe @Ehren have a better idea for the mobile view ? Edited 4 hours ago by MythonPonty EliasM 1
EliasM Posted 50 minutes ago Posted 50 minutes ago (edited) 3 hours ago, MythonPonty said: /* Blogs */ li:nth-child(2) span.ipsOffCanvas__label::after { content: "Pro"; display: inline-block; background: #00cc66; padding: 2px 5px; font-size: 10px; text-transform: uppercase; border-radius: 4px; color: black; font-weight: bold; margin-left: 10px; } /* Downloads */ li:nth-child(6) span.ipsOffCanvas__label::after { content: "Neu"; display: inline-block; background: #FFB343; padding: 2px 5px; font-size: 10px; text-transform: uppercase; border-radius: 4px; color: black; font-weight: bold; margin-left: 10px; } How can I select it for the gallery Edited 50 minutes ago by EliasM
MythonPonty Posted 46 minutes ago Posted 46 minutes ago Count the position and change it here... If the gallery is on position 5 Change the 2 in 5 li:nth-child(2) span.ipsOffCanvas__label::after {
EliasM Posted 41 minutes ago Posted 41 minutes ago 4 minutes ago, MythonPonty said: Count the position and change it here... If the gallery is on position 5 Change the 2 in 5 li:nth-child(2) span.ipsOffCanvas__label::after { I already got it, thanks MythonPonty 1
EliasM Posted 12 minutes ago Posted 12 minutes ago 32 minutes ago, MythonPonty said: Count the position and change it here... If the gallery is on position 5 Change the 2 in 5 li:nth-child(2) span.ipsOffCanvas__label::after { It would be better if there was an option to select the application directly, where this selection changes based on the user's permissions, I found that it appears to the visitor on another name😂
MythonPonty Posted 6 minutes ago Posted 6 minutes ago 1 minute ago, EliasM said: It would be better if there was an option to select the application directly, where this selection changes based on the user's permissions, Correct... first i've tried it with this /* Blogs */ li a span.ipsOffCanvas__label:contains("Blogs")::after { content: "Neu"; display: inline-block; background: #00cc66; padding: 2px 5px; font-size: 10px; text-transform: uppercase; border-radius: 4px; color: black; font-weight: bold; margin-left: 10px; letter-spacing: 0em; } I actually wanted to check if the value of the label is “Blogs”, that the CSS rule then takes effect. But that doesn't seem to work. Maybe Ehren has a better solution. 🙂
Recommended Posts