Skip to content

Commit d76bfd3

Browse files
committed
CSS: added @layer for cascade priority control
1 parent 13ad741 commit d76bfd3

8 files changed

Lines changed: 34 additions & 0 deletions

File tree

src/Tracy/Bar/assets/bar.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* This file is part of the Tracy (https://tracy.nette.org)
33
*/
44

5+
@layer components {
6+
57
/* shadow DOM host */
68
:host {
79
--tracy-space: 10px;
@@ -313,3 +315,5 @@ h1 {
313315
display: none;
314316
}
315317
}
318+
319+
}

src/Tracy/BlueScreen/assets/bluescreen.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* This file is part of the Tracy (https://tracy.nette.org)
33
*/
44

5+
@layer components {
6+
57
/* shadow DOM host */
68
:host {
79
display: contents;
@@ -425,3 +427,5 @@ span[data-tracy-href] {
425427
padding-top: var(--tracy-space);
426428
overflow: auto;
427429
}
430+
431+
}

src/Tracy/Dumper/assets/dumper-dark.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* This file is part of the Tracy (https://tracy.nette.org)
33
*/
44

5+
@layer base {
6+
57
.tracy-dump.tracy-dark {
68
text-align: left;
79
color: #f8f8f2;
@@ -143,3 +145,5 @@ span[data-tracy-href] {
143145
background: #c0c0c033;
144146
}
145147
}
148+
149+
}

src/Tracy/Dumper/assets/dumper-light.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* This file is part of the Tracy (https://tracy.nette.org)
33
*/
44

5+
@layer base {
6+
57
.tracy-dump.tracy-light {
68
text-align: left;
79
color: #444;
@@ -143,3 +145,5 @@ span[data-tracy-href] {
143145
background: #c0c0c033;
144146
}
145147
}
148+
149+
}

src/Tracy/assets/reset.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
* This file is part of the Tracy (https://tracy.nette.org)
33
*/
44

5+
@layer base, components;
6+
7+
@layer base {
8+
59
:root,
610
:host {
711
--tracy-space: 16px;
@@ -33,3 +37,5 @@ input {
3337
textarea {
3438
padding: 2px;
3539
}
40+
41+
}

src/Tracy/assets/table-sort.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* This file is part of the Tracy (https://tracy.nette.org)
33
*/
44

5+
@layer base {
6+
57
.tracy-sortable > :first-child > tr:first-child > * {
68
position: relative;
79
}
@@ -13,3 +15,5 @@
1315
opacity: .4;
1416
font-weight: normal;
1517
}
18+
19+
}

src/Tracy/assets/tabs.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
* This file is part of the Tracy (https://tracy.nette.org)
33
*/
44

5+
@layer base {
6+
57
.tracy-tab-label {
68
user-select: none;
79
}
810

911
.tracy-tab-panel:not(.tracy-active) {
1012
display: none;
1113
}
14+
15+
}

src/Tracy/assets/toggle.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
* This file is part of the Tracy (https://tracy.nette.org)
33
*/
44

5+
@layer base {
6+
57
.tracy-collapsed {
68
display: none;
79
}
@@ -33,3 +35,5 @@
3335
.tracy-toggle.tracy-collapsed:after {
3436
transform: rotate(-90deg) scale(1, 1.5) translate(.1ex, 0);
3537
}
38+
39+
}

0 commit comments

Comments
 (0)