Skip to content

Commit 2cde378

Browse files
committed
chore(playground): update styles
1 parent b3ea1bd commit 2cde378

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

playground/src/App.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
88
dolore magna aliquyam…
99
</p>
10+
<pre class="structure-debug" data-debug-current-tag="header"></pre>
1011
</header>
1112
<DefaultContentContainer>
1213
<DefaultContentContainer>
@@ -65,6 +66,7 @@
6566
<ArticleContentContainer>
6667
<header>
6768
<DebugHeadline>Article Title</DebugHeadline>
69+
<pre class="structure-debug" data-debug-current-tag="header"></pre>
6870
</header>
6971

7072
<ArticleContentContainer>
@@ -154,11 +156,6 @@ h4 {
154156
font-size: calc(50px * var(--factor));
155157
}
156158
157-
[data-debug] {
158-
padding: 20px 10px;
159-
margin: 20px 10px;
160-
}
161-
162159
.columns-3 {
163160
display: flex;
164161
gap: 10px;

playground/src/style.css

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@
5151

5252

5353

54-
[data-debug="container"] {
54+
55+
[data-debug], header {
56+
padding: 20px 10px;
57+
margin: 20px 10px;
58+
}
59+
60+
[data-debug="container"], header {
5561
--color-structure-1-bg: #ff8360ff;
5662
--color-structure-1-fb: #333;
5763
--color-structure-2-bg: #e8e288ff;
@@ -62,6 +68,8 @@
6268
--color-structure-4-fb: #333;
6369
--color-structure-5-bg: #dbbbf5;
6470
--color-structure-5-fb: #333;
71+
--color-structure-6-bg: #ccc;
72+
--color-structure-6-fb: #333;
6573

6674
position: relative;
6775

@@ -94,12 +102,29 @@
94102
font-weight: bold;
95103
color: var(--tag-color-fg);
96104
pointer-events: none;
97-
content: attr(data-debug-current-tag) ' - pLevel: ' attr(data-debug-parent-level) ' - Level: ' attr(data-debug-current-level);
98105
background: var(--tag-color-bg);
99106
}
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+
}
100119
}
101120
}
102121

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+
103128
.structure-debug[data-debug-current-tag='article'] {
104129
--tag-color-fg: var(--color-structure-2-fg);
105130
--tag-color-bg: var(--color-structure-2-bg);

0 commit comments

Comments
 (0)