1313
1414
1515
16- [data-debug = "headline" ] {
17- position : relative;
16+ [data-debug = "headline" ] {
17+ position : relative;
1818
19- & pre {
19+ & pre {
20+ position : absolute;
21+ inset : 0 ;
22+ z-index : 10000 ;
23+ margin : 0 ;
24+ font-family : monospace;
25+ font-weight : normal;
26+
27+ & ::before {
2028 position : absolute;
2129 inset : 0 ;
30+ box-sizing : border-box;
31+ pointer-events : none;
32+ content : '' ;
33+ border : dotted # 333 2px ;
34+ }
35+
36+ & ::after {
37+ position : absolute;
38+ right : 0 ;
39+ bottom : 0 ;
2240 z-index : 10000 ;
23- margin : 0 ;
24- font-family : monospace;
25- font-weight : normal;
26-
27- & ::before {
28- position : absolute;
29- inset : 0 ;
30- box-sizing : border-box;
31- pointer-events : none;
32- content : '' ;
33- border : dotted # 333 2px ;
34- }
35-
36- & ::after {
37- position : absolute;
38- right : 0 ;
39- bottom : 0 ;
40- z-index : 10000 ;
41- padding : 5px ;
42- font-size : 13px ;
43- color : white;
44- letter-spacing : 0.1em ;
45- content : 'H' attr (data-debug-context-level);
46- background : # 333 ;
47- }
41+ padding : 5px ;
42+ font-size : 13px ;
43+ color : white;
44+ letter-spacing : 0.1em ;
45+ content : 'H' attr (data-debug-current-level);
46+ background : # 333 ;
4847 }
4948 }
49+ }
5050
5151
5252
9494 font-weight : bold;
9595 color : var (--tag-color-fg );
9696 pointer-events : none;
97- content : attr (data-debug-tag) ' - pLevel: ' attr (data-debug-parent-level) ' - Level: ' attr (data-debug-level);
97+ content : attr (data-debug-current- tag) ' - pLevel: ' attr (data-debug-parent-level) ' - Level: ' attr (data-debug-level);
9898 background : var (--tag-color-bg );
9999 }
100100 }
101101}
102102
103- .structure-debug [data-debug-tag = 'article' ] {
103+ .structure-debug [data-debug-current- tag = 'article' ] {
104104 --tag-color-fg : var (--color-structure-2-fg );
105105 --tag-color-bg : var (--color-structure-2-bg );
106106
107107}
108108
109- .structure-debug [data-debug-tag = 'article' ] {
109+ .structure-debug [data-debug-current- tag = 'article' ] {
110110 --tag-color-fg : var (--color-structure-2-fg );
111111 --tag-color-bg : var (--color-structure-2-bg );
112112
113113}
114114
115- .structure-debug [data-debug-tag = 'section' ] {
115+ .structure-debug [data-debug-current- tag = 'section' ] {
116116 --tag-color-fg : var (--color-structure-3-fg );
117117 --tag-color-bg : var (--color-structure-3-bg );
118118
119119}
120120
121- .structure-debug [data-debug-tag = 'nav' ] {
121+ .structure-debug [data-debug-current- tag = 'nav' ] {
122122 --tag-color-fg : var (--color-structure-4-fg );
123123 --tag-color-bg : var (--color-structure-4-bg );
124124
125125}
126126
127- .structure-debug [data-debug-tag = 'main' ] {
127+ .structure-debug [data-debug-current- tag = 'main' ] {
128128 --tag-color-fg : var (--color-structure-1-fg );
129129 --tag-color-bg : var (--color-structure-1-bg );
130130
131131}
132132
133- .structure-debug [data-debug-tag = 'div' ] {
133+ .structure-debug [data-debug-current- tag = 'div' ] {
134134 --tag-color-fg : var (--color-structure-5-fg );
135135 --tag-color-bg : var (--color-structure-5-bg );
136136
137- }
137+ }
0 commit comments