@natec/mef-dev-ui-kit 0.0.312 → 0.0.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/styles/pg/_color.scss +689 -0
- package/src/lib/styles/pg/_dropdown.scss +38 -0
- package/src/lib/styles/pg/_mixins.scss +1010 -0
- package/src/lib/styles/pg/_responsive.scss +1140 -0
- package/src/lib/styles/pg/_var.scss +198 -0
- package/src/lib/styles/pg/core.scss +276 -0
- package/src/lib/styles/pg/icons.scss +330 -0
- package/src/lib/styles/pg/modules/_breadcrumb.scss +66 -0
- package/src/lib/styles/pg/modules/_buttons.scss +65 -0
- package/src/lib/styles/pg/modules/_cards.scss +417 -0
- package/src/lib/styles/pg/modules/_form_elements.scss +1335 -0
- package/src/lib/styles/pg/modules/_header.scss +259 -0
- package/src/lib/styles/pg/modules/_horizontal-layout.scss +183 -0
- package/src/lib/styles/pg/modules/_horizontal_menu.scss +344 -0
- package/src/lib/styles/pg/modules/_jqx.scss +11 -0
- package/src/lib/styles/pg/modules/_layout.scss +180 -0
- package/src/lib/styles/pg/modules/_lock_screen.scss +92 -0
- package/src/lib/styles/pg/modules/_login.scss +62 -0
- package/src/lib/styles/pg/modules/_misc.scss +703 -0
- package/src/lib/styles/pg/modules/_modals.scss +281 -0
- package/src/lib/styles/pg/modules/_print.scss +32 -0
- package/src/lib/styles/pg/modules/_secondary-sidebar.scss +243 -0
- package/src/lib/styles/pg/modules/_select.scss +599 -0
- package/src/lib/styles/pg/modules/_sidebar.scss +413 -0
- package/src/lib/styles/pg/modules/_switch.scss +144 -0
- package/src/lib/styles/pg/modules/_tabs.scss +336 -0
- package/src/lib/styles/pg/modules/_tabs_accordian.scss +662 -0
- package/src/lib/styles/pg/modules/_timepicker.scss +34 -0
- package/src/lib/styles/pg/modules/_typography.scss +743 -0
- package/src/lib/styles/pg/modules/_uploader.scss +226 -0
- package/src/lib/styles/pg/modules/_view.scss +127 -0
- package/src/lib/styles/pg/modules/_z_index.scss +33 -0
- package/src/lib/styles/pg/toaster.scss +22 -0
- package/src/lib/styles/pg/utils.scss +32 -0
- package/src/lib/styles/pg/vendor/ng-datatable.scss +265 -0
- package/src/lib/styles/pg/vendor/ngx-google-map.scss +18 -0
- package/src/lib/styles/pg/vendor/typehead.scss +29 -0
package/package.json
CHANGED
|
@@ -0,0 +1,689 @@
|
|
|
1
|
+
// Import the Compass Plugin
|
|
2
|
+
//--------------------------------
|
|
3
|
+
// Normal
|
|
4
|
+
//--------------------------------
|
|
5
|
+
@function blend-normal($foreground, $background) {
|
|
6
|
+
$opacity: opacity($foreground);
|
|
7
|
+
$background-opacity: opacity($background);
|
|
8
|
+
|
|
9
|
+
// calculate opacity
|
|
10
|
+
$bm-red: red($foreground) * $opacity + red($background) * $background-opacity *
|
|
11
|
+
(1 - $opacity);
|
|
12
|
+
$bm-green: green($foreground) * $opacity + green($background) *
|
|
13
|
+
$background-opacity * (1 - $opacity);
|
|
14
|
+
$bm-blue: blue($foreground) * $opacity + blue($background) *
|
|
15
|
+
$background-opacity * (1 - $opacity);
|
|
16
|
+
@return rgb($bm-red, $bm-green, $bm-blue);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//--------------------------------
|
|
20
|
+
// Multiply
|
|
21
|
+
//--------------------------------
|
|
22
|
+
@function blend-multiply($foreground, $background) {
|
|
23
|
+
$bm-red: red($background) * red($foreground) / 255;
|
|
24
|
+
$bm-green: green($background) * green($foreground) / 255;
|
|
25
|
+
$bm-blue: blue($background) * blue($foreground) / 255;
|
|
26
|
+
|
|
27
|
+
@return blend-normal(
|
|
28
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
29
|
+
$background
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//--------------------------------
|
|
34
|
+
// Lighten
|
|
35
|
+
//--------------------------------
|
|
36
|
+
@function blend-lighten($foreground, $background) {
|
|
37
|
+
$bm-red: blend-lighten-color(red($foreground), red($background));
|
|
38
|
+
$bm-green: blend-lighten-color(green($foreground), green($background));
|
|
39
|
+
$bm-blue: blend-lighten-color(blue($foreground), blue($background));
|
|
40
|
+
|
|
41
|
+
@return blend-normal(
|
|
42
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
43
|
+
$background
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
@function blend-lighten-color($foreground, $background) {
|
|
47
|
+
@if $background > $foreground {
|
|
48
|
+
$foreground: $background;
|
|
49
|
+
}
|
|
50
|
+
@return $foreground;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
//--------------------------------
|
|
54
|
+
// Darken
|
|
55
|
+
//--------------------------------
|
|
56
|
+
@function blend-darken($foreground, $background) {
|
|
57
|
+
$bm-red: blend-darken-color(red($foreground), red($background));
|
|
58
|
+
$bm-green: blend-darken-color(green($foreground), green($background));
|
|
59
|
+
$bm-blue: blend-darken-color(blue($foreground), blue($background));
|
|
60
|
+
|
|
61
|
+
@return blend-normal(
|
|
62
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
63
|
+
$background
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
@function blend-darken-color($foreground, $background) {
|
|
67
|
+
@if $background < $foreground {
|
|
68
|
+
$foreground: $background;
|
|
69
|
+
}
|
|
70
|
+
@return $foreground;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
//--------------------------------
|
|
74
|
+
// Darker Color
|
|
75
|
+
//--------------------------------
|
|
76
|
+
@function blend-darkercolor($foreground, $background) {
|
|
77
|
+
$bm-red: red($foreground);
|
|
78
|
+
$bm-green: green($foreground);
|
|
79
|
+
$bm-blue: blue($foreground);
|
|
80
|
+
$background-red: red($background);
|
|
81
|
+
$background-green: green($background);
|
|
82
|
+
$background-blue: blue($background);
|
|
83
|
+
|
|
84
|
+
@if $background-red *
|
|
85
|
+
0.3 +
|
|
86
|
+
$background-green *
|
|
87
|
+
0.59 +
|
|
88
|
+
$background-blue *
|
|
89
|
+
0.11 <=
|
|
90
|
+
$bm-red *
|
|
91
|
+
0.3 +
|
|
92
|
+
$bm-green *
|
|
93
|
+
0.59 +
|
|
94
|
+
$bm-blue *
|
|
95
|
+
0.11
|
|
96
|
+
{
|
|
97
|
+
$bm-red: $background-red;
|
|
98
|
+
$bm-green: $background-green;
|
|
99
|
+
$bm-blue: $background-blue;
|
|
100
|
+
}
|
|
101
|
+
@return blend-normal(
|
|
102
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
103
|
+
$background
|
|
104
|
+
);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
//--------------------------------
|
|
108
|
+
// Lighter Color
|
|
109
|
+
//--------------------------------
|
|
110
|
+
@function blend-lightercolor($foreground, $background) {
|
|
111
|
+
$bm-red: red($foreground);
|
|
112
|
+
$bm-green: green($foreground);
|
|
113
|
+
$bm-blue: blue($foreground);
|
|
114
|
+
$background-red: red($background);
|
|
115
|
+
$background-green: green($background);
|
|
116
|
+
$background-blue: blue($background);
|
|
117
|
+
|
|
118
|
+
@if $background-red *
|
|
119
|
+
0.3 +
|
|
120
|
+
$background-green *
|
|
121
|
+
0.59 +
|
|
122
|
+
$background-blue *
|
|
123
|
+
0.11 >
|
|
124
|
+
$bm-red *
|
|
125
|
+
0.3 +
|
|
126
|
+
$bm-green *
|
|
127
|
+
0.59 +
|
|
128
|
+
$bm-blue *
|
|
129
|
+
0.11
|
|
130
|
+
{
|
|
131
|
+
$bm-red: $background-red;
|
|
132
|
+
$bm-green: $background-green;
|
|
133
|
+
$bm-blue: $background-blue;
|
|
134
|
+
}
|
|
135
|
+
@return blend-normal(
|
|
136
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
137
|
+
$background
|
|
138
|
+
);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
//--------------------------------
|
|
142
|
+
// Linear Dodge
|
|
143
|
+
//--------------------------------
|
|
144
|
+
@function blend-lineardodge($foreground, $background) {
|
|
145
|
+
$bm-red: blend-lineardodge-color(red($foreground), red($background));
|
|
146
|
+
$bm-green: blend-lineardodge-color(green($foreground), green($background));
|
|
147
|
+
$bm-blue: blend-lineardodge-color(blue($foreground), blue($background));
|
|
148
|
+
|
|
149
|
+
@return blend-normal(
|
|
150
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
151
|
+
$background
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
@function blend-lineardodge-color($foreground, $background) {
|
|
155
|
+
@if $background + $foreground > 255 {
|
|
156
|
+
$foreground: 255;
|
|
157
|
+
} @else {
|
|
158
|
+
$foreground: $background + $foreground;
|
|
159
|
+
}
|
|
160
|
+
@return $foreground;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
//--------------------------------
|
|
164
|
+
// Linear Burn
|
|
165
|
+
//--------------------------------
|
|
166
|
+
@function blend-linearburn($foreground, $background) {
|
|
167
|
+
$bm-red: blend-linearburn-color(red($foreground), red($background));
|
|
168
|
+
$bm-green: blend-linearburn-color(green($foreground), green($background));
|
|
169
|
+
$bm-blue: blend-linearburn-color(blue($foreground), blue($background));
|
|
170
|
+
|
|
171
|
+
@return blend-normal(
|
|
172
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
173
|
+
$background
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
@function blend-linearburn-color($foreground, $background) {
|
|
177
|
+
@if $background + $foreground < 255 {
|
|
178
|
+
$foreground: 0;
|
|
179
|
+
} @else {
|
|
180
|
+
$foreground: $background + $foreground - 255;
|
|
181
|
+
}
|
|
182
|
+
@return $foreground;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
//--------------------------------
|
|
186
|
+
// Difference
|
|
187
|
+
//--------------------------------
|
|
188
|
+
@function blend-difference($foreground, $background) {
|
|
189
|
+
$bm-red: abs(red($background) - red($foreground));
|
|
190
|
+
$bm-green: abs(green($background) - green($foreground));
|
|
191
|
+
$bm-blue: abs(blue($background) - blue($foreground));
|
|
192
|
+
|
|
193
|
+
@return blend-normal(
|
|
194
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
195
|
+
$background
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
//--------------------------------
|
|
200
|
+
// Screen
|
|
201
|
+
//--------------------------------
|
|
202
|
+
@function blend-screen($foreground, $background) {
|
|
203
|
+
$bm-red: blend-screen-color(red($foreground), red($background));
|
|
204
|
+
$bm-green: blend-screen-color(green($foreground), green($background));
|
|
205
|
+
$bm-blue: blend-screen-color(blue($foreground), blue($background));
|
|
206
|
+
|
|
207
|
+
@return blend-normal(
|
|
208
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
209
|
+
$background
|
|
210
|
+
);
|
|
211
|
+
}
|
|
212
|
+
@function blend-screen-color($foreground, $background) {
|
|
213
|
+
@return (255 - (((255 - $foreground) * (255 - $background)) / 256));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
//--------------------------------
|
|
217
|
+
// Exclusion
|
|
218
|
+
//--------------------------------
|
|
219
|
+
@function blend-exclusion($foreground, $background) {
|
|
220
|
+
$bm-red: blend-exclusion-color(red($foreground), red($background));
|
|
221
|
+
$bm-green: blend-exclusion-color(green($foreground), green($background));
|
|
222
|
+
$bm-blue: blend-exclusion-color(blue($foreground), blue($background));
|
|
223
|
+
|
|
224
|
+
@return blend-normal(
|
|
225
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
226
|
+
$background
|
|
227
|
+
);
|
|
228
|
+
}
|
|
229
|
+
@function blend-exclusion-color($foreground, $background) {
|
|
230
|
+
@return $background - ($background * (2 / 255) - 1) * $foreground;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
//--------------------------------
|
|
234
|
+
// Overlay
|
|
235
|
+
//--------------------------------
|
|
236
|
+
@function blend-overlay($foreground, $background) {
|
|
237
|
+
$bm-red: blend-overlay-color(red($foreground), red($background));
|
|
238
|
+
$bm-green: blend-overlay-color(green($foreground), green($background));
|
|
239
|
+
$bm-blue: blend-overlay-color(blue($foreground), blue($background));
|
|
240
|
+
|
|
241
|
+
@return blend-normal(
|
|
242
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
243
|
+
$background
|
|
244
|
+
);
|
|
245
|
+
}
|
|
246
|
+
@function blend-overlay-color($foreground, $background) {
|
|
247
|
+
@if $background <= 255 / 2 {
|
|
248
|
+
$foreground: (2 * $background * $foreground) / 255;
|
|
249
|
+
} @else {
|
|
250
|
+
$foreground: 255 -
|
|
251
|
+
(255 - 2 * ($background - (255 / 2))) *
|
|
252
|
+
(255 - $foreground) /
|
|
253
|
+
255;
|
|
254
|
+
}
|
|
255
|
+
@return $foreground;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
//--------------------------------
|
|
259
|
+
// Soft Light
|
|
260
|
+
//--------------------------------
|
|
261
|
+
@function blend-softlight($foreground, $background) {
|
|
262
|
+
$bm-red: blend-softlight-color(red($foreground), red($background));
|
|
263
|
+
$bm-green: blend-softlight-color(green($foreground), green($background));
|
|
264
|
+
$bm-blue: blend-softlight-color(blue($foreground), blue($background));
|
|
265
|
+
|
|
266
|
+
@return blend-normal(
|
|
267
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
268
|
+
$background
|
|
269
|
+
);
|
|
270
|
+
}
|
|
271
|
+
@function blend-softlight-color($foreground, $background) {
|
|
272
|
+
@if $background < 128 {
|
|
273
|
+
$foreground: (($foreground / 2) + 64) * $background * (2 / 255);
|
|
274
|
+
} @else {
|
|
275
|
+
$foreground: 255 -
|
|
276
|
+
(191 - ($foreground / 2)) *
|
|
277
|
+
(255 - $background) *
|
|
278
|
+
(2 / 255);
|
|
279
|
+
}
|
|
280
|
+
@return $foreground;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
//--------------------------------
|
|
284
|
+
// Hard Light
|
|
285
|
+
//--------------------------------
|
|
286
|
+
@function blend-hardlight($foreground, $background) {
|
|
287
|
+
$bm-red: blend-hardlight-color(red($foreground), red($background));
|
|
288
|
+
$bm-green: blend-hardlight-color(green($foreground), green($background));
|
|
289
|
+
$bm-blue: blend-hardlight-color(blue($foreground), blue($background));
|
|
290
|
+
|
|
291
|
+
@return blend-normal(
|
|
292
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
293
|
+
$background
|
|
294
|
+
);
|
|
295
|
+
}
|
|
296
|
+
@function blend-hardlight-color($foreground, $background) {
|
|
297
|
+
$tmp-blend: $foreground;
|
|
298
|
+
@if $tmp-blend < 128 {
|
|
299
|
+
$foreground: $background * $tmp-blend * (2 / 255);
|
|
300
|
+
} @else {
|
|
301
|
+
$foreground: 255 - (255-$background) * (255-$tmp-blend) * (2 / 255);
|
|
302
|
+
}
|
|
303
|
+
@return $foreground;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
//--------------------------------
|
|
307
|
+
// Color Dodge
|
|
308
|
+
//--------------------------------
|
|
309
|
+
@function blend-colordodge($foreground, $background) {
|
|
310
|
+
$bm-red: blend-colordodge-color(red($foreground), red($background));
|
|
311
|
+
$bm-green: blend-colordodge-color(green($foreground), green($background));
|
|
312
|
+
$bm-blue: blend-colordodge-color(blue($foreground), blue($background));
|
|
313
|
+
|
|
314
|
+
@return blend-normal(
|
|
315
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
316
|
+
$background
|
|
317
|
+
);
|
|
318
|
+
}
|
|
319
|
+
@function blend-colordodge-color($foreground, $background) {
|
|
320
|
+
$tmp: $background * 256 / (255 - $foreground);
|
|
321
|
+
@if $tmp > 255 or $foreground == 255 {
|
|
322
|
+
$foreground: 255;
|
|
323
|
+
} @else {
|
|
324
|
+
$foreground: $tmp;
|
|
325
|
+
}
|
|
326
|
+
@return $foreground;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
//--------------------------------
|
|
330
|
+
// Color Burn
|
|
331
|
+
//--------------------------------
|
|
332
|
+
@function blend-colorburn($foreground, $background) {
|
|
333
|
+
$bm-red: blend-colorburn-color(red($foreground), red($background));
|
|
334
|
+
$bm-green: blend-colorburn-color(green($foreground), green($background));
|
|
335
|
+
$bm-blue: blend-colorburn-color(blue($foreground), blue($background));
|
|
336
|
+
|
|
337
|
+
@return blend-normal(
|
|
338
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
339
|
+
$background
|
|
340
|
+
);
|
|
341
|
+
}
|
|
342
|
+
@function blend-colorburn-color($foreground, $background) {
|
|
343
|
+
$tmp: (255 - ((255 - $background) * 255) / $foreground);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
//--------------------------------
|
|
347
|
+
// Linear Light
|
|
348
|
+
//--------------------------------
|
|
349
|
+
@function blend-linearlight($foreground, $background) {
|
|
350
|
+
$bm-red: blend-linearlight-color(red($foreground), red($background));
|
|
351
|
+
$bm-green: blend-linearlight-color(green($foreground), green($background));
|
|
352
|
+
$bm-blue: blend-linearlight-color(blue($foreground), blue($background));
|
|
353
|
+
|
|
354
|
+
@return blend-normal(
|
|
355
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
356
|
+
$background
|
|
357
|
+
);
|
|
358
|
+
}
|
|
359
|
+
@function blend-linearlight-color($foreground, $background) {
|
|
360
|
+
@if $foreground < 128 {
|
|
361
|
+
$foreground: blend-linearburn-color($background, 2 * $foreground);
|
|
362
|
+
} @else {
|
|
363
|
+
$foreground: blend-lineardodge-color($background, 2 * ($foreground - 128));
|
|
364
|
+
}
|
|
365
|
+
@return $foreground;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
//--------------------------------
|
|
369
|
+
// Vivid Light
|
|
370
|
+
//--------------------------------
|
|
371
|
+
@function blend-vividlight($foreground, $background) {
|
|
372
|
+
$bm-red: blend-vividlight-color(red($foreground), red($background));
|
|
373
|
+
$bm-green: blend-vividlight-color(green($foreground), green($background));
|
|
374
|
+
$bm-blue: blend-vividlight-color(blue($foreground), blue($background));
|
|
375
|
+
|
|
376
|
+
@return blend-normal(
|
|
377
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
378
|
+
$background
|
|
379
|
+
);
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
@function blend-vividlight-color($foreground, $background) {
|
|
383
|
+
@if $foreground < 128 {
|
|
384
|
+
$foreground: blend-colorburn-color(2 * $foreground, $background);
|
|
385
|
+
} @else {
|
|
386
|
+
$foreground: blend-colordodge-color(2 * ($foreground - 128), $background);
|
|
387
|
+
}
|
|
388
|
+
@return $foreground;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
//--------------------------------
|
|
392
|
+
// Pin Light
|
|
393
|
+
//--------------------------------
|
|
394
|
+
@function blend-pinlight($foreground, $background) {
|
|
395
|
+
$bm-red: blend-pinlight-color(red($foreground), red($background));
|
|
396
|
+
$bm-green: blend-pinlight-color(green($foreground), green($background));
|
|
397
|
+
$bm-blue: blend-pinlight-color(blue($foreground), blue($background));
|
|
398
|
+
|
|
399
|
+
@return blend-normal(
|
|
400
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
401
|
+
$background
|
|
402
|
+
);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
@function blend-pinlight-color($foreground, $background) {
|
|
406
|
+
@if $foreground < 128 {
|
|
407
|
+
$foreground: blend-darken-color($background, 2 * $foreground);
|
|
408
|
+
} @else {
|
|
409
|
+
$foreground: blend-lighten-color($background, 2 * ($foreground - 128));
|
|
410
|
+
}
|
|
411
|
+
@return $foreground;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
//--------------------------------
|
|
415
|
+
// Hard Mix
|
|
416
|
+
//--------------------------------
|
|
417
|
+
@function blend-hardmix($foreground, $background) {
|
|
418
|
+
$bm-red: blend-hardmix-color(red($foreground), red($background));
|
|
419
|
+
$bm-green: blend-hardmix-color(green($foreground), green($background));
|
|
420
|
+
$bm-blue: blend-hardmix-color(blue($foreground), blue($background));
|
|
421
|
+
|
|
422
|
+
@return blend-normal(
|
|
423
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
424
|
+
$background
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
@function blend-hardmix-color($foreground, $background) {
|
|
429
|
+
$tmp: blend-vividlight-color($foreground, $background);
|
|
430
|
+
@if $tmp < 128 {
|
|
431
|
+
$foreground: 0;
|
|
432
|
+
} @else {
|
|
433
|
+
$foreground: 255;
|
|
434
|
+
}
|
|
435
|
+
@return $foreground;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
// Unique to Photoshop
|
|
439
|
+
|
|
440
|
+
//--------------------------------
|
|
441
|
+
// Color Blend
|
|
442
|
+
//--------------------------------
|
|
443
|
+
@function blend-colorblend($foreground, $background) {
|
|
444
|
+
$foreground-hsv: color-to-hsv($foreground);
|
|
445
|
+
$background-hsv: color-to-hsv($background);
|
|
446
|
+
|
|
447
|
+
$bm-hsv: nth($foreground-hsv, 1), nth($foreground-hsv, 2),
|
|
448
|
+
nth($background-hsv, 3);
|
|
449
|
+
$bm-color: hsv-to-color($bm-hsv);
|
|
450
|
+
|
|
451
|
+
@return blend-normal(
|
|
452
|
+
rgba(
|
|
453
|
+
red($bm-color),
|
|
454
|
+
green($bm-color),
|
|
455
|
+
blue($bm-color),
|
|
456
|
+
opacity($foreground)
|
|
457
|
+
),
|
|
458
|
+
$background
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
//--------------------------------
|
|
463
|
+
// Dissolve
|
|
464
|
+
//--------------------------------
|
|
465
|
+
@function blend-dissolve($foreground, $background) {
|
|
466
|
+
// The Dissolve blend mode acts on transparent and partially transparent pixels
|
|
467
|
+
// it treats transparency as a pixel pattern and applies a diffusion dither pattern.
|
|
468
|
+
// @see http://photoblogstop.com/photoshop/photoshop-blend-modes-explained
|
|
469
|
+
@return $foreground;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
//--------------------------------
|
|
473
|
+
// Divide
|
|
474
|
+
//--------------------------------
|
|
475
|
+
@function blend-divide($foreground, $background) {
|
|
476
|
+
$bm-red: blend-divide-colors(red($foreground), red($background));
|
|
477
|
+
$bm-green: blend-divide-colors(green($foreground), green($background));
|
|
478
|
+
$bm-blue: blend-divide-colors(blue($foreground), blue($background));
|
|
479
|
+
|
|
480
|
+
@return blend-normal(
|
|
481
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
482
|
+
$background
|
|
483
|
+
);
|
|
484
|
+
}
|
|
485
|
+
@function blend-divide-colors($foreground, $background) {
|
|
486
|
+
@return min((($background / 255) / ($foreground / 255)) * 255, 255);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
//--------------------------------
|
|
490
|
+
// Hue
|
|
491
|
+
//--------------------------------
|
|
492
|
+
@function blend-hue($foreground, $background) {
|
|
493
|
+
$foreground-hsv: color-to-hsv($foreground);
|
|
494
|
+
$background-hsv: color-to-hsv($background);
|
|
495
|
+
|
|
496
|
+
$bm-hsv: nth($foreground-hsv, 1), nth($background-hsv, 2),
|
|
497
|
+
nth($background-hsv, 3);
|
|
498
|
+
$bm-color: hsv-to-color($bm-hsv);
|
|
499
|
+
|
|
500
|
+
@return blend-normal(
|
|
501
|
+
rgba(
|
|
502
|
+
red($bm-color),
|
|
503
|
+
green($bm-color),
|
|
504
|
+
blue($bm-color),
|
|
505
|
+
opacity($foreground)
|
|
506
|
+
),
|
|
507
|
+
$background
|
|
508
|
+
);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
//--------------------------------
|
|
512
|
+
// Luminosity
|
|
513
|
+
//--------------------------------
|
|
514
|
+
@function blend-luminosity($foreground, $background) {
|
|
515
|
+
$foreground-hsv: color-to-hsv($foreground);
|
|
516
|
+
$background-hsv: color-to-hsv($background);
|
|
517
|
+
|
|
518
|
+
$bm-hsv: nth($background-hsv, 1), nth($background-hsv, 2),
|
|
519
|
+
nth($foreground-hsv, 3);
|
|
520
|
+
$bm-color: hsv-to-color($bm-hsv);
|
|
521
|
+
|
|
522
|
+
@return blend-normal(
|
|
523
|
+
rgba(
|
|
524
|
+
red($bm-color),
|
|
525
|
+
green($bm-color),
|
|
526
|
+
blue($bm-color),
|
|
527
|
+
opacity($foreground)
|
|
528
|
+
),
|
|
529
|
+
$background
|
|
530
|
+
);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
//--------------------------------
|
|
534
|
+
// Saturation
|
|
535
|
+
//--------------------------------
|
|
536
|
+
@function blend-saturation($foreground, $background) {
|
|
537
|
+
$foreground-hsv: color-to-hsv($foreground);
|
|
538
|
+
$background-hsv: color-to-hsv($background);
|
|
539
|
+
|
|
540
|
+
$bm-hsv: nth($background-hsv, 1), nth($foreground-hsv, 2),
|
|
541
|
+
nth($background-hsv, 3);
|
|
542
|
+
$bm-color: hsv-to-color($bm-hsv);
|
|
543
|
+
|
|
544
|
+
@return blend-normal(
|
|
545
|
+
rgba(
|
|
546
|
+
red($bm-color),
|
|
547
|
+
green($bm-color),
|
|
548
|
+
blue($bm-color),
|
|
549
|
+
opacity($foreground)
|
|
550
|
+
),
|
|
551
|
+
$background
|
|
552
|
+
);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
//--------------------------------
|
|
556
|
+
// Subtract
|
|
557
|
+
//--------------------------------
|
|
558
|
+
@function blend-subtract($foreground, $background) {
|
|
559
|
+
$bm-red: max(red($background) - red($foreground), 0);
|
|
560
|
+
$bm-green: max(green($background) - green($foreground), 0);
|
|
561
|
+
$bm-blue: max(blue($background) - blue($foreground), 0);
|
|
562
|
+
|
|
563
|
+
@return blend-normal(
|
|
564
|
+
rgba($bm-red, $bm-green, $bm-blue, opacity($foreground)),
|
|
565
|
+
$background
|
|
566
|
+
);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
//--------------------------------
|
|
570
|
+
// HSL and HSV
|
|
571
|
+
//--------------------------------
|
|
572
|
+
// @see https://gist.github.com/1069204
|
|
573
|
+
@function hsv-to-hsl($h, $s: 0, $v: 0) {
|
|
574
|
+
@if type-of($h) == "list" {
|
|
575
|
+
$v: nth($h, 3);
|
|
576
|
+
$s: nth($h, 2);
|
|
577
|
+
$h: nth($h, 1);
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
@if unit($h) == "deg" {
|
|
581
|
+
$h: 3.1415 * 2 * ($h / 360deg);
|
|
582
|
+
}
|
|
583
|
+
@if unit($s) == "%" {
|
|
584
|
+
$s: 0 + ($s / 100%);
|
|
585
|
+
}
|
|
586
|
+
@if unit($v) == "%" {
|
|
587
|
+
$v: 0 + ($v / 100%);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
$ss: $s * $v;
|
|
591
|
+
$ll: (2 - $s) * $v;
|
|
592
|
+
|
|
593
|
+
@if $ll <= 1 and $ll != 0 {
|
|
594
|
+
$ss: $ss / $ll;
|
|
595
|
+
} @else if ($ll == 2) {
|
|
596
|
+
$ss: 0;
|
|
597
|
+
} @else {
|
|
598
|
+
$ss: $ss / (2 - $ll);
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
$ll: $ll / 2;
|
|
602
|
+
|
|
603
|
+
@return 360deg * $h / (3.1415 * 2), percentage(max(0, min(1, $ss))),
|
|
604
|
+
percentage(max(0, min(1, $ll)));
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
@function hsl-to-hsv($h, $ss: 0, $ll: 0) {
|
|
608
|
+
@if type-of($h) == "list" {
|
|
609
|
+
$ll: nth($h, 3);
|
|
610
|
+
$ss: nth($h, 2);
|
|
611
|
+
$h: nth($h, 1);
|
|
612
|
+
} @else if type-of($h) == "color" {
|
|
613
|
+
$ll: lightness($h);
|
|
614
|
+
$ss: saturation($h);
|
|
615
|
+
$h: hue($h);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
@if unit($h) == "deg" {
|
|
619
|
+
$h: 3.1415 * 2 * ($h / 360deg);
|
|
620
|
+
}
|
|
621
|
+
@if unit($ss) == "%" {
|
|
622
|
+
$ss: 0 + ($ss / 100%);
|
|
623
|
+
}
|
|
624
|
+
@if unit($ll) == "%" {
|
|
625
|
+
$ll: 0 + ($ll / 100%);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
$ll: $ll * 2;
|
|
629
|
+
|
|
630
|
+
@if $ll <= 1 {
|
|
631
|
+
$ss: $ss * $ll;
|
|
632
|
+
} @else {
|
|
633
|
+
$ss: $ss * (2 - $ll);
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
$v: ($ll + $ss) / 2;
|
|
637
|
+
$s: if($ll + $ss == 0, 0, (2 * $ss) / ($ll + $ss));
|
|
638
|
+
|
|
639
|
+
@return 360deg * $h / (3.1415 * 2), percentage(max(0, min(1, $s))),
|
|
640
|
+
percentage(max(0, min(1, $v)));
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
@function color-to-hsv($color) {
|
|
644
|
+
@return hsl-to-hsv($color);
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
@function hsv-to-color($h, $s: 0, $v: 0) {
|
|
648
|
+
$hsl: hsv-to-hsl($h, $s, $v);
|
|
649
|
+
@return hsl(nth($hsl, 1), nth($hsl, 2), nth($hsl, 3));
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
@function fade($color, $opacity) {
|
|
653
|
+
@return fade-in($color, $opacity/100%);
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
div.jqxInGridLink {
|
|
657
|
+
cursor: pointer;
|
|
658
|
+
color: blue;
|
|
659
|
+
margin: 2px;
|
|
660
|
+
text-decoration: underline;
|
|
661
|
+
:hover {
|
|
662
|
+
color: blueviolet;
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
.pink-text {
|
|
667
|
+
color: pink !important;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.red-text {
|
|
671
|
+
color: red !important;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.turquoise-text {
|
|
675
|
+
color: rgb(3, 167, 150) !important;
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.blue-text {
|
|
679
|
+
color: blue !important;
|
|
680
|
+
}
|
|
681
|
+
// :visited {
|
|
682
|
+
// color: green;
|
|
683
|
+
// }
|
|
684
|
+
// :hover {
|
|
685
|
+
// background: yellow;
|
|
686
|
+
// }
|
|
687
|
+
// :visited:hover {
|
|
688
|
+
// color: purple;
|
|
689
|
+
// }
|