Quantcast
Channel: Themes & Design - Shopware Community Forum
Viewing all articles
Browse latest Browse all 1971

LESS Funktion

$
0
0

Hallo, ich habe ein Plugin und das Less will bei mehrfach when nicht rendern. 

body{
  color: red;
}

.funktioneins() when (@variable = "eins"), (@variable = "zwei"), (@variable = "drei"){
  body{
    color: @farbegruen;
    i{
     color: blue;
    }
  }
  .irgendeineklasse{
    color: white;
  }
}
.funktioneins();

.funktionzwei() when (@variable = "vier"), (@variable = "funf"), (@variable = "sechs"){
  body{
    color: yellow;
  }
}
funktionzwei()

Daraus sollte resultieren:

// @variable = null
body{color: red;}

// @variable = ein, zwei oder drei, @farbegruen = green
body{ color: green;}
body i{ color: blue;}
.irgendeineklasse{ color: white;}

// @variable = vier, funf oder sechs
body{ color: yellow;}

heraus kommt aber nur:

body{ color: red}

Kein Renderfehler, einfach nichts. Weiss jemand Rat?


Viewing all articles
Browse latest Browse all 1971

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>