-1

I'm not 100% sure if I'm saying this right, but basically, right now I am using a global CSS sheet, and in Drupal it generates a CSS sheet for each of my sub-sites based off of this one.

So we use [class*=""] to determine which subsite needs which code from this one CSS document.

If I have multiple subsites, that use one chunk of code is there a way to place an or statement?

For example...

[class*="site-1"] || [class*="site-2"] {
.class {
my css stuff
}}

Not sure if the above works or not.

[class*="site-3"] {
.class2 {
more css stuff
}
}
Jan Sršeň
  • 1,021
  • 3
  • 19
  • 43
gabessdsp
  • 3
  • 3

1 Answers1

0

This will work on any element that has one of the classes:

.site1, .site2 {
    ...
}

So you can use it for style that is shared between the sites.

aviya.developer
  • 3,102
  • 1
  • 11
  • 38