Style all but one element to dim background
问题 Looking to achieve a dimmed-background effect by dimming (or changing the opacity of) all elements on the page but one; I've been trying out :not() as well as some jQuery selectors to try and exclude all but the element, but to no avail. Does anyone know of the best way to do this with SASS/Compass or, failing that, jQuery? So far, I've tried things like: .opacityFade:not(.classToExclude) { STYLES HERE } or $('controlElement').click(function(){ $(body).not('desiredTargetToExclude')