1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-23 15:22:41 +01:00
phorge-phorge/webroot/rsrc/css/aphront/dark-console.css
epriestley 114ed6c7fe DarkConsole: fix rendering, move request log, load over ajax
Summary:
This accomplishes three major goals:

  # Fixes phutil_render_tag -> phutil_tag callsites in DarkConsole.
  # Moves the Ajax request log to a new panel on the left. This panel (and the tabs panel) get scrollbars when they get large, instead of making the page constantly scroll down.
  # Loads the panel content over ajax, instead of dumping it into the page body / ajax response body. I've been planning to do this for about 3 years, which is why the plugins are architected the way they are. This should make debugging easier by making response bodies not be 50%+ darkconsole stuff.

Additionally, load the plugins dynamically (the old method predates library maps and PhutilSymbolLoader).

Test Plan:
{F30675}

  - Switched between requests and tabs, reloaded page, saw same tab.
  - Used "analyze queries", "profile page", triggered errors.
  - Verified page does not load anything by default if dark console is closed with Charles.
  - Generally banged on it a bit.

Reviewers: vrana, btrahan, chad

Reviewed By: vrana

CC: aran

Maniphest Tasks: T2432

Differential Revision: https://secure.phabricator.com/D4692
2013-01-28 18:45:32 -08:00

216 lines
3.5 KiB
CSS

/**
* @provides aphront-dark-console-css
*/
.dark-console {
background: #444444;
color: #eeeeee;
width: 100%;
font-family: "Verdana";
font-size: 11px;
position: relative;
}
.dark-console-requests,
.dark-console-tabs {
position: absolute;
overflow-y: auto;
top: 0;
left: 0;
bottom: 0;
width: 15%;
padding: 8px 0;
}
.dark-console-requests,
.dark-console-tabs,
.dark-console-panel,
.dark-console-load {
border-left: 1px solid #111111;
box-shadow: -2px 0px 2px rgba(0, 0, 0, 0.25);
}
.dark-console-requests {
background: #222222;
}
.dark-console-tabs {
background: #333333;
left: 15%;
}
.dark-console-panel,
.dark-console-load {
position: relative;
min-height: 320px;
}
.dark-console-panel {
margin-left: 30%;
background: #444444;
}
.dark-console-requests a.dark-console-request,
.dark-console-tabs a.dark-console-tab {
display: block;
padding: 6px;
overflow: hidden;
background: #444444;
margin: 3px 0;
color: #cccccc;
border-color: #666666;
border-width: 1px 0;
border-style: solid;
}
.dark-console-requests a.dark-selected,
.dark-console-tabs a.dark-selected {
background: #0066aa;
}
.dark-console-requests a.dark-console-request:hover,
.dark-console-tabs a.dark-console-tab:hover {
background: #1188cc;
}
.dark-console-tabs a.dark-console-tab {
text-align: right;
}
.dark-console-load {
background-image: url(/rsrc/image/darkload.gif);
background-position: center center;
background-repeat: no-repeat;
background-color: #000;
margin-left: 15%;
}
.dark-console .aphront-table-view {
font-size: 11px;
background: #888888;
color: #eeeeee;
width: 100%;
border-color: #333333;
margin: 8px 0;
}
.dark-console .aphront-table-view th {
text-shadow: none;
font-family: "Verdana";
font-size: 11px;
background: #333333;
color: #ffffff;
}
.dark-console .aphront-table-view td {
font-size: 11px;
}
.dark-console .aphront-table-view td.header {
background: #444444;
color: #ffffff;
min-width: 200px;
}
.dark-console .aphront-table-view tr.alt {
background: #666666;
}
.dark-console .aphront-table-view tr.highlight {
background: #001A66;
}
.dark-console .aphront-table-view tr.no-data td {
color: #dddddd;
}
.dark-console-panel-core {
padding: 12px;
}
.explain-sev-1 {
color: #33ff33;
}
.explain-sev-2 {
color: #99ff33;
}
.explain-sev-3 {
color: #ccff33;
}
.explain-sev-4 {
color: #ffff33;
}
.explain-sev-5 {
color: #ffcc33;
}
.explain-sev-6 {
color: #ffffff;
font-weight: bold;
background: #aa0000;
padding: 0 1em;
border: 2px solid #ffff00;
}
.explain-sev-7 {
color: #aaaaaa;
}
.dark-console-panel-header {
padding: 8px 4px 0;
}
.dark-console-panel-header h1 {
font-size: 15px;
}
.dark-console-panel-header .button {
margin-top: .5em;
float: right;
}
.dark-console-panel a.bright-link {
color: #00cfff;
font-weight: bold;
}
.dark-console iframe {
width: 98%;
margin: .5em 1%;
height: 450px;
border: 0;
}
.dark-console-no-content {
padding: 1.5em 2em;
font-style: italic;
}
.dark-console-request-log {
border-bottom: 2px solid #000000;
}
.dark-console-panel-RequestLog {
max-height: 10em;
overflow: auto;
}
.dark-console-panel-request-log-separator {
background-color: #e8e8e8;
border-bottom: 1px solid #b7b7b7;
border-top: 1px solid #b7b7b7;
height: 2px;
}
.dark-console-panel-ErrorLog {
max-height: 500px;
overflow: auto;
}
.dark-console-panel-error-details {
display: none;
}