File: spectrum.css

package info (click to toggle)
qtwebkit-opensource-src 5.7.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 291,692 kB
  • ctags: 268,122
  • sloc: cpp: 1,360,420; python: 70,286; ansic: 42,986; perl: 35,476; ruby: 12,236; objc: 9,465; xml: 8,396; asm: 3,873; yacc: 2,397; sh: 1,647; makefile: 650; lex: 644; java: 110
file content (114 lines) | stat: -rw-r--r-- 2,100 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/* https://github.com/bgrins/spectrum */
.spectrum-container {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    background: rgba(230, 230, 230, 1) !important;
    border: 1px solid #646464;
    padding: 10px;
    width: 220px;
    z-index: 10;
    -webkit-user-select: none;
}

.spectrum-top {
    position: relative;
    width: 100%;
    display: inline-block;
}

.spectrum-color {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 40px;
}

.spectrum-display-value {
    -webkit-user-select: text;
    position: relative;
    left: 2px;
    top: -6px;
}

.spectrum-hue {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 170px;
    -webkit-box-reflect: right -28px;
}

.spectrum-fill {
    /* Same as spectrum-color width to force aspect ratio. */
    margin-top: 150px;
}

.spectrum-range-container {
    position: relative;
    padding-bottom: 5px;
}

.spectrum-range-container * {
    font-size: 11px;
    vertical-align: middle;
}

.spectrum-range-container label {
    display: inline-block;
    padding-right: 4px;
}

.spectrum-range-container input {
    position: absolute;
    left: 15px;
    right: 40px;
    margin: 3px 0 0 0;
}

.spectrum-dragger, .spectrum-slider {
    -webkit-user-select: none;
}

.spectrum-sat {
    background-image: -webkit-linear-gradient(left, white, rgba(204, 154, 129, 0));
}

.spectrum-val {
    background-image: -webkit-linear-gradient(bottom, black, rgba(204, 154, 129, 0));
}

.spectrum-hue {
    background: -webkit-linear-gradient(top, #ff0000 0%, #ffff00 17%, #00ff00 33%, #00ffff 50%, #0000ff 67%, #ff00ff 83%, #ff0000 100%);
}

.spectrum-dragger {
    border-radius: 5px;
    height: 5px;
    width: 5px;
    border: 1px solid white;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    background: black;
}

.spectrum-slider {
    position: absolute;
    top: 0;
    cursor: pointer;
    border: 1px solid black;
    height: 4px;
    left: -1px;
    right: -1px;
}

.spectrum-container .swatch {
    width: 20px;
    height:20px;
    margin: 0;
}