[TASK] Update: Cropper v0.9.3 -> v2.3.0
[Packages/TYPO3.CMS.git] / Build / Resources / Public / Less / cropper / mixins.less
1 // Mixins
2 // =============================================================================
3
4
5 // Vendor Prefixes
6 // -----------------------------------------------------------------------------
7
8 .box-sizing(@boxmodel) {
9   -webkit-box-sizing: @boxmodel;
10      -moz-box-sizing: @boxmodel;
11           box-sizing: @boxmodel;
12 }
13
14 .user-select(@select) {
15   -webkit-user-select: @select;
16      -moz-user-select: @select;
17       -ms-user-select: @select; // IE10+
18           user-select: @select;
19 }
20
21
22 // Opacity
23 // -----------------------------------------------------------------------------
24
25 .opacity(@opacity) {
26   opacity: @opacity;
27   filter: e(%("alpha(opacity=%s)", @opacity * 100)); // IE8
28 }
29
30
31 // Sizing shortcuts
32 // -----------------------------------------------------------------------------
33
34 .size(@width; @height) {
35   width: @width;
36   height: @height;
37 }
38
39 .min-size(@width; @height) {
40   min-width: @width;
41   min-height: @height;
42 }
43
44 .max-size(@width; @height) {
45   max-width: @width;
46   max-height: @height;
47 }
48
49 .square(@size) {
50   .size(@size; @size);
51 }
52
53 .min-square(@size) {
54   .min-size(@size; @size);
55 }
56
57 .max-square(@size) {
58   .max-size(@size; @size);
59 }