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

[Defer] Document multi-transition dark mode (proof-of-concept) #188

Open
zaydek opened this issue Dec 23, 2020 · 0 comments
Open

[Defer] Document multi-transition dark mode (proof-of-concept) #188

zaydek opened this issue Dec 23, 2020 · 0 comments

Comments

@zaydek
Copy link
Owner

zaydek commented Dec 23, 2020

@mixin to-dark-mode {
	:root[data-theme="dark"] & {
		$dur: 1200ms;
		$timing: timing(ease-out, $raw: true);
		transition: $dur background-color $timing, $dur border-color $timing;
	}
}
@mixin to-light-mode {
	:root:not([data-theme="dark"]) & {
		$dur: 600ms;
		$timing: timing(ease-out, $raw: true);
		transition: $dur background-color $timing, $dur border-color $timing;
	}
}

@mixin transitions {
	@include to-dark-mode;
	@include to-light-mode;
}
@zaydek zaydek changed the title [Todo] Document multi-transition dark mode [Defer] Document multi-transition dark mode (proof-of-concept) Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant