title: Apply css to all element except one who has specific parent
body: <p>I want to apply CSS to all pages except sidebars. Let me show you an example</p>
  
  <pre class="lang-css prettyprint-override"><code>.page #buddypress ul.group li
  </code></pre>
  
  <p>I want to apply CSS to all <code>&lt;li&gt;</code> tags that are children of <code>ul.group</code> class. Problem here is that this class is also exist in sidebar and I don't want to change styling of sidebar. I just want to apply CSS to the page section and not to the sidebar.</p>
  
  <p>I except some kind of <code>:not(.class)</code> operation to do that. </p>
  
  <p>Here is what I am trying to do</p>
  
  <pre class="lang-css prettyprint-override"><code>.page :not(.sidebar) #buddypress ul.group li
  </code></pre>
  
  <p>But this trick doesn't work for me. I really appreciate if someone could solve my problem. I want to apply CSS to all sections except sidebar.</p>
  
  <p>Here is what my HTML looks like:</p>
  
  <pre><code>&lt;body&gt;
  &lt;div id="buddypress"&gt;
  &lt;ul class="groups"&gt;
  &lt;li&gt; &lt;/li&gt;
  &lt;/div&gt;
  &lt;div class="sidebar"&gt;
  &lt;ul class="groups"&gt;
  &lt;li&gt; &lt;/li&gt;
  &lt;/div&gt;
  </code></pre>