Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--hover variants of color surface 3 and 4 #951

Open
TarkusLee opened this issue Sep 21, 2024 · 1 comment
Open

--hover variants of color surface 3 and 4 #951

TarkusLee opened this issue Sep 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@TarkusLee
Copy link

--color-surface-2 has a hover variant, --color-surface-2--hover. It would be nice to have these variants for each surface color.

@TarkusLee TarkusLee added the enhancement New feature or request label Sep 21, 2024
@alistair3149
Copy link
Member

alistair3149 commented Sep 26, 2024

Putting this on hold for now because I am hesitated to introduce new colors since they are due to a rework after MW 1.43 drops, which is around the end of the year.

In the meantime, you can add these to your MediaWiki:Citizen.css:

:root {
	/* Add extra hover and active state colors */
	--color-surface-3--hover: hsl( var( --color-primary__h ), var( --color-surface-3__s ), calc( var( --color-surface-3__l ) + var( --delta-lightness-hover-state ) ) );
	--color-surface-3--active: hsl( var( --color-primary__h ), var( --color-surface-3__s ), calc( var( --color-surface-3__l ) - var( --delta-lightness-hover-state ) ) );
	--color-surface-4--hover: hsl( var( --color-primary__h ), var( --color-surface-4__s ), calc( var( --color-surface-4__l ) + var( --delta-lightness-hover-state ) ) );
	--color-surface-4--active: hsl( var( --color-primary__h ), var( --color-surface-4__s ), calc( var( --color-surface-4__l ) - var( --delta-lightness-hover-state ) ) );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants