~ubuntu-branches/ubuntu/wily/phabricator/wily

« back to all changes in this revision

Viewing changes to src/lint/linter/__tests__/lessc/colors.lint-test

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-11-01 23:20:06 UTC
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: package-import@ubuntu.com-20141101232006-mvlnp0cil67tsboe
Tags: upstream-0~git20141101/arcanist
Import upstream version 0~git20141101, component arcanist

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#yelow {
 
2
  #short {
 
3
    color: #fea;
 
4
  }
 
5
  #long {
 
6
    color: #ffeeaa;
 
7
  }
 
8
  #rgba {
 
9
    color: rgba(255, 238, 170, 0.1);
 
10
  }
 
11
  #argb {
 
12
    color: argb(rgba(255, 238, 170, 0.1));
 
13
  }
 
14
}
 
15
 
 
16
#blue {
 
17
  #short {
 
18
    color: #00f;
 
19
  }
 
20
  #long {
 
21
    color: #0000ff;
 
22
  }
 
23
  #rgba {
 
24
    color: rgba(0, 0, 255, 0.1);
 
25
  }
 
26
  #argb {
 
27
    color: argb(rgba(0, 0, 255, 0.1));
 
28
  }
 
29
}
 
30
 
 
31
#alpha #hsla {
 
32
    color: hsla(11, 20%, 20%, 0.6);
 
33
}
 
34
 
 
35
#overflow {
 
36
  .a { color: (#111111 - #444444); } // #000000
 
37
  .b { color: (#eee + #fff); } // #ffffff
 
38
  .c { color: (#aaa * 3); } // #ffffff
 
39
  .d { color: (#00ee00 + #009900); } // #00ff00
 
40
  .e { color: rgba(-99.9, 31.4159, 321, 0.42); }
 
41
}
 
42
 
 
43
#grey {
 
44
  color: rgb(200, 200, 200);
 
45
}
 
46
 
 
47
#333333 {
 
48
  color: rgb(20%, 20%, 20%);
 
49
}
 
50
 
 
51
#808080 {
 
52
  color: hsl(50, 0%, 50%);
 
53
}
 
54
 
 
55
#00ff00 {
 
56
  color: hsl(120, 100%, 50%);
 
57
}
 
58
 
 
59
.lightenblue {
 
60
    color: lighten(blue, 10%);
 
61
}
 
62
 
 
63
.darkenblue {
 
64
    color: darken(blue, 10%);
 
65
}
 
66
 
 
67
.unknowncolors {
 
68
    color: blue2;
 
69
    border: 2px solid superred;
 
70
}
 
71
 
 
72
.transparent {
 
73
    color: transparent;
 
74
    background-color: rgba(0, 0, 0, 0);
 
75
}
 
76
#alpha {
 
77
    @colorvar: rgba(150, 200, 150, 0.7);
 
78
    #fromvar {
 
79
        opacity: alpha(@colorvar);
 
80
    }
 
81
    #short {
 
82
        opacity: alpha(#aaa);
 
83
    }
 
84
    #long {
 
85
        opacity: alpha(#bababa);
 
86
    }
 
87
    #rgba {
 
88
        opacity: alpha(rgba(50, 120, 95, 0.2));
 
89
    }
 
90
    #hsl {
 
91
        opacity: alpha(hsl(120, 100%, 50%));
 
92
    }
 
93
}
 
94
 
 
95
#percentage {
 
96
  color: red(rgb(100%, 0, 0));
 
97
  border-color: rgba(100%, 0, 0, 50%);
 
98
}
 
99
~~~~~~~~~~