@nopon-web/styles 0.0.5 → 0.0.51
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/_mixin.scss +25 -9
- package/package.json +1 -1
package/_mixin.scss
CHANGED
|
@@ -82,24 +82,35 @@ $__bem-context: null;
|
|
|
82
82
|
$state-selector: $state-prefix + $common-separator + $state;
|
|
83
83
|
|
|
84
84
|
@at-root {
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
@if & {
|
|
86
|
+
&.#{$state-selector} {
|
|
87
|
+
@content;
|
|
88
|
+
}
|
|
89
|
+
} @else {
|
|
90
|
+
.#{$state-selector} {
|
|
91
|
+
@content;
|
|
92
|
+
}
|
|
87
93
|
}
|
|
88
94
|
}
|
|
89
95
|
}
|
|
90
96
|
|
|
91
97
|
@mixin absolute-center($x: true, $y: true) {
|
|
92
|
-
|
|
98
|
+
$x-value: 0;
|
|
99
|
+
$y-value: 0;
|
|
93
100
|
|
|
94
|
-
|
|
95
|
-
top: 50%;
|
|
96
|
-
}
|
|
101
|
+
position: absolute;
|
|
97
102
|
|
|
98
103
|
@if $x {
|
|
99
104
|
left: 50%;
|
|
105
|
+
$x-value: -50%;
|
|
100
106
|
}
|
|
101
107
|
|
|
102
|
-
|
|
108
|
+
@if $y {
|
|
109
|
+
top: 50%;
|
|
110
|
+
$y-value: -50%;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
transform: translate(#{$x-value}, #{$y-value});
|
|
103
114
|
}
|
|
104
115
|
|
|
105
116
|
@mixin set-z-index($number) {
|
|
@@ -135,11 +146,16 @@ $__bem-context: null;
|
|
|
135
146
|
@error "frame-border: image / inset / slice are required";
|
|
136
147
|
}
|
|
137
148
|
|
|
149
|
+
@if $fill {
|
|
150
|
+
border-image-slice: #{$slice} fill;
|
|
151
|
+
} @else {
|
|
152
|
+
border-image-slice: #{$slice};
|
|
153
|
+
}
|
|
154
|
+
|
|
138
155
|
box-sizing: border-box;
|
|
139
156
|
border-style: solid;
|
|
140
157
|
border-width: $inset;
|
|
141
158
|
border-image-source: func.get-image($image);
|
|
142
|
-
border-image-slice: #{$slice}#{if($fill, " fill", "")};
|
|
143
159
|
border-image-repeat: $repeat;
|
|
144
160
|
}
|
|
145
161
|
|
|
@@ -156,7 +172,7 @@ $__bem-context: null;
|
|
|
156
172
|
z-index: 0;
|
|
157
173
|
font-size: 0;
|
|
158
174
|
line-height: 1;
|
|
159
|
-
|
|
175
|
+
font-size: #{func.u(10)};
|
|
160
176
|
|
|
161
177
|
> * {
|
|
162
178
|
font-size: $size;
|