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

Supporting global sections #16

Open
joepie91 opened this issue Feb 15, 2020 · 0 comments
Open

Supporting global sections #16

joepie91 opened this issue Feb 15, 2020 · 0 comments

Comments

@joepie91
Copy link

Right now, if we have a bunch of global classes, that are interpreted in a locals-by-default context, we need to do this:

:global .classOne {
	background-color: black;
}

:global .classTwo {
	color: yellow;
}

/* This one is local */
.classThree {
	border: 1px solid yellow;
}

It would be nice if we could do something like this instead:

:global {
	.classOne {
		background-color: black;
	}

	.classTwo {
		color: yellow;
	}
}

/* This one is local */
.classThree {
	border: 1px solid yellow;
}
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