Move link component to lower-left, shift chat slightly right

This commit is contained in:
Mike Primm 2012-01-09 01:40:40 +08:00 committed by mikeprimm
parent 3db079f90f
commit ed7cccb2d2
3 changed files with 3 additions and 64 deletions

View File

@ -1,60 +0,0 @@
.chat {
position:absolute;
bottom:0px;
left:14px;
border-color: rgba(0,0,0,0.5);
background: rgba(0,0,0,0.6);
border-style: solid;
border-width: 1px 1px 0px 1px;
-moz-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
-webkit-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
-o-box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
-moz-border-radius: 3px 3px 0px 0px;
-webkit-border-radius: 3px 3px 0px 0px;
-o-border-radius: 3px 3px 0px 0px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
border-radius: 3px 3px 0px 0px;
}
.chatinput {
margin:4px;
width:608px;
height:12px;
padding:1px;
padding-left:15px;
color: white;
border: 0px;
background: rgba(0, 0, 0, 0.6);
background: url(../images/chat_cursor.png) rgba(0,0,0,0.6); background-repeat: no-repeat; background-position:left;
outline: none;
}
.messagelist {
margin:4px 4px 0px 4px;
width:622px;
max-height:198px;
padding:1px;
color: white;
overflow:hidden;
}
.messagerow {
position:relative;
left:0px;
bottom:0px;
max-height:200px;
color: white;
font-weight:bold;
}
.messageicon {
position:relative;
left:0px;
top:1px;
}
.messagetext {
position:relative;
left:0px;
top:-3px;
}

View File

@ -728,7 +728,7 @@
.chat { .chat {
position: absolute; position: absolute;
bottom: 0px; bottom: 0px;
left: 14px; left: 32px;
z-index:50; z-index:50;
border-color: rgba(0,0,0,0.5); border-color: rgba(0,0,0,0.5);
@ -904,7 +904,7 @@
-moz-border-radius: 7px; -moz-border-radius: 7px;
-webkit-border-radius: 7px; -webkit-border-radius: 7px;
border-radius: 7px; border-radius: 7px;
padding: 2px 10px 2px 2px; padding: 2px;
background: rgba(0, 0, 0, 0.25); background: rgba(0, 0, 0, 0.25);
} }
.dynmap .dynmap-link a { .dynmap .dynmap-link a {
@ -931,5 +931,4 @@
} }
.dynmap .dynmap-link-button { .dynmap .dynmap-link-button {
background-image: url(images/link.png); background-image: url(images/link.png);
margin-bottom: 5px;
} }

View File

@ -1,7 +1,7 @@
componentconstructors['link'] = function(dynmap, configuration) { componentconstructors['link'] = function(dynmap, configuration) {
var dynmapLink = L.Class.extend({ var dynmapLink = L.Class.extend({
options: { position: L.Control.Position.BOTTOM_RIGHT }, options: { position: L.Control.Position.BOTTOM_LEFT },
onAdd: function(map) { onAdd: function(map) {
this._map = map; this._map = map;