Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2901

[3.3.x] Styles Support & Discussion • Re: #variant_switch button:active

$
0
0
I'm trying to add a css section here. popup (new private message, find a member)

Because in that pop up window the default colors remain active. Is this not possible because via the browser inspection I can't immediately find the right css class.

Code:

a,.button-secondary:focus,.button-secondary:hover,.button:focus .icon,.button:hover .icon,.button,a.button1,a.button2,input.button1,input.button2,input.button3,.pagination li.active span,.tabs .activetab > a,.tabs .activetab > a:hover,.dropdown-extended a.mark_read,.navigation .active-subsection a {color: var(--primary-color, #ffa800);}
And when I look at other styles like prosilver_fr etc. this is also the case there. So I doubt it is actually possible with a few css changes.


Edit:

Nevermind...

I was a bit too quick to ask for help add this to simple_header.html

Code:

<script>if (localStorage.prosilverColors) document.documentElement.setAttribute("data-color", localStorage.prosilverColors);</script>{% DEFINE COLORS = ['default', 'Crimson', 'PaleVioletRed', 'MediumOrchid', 'BlueViolet', 'SlateBlue', 'RoyalBlue', 'DodgerBlue', 'DarkTurquoise', 'DarkCyan', 'LimeGreen', 'YellowGreen', 'Gold', 'Orange', 'Coral', 'Gray'] %}<style>{% for color in definition.COLORS %}{% if color != 'default' %}[data-color="{{ color }}"] { --primary-color: {{ color }}; }.switch-{{ color }} { background-color: {{ color }}; }{% endif %}{% endfor %}</style>

Statistics: Posted by bennybernaer — Fri May 09, 2025 4:06 pm



Viewing all articles
Browse latest Browse all 2901

Trending Articles