"Fossies" - the Fresh Open Source Software Archive

Member "less.js-3.9.0/test/less/property-name-interp.less" (29 Nov 2018, 1051 Bytes) of package /linux/www/less.js-3.9.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) LESS source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 
    2 pi-test {
    3     @prefix: ufo-;
    4     @a:    border;
    5     @bb:      top;
    6     @c_c:    left;
    7     @d-d4: radius;
    8     @-:         -;
    9 
   10     @var: ~'@not-variable';
   11 
   12     @{a}: 0;
   13     @{var}: @var;
   14     @{prefix}width: 50%;
   15     *-z-@{a} :1px dashed blue;
   16     -www-@{a}-@{bb}: 2px;
   17     @{d-d4}-is-not-a-@{a}:true;
   18     @{a}-@{bb}-@{c_c}-@{d-d4}       : 2em;
   19     @{a}@{-}@{bb}@{-}red@{-}@{d-d4}-: 3pt;
   20 
   21     .mixin(mixer);
   22     .merge(ish, base);
   23 }
   24 
   25 @global: global;
   26 
   27 .mixin(@arg) {
   28     @local: local;
   29     @{global}-@{local}-@{arg}-property: strong;
   30 }
   31 
   32 .merge(@p, @v) {
   33     &-merge {
   34         @prefix: pre;
   35         @suffix: ish;
   36         @{prefix}-property-ish+       :high;
   37         pre-property-@{suffix}    +: middle;
   38         @{prefix}-property-@{suffix}+:  low;
   39         @{prefix}-property-@{p}   +  :   @v;
   40 
   41         @subterfuge: ~'+';
   42         pre-property-ish@{subterfuge}: nice try dude;
   43     }
   44 }
   45 
   46 pi-indirect-vars {
   47     @{p}: @p;
   48     @p: @@a;
   49     @a: b;
   50     @b: auto;
   51 }
   52 
   53 pi-complex-values {
   54     @{p}@{p}: none;
   55     @p: (1 + 2px) fadeout(#ff0, 50%), pi() /* foo */;
   56 }