File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,15 @@ module.exports = function ({ addComponents, theme }) {
3
3
const userStyles = theme ( 'debugScreens.style' , { } ) ;
4
4
const ignoredScreens = theme ( 'debugScreens.ignore' , [ 'dark' ] ) ;
5
5
const prefix = theme ( 'debugScreens.prefix' , 'screen: ' ) ;
6
+ const selector = theme ( 'debugScreens.selector' , '.debug-screens' ) ;
6
7
7
8
const defaultPosition = [ 'bottom' , 'left' ] ;
8
9
const position = theme ( 'debugScreens.position' , defaultPosition ) ;
9
10
const positionY = position [ 0 ] || defaultPosition [ 0 ] ;
10
11
const positionX = position [ 1 ] || defaultPosition [ 1 ] ;
11
12
12
- const selector = theme ( 'debugScreens.selector' , '.debug-screens::before' ) ;
13
-
14
13
const components = {
15
- [ selector ] : Object . assign ( {
14
+ [ ` ${ selector } ::before` ] : Object . assign ( {
16
15
position : 'fixed' ,
17
16
zIndex : '2147483647' ,
18
17
[ positionY ] : '0' ,
@@ -32,7 +31,7 @@ module.exports = function ({ addComponents, theme }) {
32
31
. filter ( ( [ screen ] ) => ! ignoredScreens . includes ( screen ) )
33
32
. forEach ( ( [ screen ] ) => {
34
33
components [ `@screen ${ screen } ` ] = {
35
- [ selector ] : {
34
+ [ ` ${ selector } ::before` ] : {
36
35
content : `'${ prefix } ${ screen } '` ,
37
36
} ,
38
37
} ;
You can’t perform that action at this time.
0 commit comments