Skip to content

Commit

Permalink
bluescreen: removed reset from CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 13, 2019
1 parent 155e310 commit c25148e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 122 deletions.
1 change: 1 addition & 0 deletions src/Tracy/Bar/Bar.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ private function renderAssets(): void
$css = array_map('file_get_contents', array_merge([
__DIR__ . '/assets/bar.css',
__DIR__ . '/../Toggle/toggle.css',
__DIR__ . '/../TableSort/table-sort.css',
__DIR__ . '/../Dumper/assets/dumper.css',
__DIR__ . '/../BlueScreen/assets/bluescreen.css',
], Debugger::$customCssFiles));
Expand Down
3 changes: 3 additions & 0 deletions src/Tracy/BlueScreen/BlueScreen.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ private function renderTemplate(\Throwable $exception, string $template, $toScre

$css = array_map('file_get_contents', array_merge([
__DIR__ . '/assets/bluescreen.css',
__DIR__ . '/../Toggle/toggle.css',
__DIR__ . '/../TableSort/table-sort.css',
__DIR__ . '/../Dumper/assets/dumper.css',
], Debugger::$customCssFiles));
$css = preg_replace('#\s+#u', ' ', implode($css));

Expand Down
123 changes: 1 addition & 122 deletions src/Tracy/BlueScreen/assets/bluescreen.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,6 @@
text-align: left;
}

#tracy-bs * {
font: inherit;
color: inherit;
background: transparent;
border: none;
margin: 0;
padding: 0;
text-align: inherit;
text-indent: 0;
}

#tracy-bs *:before,
#tracy-bs *:after {
all: unset;
}

#tracy-bs b {
font-weight: bold;
}

#tracy-bs i {
font-style: italic;
}

#tracy-bs a {
text-decoration: none;
color: #328ADC;
Expand Down Expand Up @@ -86,13 +62,6 @@
font-style: normal;
}

#tracy-bs-ie-warning {
background: black;
margin: 1em;
padding: .5em;
text-align: center;
}

#tracy-bs h1 {
font-size: 15pt;
font-weight: normal;
Expand All @@ -106,6 +75,7 @@

#tracy-bs h2 {
font-size: 14pt;
font-weight: normal;
margin: .6em 0;
}

Expand Down Expand Up @@ -168,19 +138,6 @@
background-color: #F7F0CB;
}

/* TableSort */
#tracy-bs .tracy-sortable tr:first-child > * {
position: relative;
}

#tracy-bs .tracy-sortable tr:first-child > *:hover:before {
position: absolute;
right: .3em;
content: "\21C5";
opacity: .4;
font-weight: normal;
}

#tracy-bs ol {
margin: 1em 0;
padding-left: 2.5em;
Expand Down Expand Up @@ -266,88 +223,10 @@
border-bottom: 1px dotted rgba(0, 0, 0, .3);
}


/* toggle */
html.tracy-js #tracy-bs .tracy-collapsed {
display: none;
}

html.tracy-js #tracy-bs .tracy-toggle.tracy-collapsed {
display: inline;
}

#tracy-bs .tracy-toggle {
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-ms-user-select: none;
user-select: none;
}

#tracy-bs .tracy-toggle:after {
content: "\A0\25BC";
opacity: .4;
}

#tracy-bs .tracy-toggle.tracy-collapsed:after {
content: "\A0\25BA";
}


/* dump */
#tracy-bs .tracy-dump-array,
#tracy-bs .tracy-dump-object {
color: #C22;
}

#tracy-bs .tracy-dump-string {
color: #35D;
}

#tracy-bs .tracy-dump-number {
color: #090;
}

#tracy-bs .tracy-dump-whitespace {
color: #0003;
}

#tracy-bs .tracy-dump-null,
#tracy-bs .tracy-dump-bool {
color: #850;
}

#tracy-bs .tracy-dump-visibility,
#tracy-bs .tracy-dump-hash {
font-size: 85%;
color: #998;
}

#tracy-bs .tracy-dump-indent {
display: none;
}

#tracy-bs pre.tracy-dump div {
padding-left: 3ex;
}

#tracy-bs pre.tracy-dump div div {
border-left: 1px solid rgba(0, 0, 0, .1);
margin-left: .5ex;
}

#tracy-bs .tracy-dump-flash {
animation: tracy-dump-flash .2s ease;
}

@keyframes tracy-dump-flash {
0% {
background: #c0c0c033;
}
}


#tracy-bs .caused {
float: right;
padding: .3em .6em;
Expand Down
15 changes: 15 additions & 0 deletions src/Tracy/TableSort/table-sort.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/**
* This file is part of the Tracy (https://tracy.nette.org)
*/

.tracy-sortable tr:first-child > * {
position: relative;
}

.tracy-sortable tr:first-child > *:hover:before {
position: absolute;
right: .3em;
content: "\21C5";
opacity: .4;
font-weight: normal;
}

0 comments on commit c25148e

Please sign in to comment.