File tree Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Expand file tree Collapse file tree 2 files changed +29
-7
lines changed Original file line number Diff line number Diff line change 7
7
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
8
8
dolore magna aliquyam…
9
9
</p >
10
+ <pre class =" structure-debug" data-debug-current-tag =" header" ></pre >
10
11
</header >
11
12
<DefaultContentContainer >
12
13
<DefaultContentContainer >
65
66
<ArticleContentContainer >
66
67
<header >
67
68
<DebugHeadline >Article Title</DebugHeadline >
69
+ <pre class =" structure-debug" data-debug-current-tag =" header" ></pre >
68
70
</header >
69
71
70
72
<ArticleContentContainer >
@@ -154,11 +156,6 @@ h4 {
154
156
font-size : calc (50px * var (--factor ));
155
157
}
156
158
157
- [data-debug ] {
158
- padding : 20px 10px ;
159
- margin : 20px 10px ;
160
- }
161
-
162
159
.columns-3 {
163
160
display : flex ;
164
161
gap : 10px ;
Original file line number Diff line number Diff line change 51
51
52
52
53
53
54
- [data-debug = "container" ] {
54
+
55
+ [data-debug ], header {
56
+ padding : 20px 10px ;
57
+ margin : 20px 10px ;
58
+ }
59
+
60
+ [data-debug = "container" ], header {
55
61
--color-structure-1-bg : # ff8360ff ;
56
62
--color-structure-1-fb : # 333 ;
57
63
--color-structure-2-bg : # e8e288ff ;
62
68
--color-structure-4-fb : # 333 ;
63
69
--color-structure-5-bg : # dbbbf5 ;
64
70
--color-structure-5-fb : # 333 ;
71
+ --color-structure-6-bg : # ccc ;
72
+ --color-structure-6-fb : # 333 ;
65
73
66
74
position : relative;
67
75
94
102
font-weight : bold;
95
103
color : var (--tag-color-fg );
96
104
pointer-events : none;
97
- content : attr (data-debug-current-tag) ' - pLevel: ' attr (data-debug-parent-level) ' - Level: ' attr (data-debug-current-level);
98
105
background : var (--tag-color-bg );
99
106
}
107
+
108
+ & [data-debug-current-tag ] {
109
+ & ::after {
110
+ content : attr (data-debug-current-tag);
111
+ }
112
+ }
113
+
114
+ & [data-debug-current-tag ][data-debug-parent-level ][data-debug-current-level ] {
115
+ & ::after {
116
+ content : attr (data-debug-current-tag) ' - pLevel: ' attr (data-debug-parent-level) ' - Level: ' attr (data-debug-current-level);
117
+ }
118
+ }
100
119
}
101
120
}
102
121
122
+ .structure-debug [data-debug-current-tag = 'header' ] {
123
+ --tag-color-fg : var (--color-structure-6-fg );
124
+ --tag-color-bg : var (--color-structure-6-bg );
125
+
126
+ }
127
+
103
128
.structure-debug [data-debug-current-tag = 'article' ] {
104
129
--tag-color-fg : var (--color-structure-2-fg );
105
130
--tag-color-bg : var (--color-structure-2-bg );
You can’t perform that action at this time.
0 commit comments