From ed7cccb2d206c989dc5f11438fbe8a5498b9323c Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Mon, 9 Jan 2012 01:40:40 +0800 Subject: [PATCH] Move link component to lower-left, shift chat slightly right --- web/css/chat_style.css | 60 ---------------------------------------- web/css/dynmap_style.css | 5 ++-- web/js/link.js | 2 +- 3 files changed, 3 insertions(+), 64 deletions(-) delete mode 100644 web/css/chat_style.css diff --git a/web/css/chat_style.css b/web/css/chat_style.css deleted file mode 100644 index 27f71a6f..00000000 --- a/web/css/chat_style.css +++ /dev/null @@ -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; -} \ No newline at end of file diff --git a/web/css/dynmap_style.css b/web/css/dynmap_style.css index 26345bd4..bf8b73c2 100644 --- a/web/css/dynmap_style.css +++ b/web/css/dynmap_style.css @@ -728,7 +728,7 @@ .chat { position: absolute; bottom: 0px; - left: 14px; + left: 32px; z-index:50; border-color: rgba(0,0,0,0.5); @@ -904,7 +904,7 @@ -moz-border-radius: 7px; -webkit-border-radius: 7px; border-radius: 7px; - padding: 2px 10px 2px 2px; + padding: 2px; background: rgba(0, 0, 0, 0.25); } .dynmap .dynmap-link a { @@ -931,5 +931,4 @@ } .dynmap .dynmap-link-button { background-image: url(images/link.png); - margin-bottom: 5px; } diff --git a/web/js/link.js b/web/js/link.js index 12c72aed..729741b5 100644 --- a/web/js/link.js +++ b/web/js/link.js @@ -1,7 +1,7 @@ componentconstructors['link'] = function(dynmap, configuration) { var dynmapLink = L.Class.extend({ - options: { position: L.Control.Position.BOTTOM_RIGHT }, + options: { position: L.Control.Position.BOTTOM_LEFT }, onAdd: function(map) { this._map = map;