Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better looking status bar #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified web/DawnHack_32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 62 additions & 19 deletions web/browserhack.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ body {
.jumbotron a:link,
.jumbotron a:visited,
.footer a:link,
.footer a:visited {
.footer a:visited {
color: inherit;
outline: none;
}
Expand All @@ -35,9 +35,9 @@ body {
}

#browserhack-main {
border:1px solid;
border:1px solid;
padding:0;
width:800px;
/*width:800px;*/
height:600px;
line-height:1;
/* from bootstrap */
Expand Down Expand Up @@ -76,10 +76,10 @@ body {

#browserhack-map {
position: absolute;
top: 7em;
top: 10em;
left: 0;
right: 200px;
bottom: 4em;
right: 250px;
bottom: 5em;
user-select: none;
overflow: hidden;
}
Expand All @@ -92,7 +92,7 @@ body {
transform-origin: 0 0;
}

#browserhack-main.zoomed-out #browserhack-map-content {
#browserhack-main.zoomed-out #browserhack-map-content {
transform: scale(0.5);
}

Expand All @@ -106,18 +106,18 @@ body {
position: absolute;
top: 0px;
left: 0px;
right: 200px;
height: 7em;
right: 250px;
height: 10em;
background-color: #333;
padding: 0.5em;
overflow: auto;
}

#browserhack-status {
position: absolute;
height: 4em;
height: 5em;
left: 0;
right: 200px;
right: 250px;
bottom: 0;
background-color: #333;
padding: 0.5em;
Expand Down Expand Up @@ -148,12 +148,55 @@ body {
color: #93a1a1;
}

#browserhack-status .name {
/* solarized */
color: #fffff;
font-size: 24pt;
}

#browserhack-status .status-table {
display: inline-table;
vertical-align: middle;
}

#browserhack-status .status-misc {
margin-left: 20px;
font-size: 16pt;
vertical-align: middle;
}

.progress {
margin-bottom: 5px;
position: relative;
color: #93a1a1;
}

.progress span {
position: absolute;
display: block;
width: 100%;
color: black;
}

.statName {
font-size: 16pt;
color: #93a1a1;
display: inline-block;
}

.stat {
margin-left: 3px;
display: inline-block;
vertical-align: text-top;
margin-right: 20px;
}

#browserhack-sidebar {
position: absolute;
top: 0;
bottom:0;
right:0;
width: 200px;
width: 250px;
padding: 1em;
overflow: visible;
}
Expand Down Expand Up @@ -255,7 +298,7 @@ body {
height: 158px;
padding-top: 20px;
text-align: center;
font-size: 13px;
font-size: 12pt;
white-space: pre;
color: rgb(75, 75, 57);
text-shadow: 1px 1px 0 rgba(140,140,140,0.6) , -1px -1px 1px rgba(0,0,0,0.67);
Expand Down Expand Up @@ -323,7 +366,7 @@ body {
top:1px;
right:1px;
color:#ff6060;
font-size: 10px;
font-size: 12pt;
}

.map-cursor {
Expand All @@ -345,13 +388,13 @@ body {
width:auto;
color: #fff;
background-color: rgba(0,0,0,0.5);
font-size: 13px;
font-size: 12pt;
padding: 1px;
}

.inventory-item-description {
display:none;
font-size: 13px;
font-size: 12pt;
position:absolute;
width: 150px;
background-color: rgba(0,0,0,0.7);
Expand All @@ -369,7 +412,7 @@ body {
right:0;
width:auto;
color: #fff;
font-size: 13px;
font-size: 12pt;
text-shadow: 1px 1px 1px #000;
}

Expand All @@ -388,7 +431,7 @@ body {
display: none;
}

.jumbotron {
.jumbotron {
padding-top: 32px;
padding-bottom: 16px;
margin-bottom: 0px;
Expand Down Expand Up @@ -487,7 +530,7 @@ a.list-group-item.group-header:hover {
outline: none;
}

.close,
.close,
.close:focus,
.close:hover {
/* solarized */
Expand Down
13 changes: 7 additions & 6 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<!doctype html>
<!-- vim: set sw=2 ts=2 et : -->
<!-- vim: set sw=2 ts=2 et : -->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>BrowserHack</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<link rel="stylesheet" href="browserhack.css">
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
Expand Down Expand Up @@ -76,7 +77,7 @@ <h5>This may take a while for the first time.</h5>
<div id="browserhack-loading-progress-bar" class="progress-bar progress-bar-striped active" class="progress-bar" style="width: 0%;"></div>
</div>
</div>
</div>
</div>
<a target="_blank" href="http://www.kongregate.com/games/coolwanglu/browserhack"><img src="http://cdn1.kongcdn.com/images/sharedassets/badge_dev_220x25.png" width="220" height="25" alt="Kongregate Games logo" style="position:absolute;left:100.2%;bottom:100.2%;transform:rotate(90deg);transform-origin:0 100%;"></a>
</div>
<br/>
Expand Down Expand Up @@ -125,13 +126,13 @@ <h5>This may take a while for the first time.</h5>
console.log(e);
}
},
print: function(text) {
print: function(text) {
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
console.log(text);
console.log(text);
},
printErr: function(text) {
printErr: function(text) {
if (arguments.length > 1) text = Array.prototype.slice.call(arguments).join(' ');
console.error(text);
console.error(text);
}
};
})();
Expand Down
Loading