@@ -2,14 +2,13 @@ module.exports = function ({ addComponents, theme }) {
2
2
const screens = theme ( 'screens' ) ;
3
3
const userStyles = theme ( 'debugScreens.style' , { } ) ;
4
4
const ignoredScreens = theme ( 'debugScreens.ignore' , [ ] )
5
+ const prefix = theme ( 'debugScreens.prefix' , 'screen: ' ) ;
5
6
6
7
const defaultPosition = [ 'bottom' , 'left' ] ;
7
8
const position = theme ( 'debugScreens.position' , defaultPosition ) ;
8
9
const positionY = position [ 0 ] || defaultPosition [ 0 ] ;
9
10
const positionX = position [ 1 ] || defaultPosition [ 1 ] ;
10
11
11
- const indicatorPrefix = theme ( 'debugScreens.indicatorPrefix' , 'screens: ' ) ;
12
-
13
12
const components = {
14
13
'.debug-screens::before' : Object . assign ( {
15
14
position : 'fixed' ,
@@ -23,7 +22,7 @@ module.exports = function ({ addComponents, theme }) {
23
22
backgroundColor : '#000' ,
24
23
color : '#fff' ,
25
24
boxShadow : '0 0 0 1px #fff' ,
26
- content : `'${ indicatorPrefix } _'` ,
25
+ content : `'${ prefix } _'` ,
27
26
} , userStyles ) ,
28
27
} ;
29
28
@@ -32,7 +31,7 @@ module.exports = function ({ addComponents, theme }) {
32
31
. forEach ( ( [ screen ] ) => {
33
32
components [ `@screen ${ screen } ` ] = {
34
33
'.debug-screens::before' : {
35
- content : `'${ indicatorPrefix } ${ screen } '` ,
34
+ content : `'${ prefix } ${ screen } '` ,
36
35
} ,
37
36
} ;
38
37
} ) ;
0 commit comments