css3 - CSS in placeholder on all pages, except but one: howto? -
Hi there are several pages where we want to set CSS
. Cms-index -noroute .col- main .std {font-weight: bold}. Cms-index-list .col- main .std {font-weight: bold}. Cms-index-view .col- main .std {font-weight: Bold} We would like to write this CSS like
.col- main .std {font-weight: bold} But there is a problem, it breaks everything on the page with the selector
. Cms-index-index Question: Is leaving on all pages is the page where it stays inside . Col-main .std {font-weight: bold} is a CSS notation . CMS-index-index placeholder.
You can use, . CMS-index-index assuming .col-main :
: no (.cms-index-index) & gt; .col- main .std {font-weight: bold; } & lt; Div class = 'cms-index-noroute' & gt; & Lt; Span class = 'Col-main' & gt; & Lt; Span class = 'std' & gt; Span 1 & lt; / Span & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt; Div class = 'cms-index-list' & gt; & Lt; Span class = 'col-main' & gt; & Lt; Span class = 'STD' & gt; Span 2 & lt; / Span & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt; Div class = 'cms-index-view' & gt; & Lt; Span class = 'col-main' & gt; & Lt; Span class = 'STD' & gt; Span 3 & lt; / Span & gt; & Lt; / Span & gt; & Lt; / Div & gt; & Lt; Div class = 'semi-index-index' & gt; & Lt; Span class = 'col-main' & gt; & Lt; Span class = 'STD' & gt; Span 4 & lt; / Span & gt; & Lt; / Span & gt; & Lt; / Div>
Comments
Post a Comment