@magicgol/polyjuice 0.27.0 → 0.28.2
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -39,6 +39,13 @@ export default {
|
|
39
39
|
type: Boolean,
|
40
40
|
default: false,
|
41
41
|
},
|
42
|
+
opacity: {
|
43
|
+
type: String,
|
44
|
+
default: 'high',
|
45
|
+
validator: function (value) {
|
46
|
+
return ['high', 'low'].indexOf(value) !== -1;
|
47
|
+
},
|
48
|
+
},
|
42
49
|
},
|
43
50
|
|
44
51
|
computed: {
|
@@ -46,6 +53,8 @@ export default {
|
|
46
53
|
return {
|
47
54
|
'mg-footballer-box': true,
|
48
55
|
'mg-footballer-box--background': this.background === true,
|
56
|
+
'mg-footballer-box--opacity-high': this.opacity === 'high',
|
57
|
+
'mg-footballer-box--opacity-low': this.opacity === 'low',
|
49
58
|
'mg-footballer-box--goalkeeper': this.role === 'P',
|
50
59
|
'mg-footballer-box--defender': this.role === 'D',
|
51
60
|
'mg-footballer-box--midfielder': this.role === 'C',
|
@@ -71,7 +80,17 @@ export default {
|
|
71
80
|
border-color: map-get($palette, 'goalkeeper');
|
72
81
|
|
73
82
|
&.mg-footballer-box--background {
|
74
|
-
background-color:
|
83
|
+
background-color: map-get($palette, 'goalkeeper');
|
84
|
+
|
85
|
+
&.mg-footballer-box--opacity {
|
86
|
+
&-low {
|
87
|
+
background-color: rgba(map-get($palette, 'goalkeeper'), 0.1);
|
88
|
+
}
|
89
|
+
|
90
|
+
&-high {
|
91
|
+
background-color: rgba(map-get($palette, 'goalkeeper'), 0.8);
|
92
|
+
}
|
93
|
+
}
|
75
94
|
}
|
76
95
|
}
|
77
96
|
|
@@ -79,7 +98,17 @@ export default {
|
|
79
98
|
border-color: map-get($palette, 'defender');
|
80
99
|
|
81
100
|
&.mg-footballer-box--background {
|
82
|
-
background-color:
|
101
|
+
background-color: map-get($palette, 'defender');
|
102
|
+
|
103
|
+
&.mg-footballer-box--opacity {
|
104
|
+
&-low {
|
105
|
+
background-color: rgba(map-get($palette, 'defender'), 0.1);
|
106
|
+
}
|
107
|
+
|
108
|
+
&-high {
|
109
|
+
background-color: rgba(map-get($palette, 'defender'), 0.8);
|
110
|
+
}
|
111
|
+
}
|
83
112
|
}
|
84
113
|
}
|
85
114
|
|
@@ -87,7 +116,17 @@ export default {
|
|
87
116
|
border-color: map-get($palette, 'midfielder');
|
88
117
|
|
89
118
|
&.mg-footballer-box--background {
|
90
|
-
background-color:
|
119
|
+
background-color: map-get($palette, 'midfielder');
|
120
|
+
|
121
|
+
&.mg-footballer-box--opacity {
|
122
|
+
&-low {
|
123
|
+
background-color: rgba(map-get($palette, 'midfielder'), 0.1);
|
124
|
+
}
|
125
|
+
|
126
|
+
&-high {
|
127
|
+
background-color: rgba(map-get($palette, 'midfielder'), 0.8);
|
128
|
+
}
|
129
|
+
}
|
91
130
|
}
|
92
131
|
}
|
93
132
|
|
@@ -95,7 +134,17 @@ export default {
|
|
95
134
|
border-color: map-get($palette, 'forward');
|
96
135
|
|
97
136
|
&.mg-footballer-box--background {
|
98
|
-
background-color:
|
137
|
+
background-color: map-get($palette, 'forward');
|
138
|
+
|
139
|
+
&.mg-footballer-box--opacity {
|
140
|
+
&-low {
|
141
|
+
background-color: rgba(map-get($palette, 'forward'), 0.1);
|
142
|
+
}
|
143
|
+
|
144
|
+
&-high {
|
145
|
+
background-color: rgba(map-get($palette, 'forward'), 0.8);
|
146
|
+
}
|
147
|
+
}
|
99
148
|
}
|
100
149
|
}
|
101
150
|
|
@@ -25,7 +25,7 @@ export default {
|
|
25
25
|
type: String,
|
26
26
|
default: 'light',
|
27
27
|
validator: function (value) {
|
28
|
-
return ['light', 'dark'].indexOf(value) !== -1;
|
28
|
+
return ['light', 'dark', 'goalkeeper', 'defender', 'midfielder', 'forward'].indexOf(value) !== -1;
|
29
29
|
},
|
30
30
|
},
|
31
31
|
},
|
@@ -38,6 +38,10 @@ export default {
|
|
38
38
|
'mg-label--size-normal': this.size === 'normal',
|
39
39
|
'mg-label--theme-light': this.theme === 'light',
|
40
40
|
'mg-label--theme-dark': this.theme === 'dark',
|
41
|
+
'mg-label--theme-goalkeeper': this.theme === 'goalkeeper',
|
42
|
+
'mg-label--theme-defender': this.theme === 'defender',
|
43
|
+
'mg-label--theme-midfielder': this.theme === 'midfielder',
|
44
|
+
'mg-label--theme-forward': this.theme === 'forward',
|
41
45
|
};
|
42
46
|
}
|
43
47
|
},
|
@@ -48,6 +52,7 @@ export default {
|
|
48
52
|
@import '../../../assets/palette';
|
49
53
|
|
50
54
|
.mg-label {
|
55
|
+
border: 2px solid;
|
51
56
|
border-radius: 32px;
|
52
57
|
padding-top: 0.0625rem;
|
53
58
|
padding-bottom: 0.0625rem;
|
@@ -70,13 +75,39 @@ export default {
|
|
70
75
|
&--theme {
|
71
76
|
&-light {
|
72
77
|
background: #f7f7f7;
|
78
|
+
border-color: #f7f7f7;
|
73
79
|
color: map-get($palette, 'text');
|
74
80
|
}
|
75
81
|
|
76
82
|
&-dark {
|
77
83
|
background: #5b5b5b;
|
84
|
+
border-color: #5b5b5b;
|
78
85
|
color: #fff;
|
79
86
|
}
|
87
|
+
|
88
|
+
&-goalkeeper {
|
89
|
+
background: map-get($palette, 'goalkeeper');
|
90
|
+
border-color: #f7f7f7;
|
91
|
+
color: map-get($palette, 'text');
|
92
|
+
}
|
93
|
+
|
94
|
+
&-defender {
|
95
|
+
background: map-get($palette, 'defender');
|
96
|
+
border-color: #f7f7f7;
|
97
|
+
color: map-get($palette, 'text');
|
98
|
+
}
|
99
|
+
|
100
|
+
&-midfielder {
|
101
|
+
background: map-get($palette, 'midfielder');
|
102
|
+
border-color: #f7f7f7;
|
103
|
+
color: map-get($palette, 'text');
|
104
|
+
}
|
105
|
+
|
106
|
+
&-forward {
|
107
|
+
background: map-get($palette, 'forward');
|
108
|
+
border-color: #f7f7f7;
|
109
|
+
color: map-get($palette, 'text');
|
110
|
+
}
|
80
111
|
}
|
81
112
|
}
|
82
113
|
</style>
|