Our team is going to be migrating at some point to css preprocessing. Until then, I'm advocating a half-step that relies on consistent use of standard comments to act as pseudo variables. So in the top of a stylesheet, we might define something like:
/* #333333; /* $primary-site-color */
/* #333333; /* $button-color */
Then, when using styles, we'd use the above like this:
h1 { color: #333333; /* $primary-site-color */ }
input { background-color: #333333; /* $button-color */ }
Both h1 and input elements currently make use of the same hex color, but if you wanted to globally replace the primary site color via find/replace on "#333333", you'd affect every instance of that color. But doing a find/replace that includes the comment, you can target just the instances of that specific "pseudo variable".
Now my question: Are comments like this valid (and widely supported) in media queries:
@media only screen and (max-width: 767px /* $first-breakpoint */) { ... }
In limited testing it seems to work fine, but wasn't able to find anything definitive on comments in media queries.
Thanks in advance.