@@ -51,7 +51,10 @@ module.exports = function lostAlign(css, settings) {
5151 [ 'position' , 'top' , 'right' , 'bottom' , 'left' , 'transform' ] ,
5252 [ 'absolute' , '0' , 'auto' , 'auto' , '0' , 'translate(0, 0)' ]
5353 ) ;
54- } else if ( alignDirection === 'top-center' || alignDirection === 'top' ) {
54+ } else if (
55+ alignDirection === 'top-center' ||
56+ alignDirection === 'top'
57+ ) {
5558 newBlock (
5659 decl ,
5760 ' > *' ,
@@ -65,21 +68,30 @@ module.exports = function lostAlign(css, settings) {
6568 [ 'position' , 'top' , 'right' , 'bottom' , 'left' , 'transform' ] ,
6669 [ 'absolute' , '0' , '0' , 'auto' , 'auto' , 'translate(0, 0)' ]
6770 ) ;
68- } else if ( alignDirection === 'middle-left' || alignDirection === 'left' ) {
71+ } else if (
72+ alignDirection === 'middle-left' ||
73+ alignDirection === 'left'
74+ ) {
6975 newBlock (
7076 decl ,
7177 ' > *' ,
7278 [ 'position' , 'top' , 'right' , 'bottom' , 'left' , 'transform' ] ,
7379 [ 'absolute' , '50%' , 'auto' , 'auto' , '0' , 'translate(0, -50%)' ]
7480 ) ;
75- } else if ( alignDirection === 'middle-center' || alignDirection === 'center' ) {
81+ } else if (
82+ alignDirection === 'middle-center' ||
83+ alignDirection === 'center'
84+ ) {
7685 newBlock (
7786 decl ,
7887 ' > *' ,
7988 [ 'position' , 'top' , 'right' , 'bottom' , 'left' , 'transform' ] ,
8089 [ 'absolute' , '50%' , 'auto' , 'auto' , '50%' , 'translate(-50%, -50%)' ]
8190 ) ;
82- } else if ( alignDirection === 'middle-right' || alignDirection === 'right' ) {
91+ } else if (
92+ alignDirection === 'middle-right' ||
93+ alignDirection === 'right'
94+ ) {
8395 newBlock (
8496 decl ,
8597 ' > *' ,
@@ -93,7 +105,10 @@ module.exports = function lostAlign(css, settings) {
93105 [ 'position' , 'top' , 'right' , 'bottom' , 'left' , 'transform' ] ,
94106 [ 'absolute' , 'auto' , 'auto' , '0' , '0' , 'translate(0, 0)' ]
95107 ) ;
96- } else if ( alignDirection === 'bottom-center' || alignDirection === 'bottom' ) {
108+ } else if (
109+ alignDirection === 'bottom-center' ||
110+ alignDirection === 'bottom'
111+ ) {
97112 newBlock (
98113 decl ,
99114 ' > *' ,
@@ -108,7 +123,9 @@ module.exports = function lostAlign(css, settings) {
108123 [ 'absolute' , 'auto' , '0' , '0' , 'auto' , 'translate(0, 0)' ]
109124 ) ;
110125 } else {
111- throw decl . error ( `lost-align: direction '${ alignDirection } ' is unknown.` ) ;
126+ throw decl . error (
127+ `lost-align: direction '${ alignDirection } ' is unknown.`
128+ ) ;
112129 }
113130 }
114131 } else if ( alignDirection === 'reset' ) {
@@ -162,21 +179,30 @@ module.exports = function lostAlign(css, settings) {
162179 [ 'justify-content' , 'align-items' ] ,
163180 [ 'flex-end' , 'flex-start' ]
164181 ) ;
165- } else if ( alignDirection === 'middle-left' || alignDirection === 'left' ) {
182+ } else if (
183+ alignDirection === 'middle-left' ||
184+ alignDirection === 'left'
185+ ) {
166186 newBlock (
167187 decl ,
168188 '' ,
169189 [ 'justify-content' , 'align-items' ] ,
170190 [ 'flex-start' , 'center' ]
171191 ) ;
172- } else if ( alignDirection === 'middle-center' || alignDirection === 'center' ) {
192+ } else if (
193+ alignDirection === 'middle-center' ||
194+ alignDirection === 'center'
195+ ) {
173196 newBlock (
174197 decl ,
175198 '' ,
176199 [ 'justify-content' , 'align-items' ] ,
177200 [ 'center' , 'center' ]
178201 ) ;
179- } else if ( alignDirection === 'middle-right' || alignDirection === 'right' ) {
202+ } else if (
203+ alignDirection === 'middle-right' ||
204+ alignDirection === 'right'
205+ ) {
180206 newBlock (
181207 decl ,
182208 '' ,
@@ -190,7 +216,10 @@ module.exports = function lostAlign(css, settings) {
190216 [ 'justify-content' , 'align-items' ] ,
191217 [ 'flex-start' , 'flex-end' ]
192218 ) ;
193- } else if ( alignDirection === 'bottom-center' || alignDirection === 'bottom' ) {
219+ } else if (
220+ alignDirection === 'bottom-center' ||
221+ alignDirection === 'bottom'
222+ ) {
194223 newBlock (
195224 decl ,
196225 '' ,
@@ -205,7 +234,9 @@ module.exports = function lostAlign(css, settings) {
205234 [ 'flex-end' , 'flex-end' ]
206235 ) ;
207236 } else {
208- throw decl . error ( `lost-align: direction '${ alignDirection } ' is unknown.` ) ;
237+ throw decl . error (
238+ `lost-align: direction '${ alignDirection } ' is unknown.`
239+ ) ;
209240 }
210241 }
211242 decl . remove ( ) ;
0 commit comments