Skip to content

Commit

Permalink
webconsole formatting tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Pacheco committed Apr 21, 2012
1 parent 3d80e92 commit 4dbb814
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 32 deletions.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -247,4 +247,7 @@ having to specify the services each time:

- Cached mode for reading a snapshot from a given file for high-latency links
and postmortem analysis.
- Web-based browser that links objects from multiple services
- Webconsole: turn on/off (and reorder?) individual table columns
Webconsole: refactor snapshot parsing to share code for web and server
- Remove prefixes on library function names
- Make default path /kang/snapshot
14 changes: 5 additions & 9 deletions examples/webconsole/index.htm
Expand Up @@ -24,16 +24,12 @@

<div class="kServiceSummary" id="kServiceSummary">
<h2>Services</h2>
<div class="kBlockLeftThird">
<span class="kAddServiceForm">
Add service:
<input type="input" id="kAddServiceService" size="30" />
<a href="javascript:kFormAddService()">add</a>
</span>
</div>
<div class="kBlockRightTwoThirds">
<span class="kAddServiceForm">
Add service:
<input type="input" id="kAddServiceService" size="30" />
<a href="javascript:kFormAddService()">add</a>
</span>
<table class="kServiceTable" id="kServiceTable"></table>
</div>
</div>

<div class="kHorizontalSeparator"></div>
Expand Down
51 changes: 29 additions & 22 deletions examples/webconsole/resources/css/console.css
Expand Up @@ -72,19 +72,23 @@ tr {
* content lives.
*/
.kConsole {
position: absolute;
left: 5%;
top: 4%;
min-height: 90%;
min-width: 85%;
background: #eeeeee;
border: 1px #004400 solid;

position: absolute;
margin-left: 10px;
margin-right: 10px;
min-width: 85%;

margin-top: 10px;
margin-bottom: 10px;
min-height: 90%;

padding-top: 20px;
padding-left: 50px;
padding-right: 50px;
padding-left: 20px;
padding-right: 20px;
padding-bottom: 20px;
margin-bottom: 100px;
margin-right: 5%;

box-shadow: 3px 3px 4px #000;
}

Expand All @@ -111,18 +115,19 @@ tr {
min-height: 100px;
}

table.kServiceTable {
width: *;
table.kServiceTable th {
text-align: left
}

table.kServiceTable th {
text-align: left
}

table.kServiceTable td, table.kServiceTable th {
padding-left: 5px;
padding-right: 5px;
}
table.kServiceTable td, table.kServiceTable th {
padding-left: 5px;
padding-right: 5px;
white-space: pre;
}

table.kServiceTable td {
font-size: x-small;
}

table.kDynamicTable {
padding-left: 10px;
Expand All @@ -134,11 +139,13 @@ table.kDynamicTable {
}

table.kDynamicTable td, table.kDynamicTable th {
padding: 10px;
padding-left: 5px;
padding-right: 5px;
white-space: pre;
}

table.kDynamicTable td, table.kDynamicTable th {
white-space: pre;
table.kDynamicTable td {
font-size: x-small;
}


Expand Down

0 comments on commit 4dbb814

Please sign in to comment.