dynmap/web/css/dynmap_style.css

810 lines
13 KiB
CSS
Raw Normal View History

2011-07-18 03:43:13 +02:00
/* TILE DEBUGGING */
/*.leaflet-tile {
margin: -1;
border: 1px solid red;
2011-07-18 03:43:13 +02:00
}*/
2011-07-27 18:51:26 +02:00
/*******************
* Attribution placement
*/
.leaflet-control-attribution {
margin-right: 20px !important;
}
/*******************
* Page setup
*/
2011-02-19 20:51:21 +01:00
.dynmap .map .tile img, img {
image-rendering: -moz-crisp-edges;
-ms-interpolation-mode: nearest-neighbor;
}
/*******************
* fieldset and legend styles
*/
.dynmap fieldset {
2011-02-19 20:51:21 +01:00
border: none;
border-top: 1px solid rgba(196,196,196,0.4);
}
.dynmap legend {
2011-02-19 20:51:21 +01:00
padding: 8px 4px;
font-weight: bold;
}
.leaflet-control-layers {
background-color: #bbb;
}
.leaflet-control-layers:hover {
2011-09-13 23:19:34 +02:00
background-color: #bbb;
}
2011-08-02 06:21:36 +02:00
.leaflet-control-zoom-in {
background-color: #eee;
}
.leaflet-control-zoom-out {
background-color: #eee;
}
.leaflet-control-zoom-in:hover {
background-color: #fff;
}
.leaflet-control-zoom-out:hover {
background-color: #fff;
}
/*******************
* Map Setup
*/
.dynmap > .map {
2011-02-19 20:51:21 +01:00
width: 100%;
height: 100%;
background: #000;
z-index: 0;
}
/* Map Controls */
.gmnoprint{
2011-02-19 20:51:21 +01:00
margin-top:-75px;
margin-left:-20px;
}
/*******************
2011-02-19 20:51:21 +01:00
* Alerts are pretty.
*/
.alertbox {
2011-02-19 20:51:21 +01:00
position: fixed;
width: 50%;
z-index: 999;
2011-02-19 20:51:21 +01:00
top: 0;
left: 0;
right: 0;
2011-02-19 20:51:21 +01:00
text-align: center;
font-size: 16px;
font-weight: bold;
2011-02-19 20:51:21 +01:00
color: #fff;
background: #c00;
2011-02-19 20:51:21 +01:00
border-color: #a00;
margin: auto;
padding: 8px;
}
/*******************
* shared rules
*/
.dynmap .panel ul, .dynmap .panel li {
2011-02-19 20:51:21 +01:00
list-style: none;
2011-02-19 20:51:21 +01:00
padding: 0;
margin: 0;
}
.maplist li a,
.playerlist li a {
2011-02-19 20:51:21 +01:00
outline: none;
text-decoration: none;
}
.alertbox,
.largeclock {
border-style: solid;
border-width: 0px 1px 1px 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: 0 0 3px 3px;
-webkit-border-radius: 0 0 3px 3px;
-o-border-radius: 0 0 3px 3px;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
border-radius: 0 0 3px 3px;
}
/*******************
* sidebar panels
*/
.dynmap .sidebar {
2011-02-19 20:51:21 +01:00
display: block;
position: absolute;
z-index: 120;
2011-02-19 20:51:21 +01:00
top: 0px;
right: 0px;
2011-02-19 20:51:21 +01:00
height: 100%;
2011-02-19 20:51:21 +01:00
background: rgb(0,0,0); /* FU IE */
background: rgba(0,0,0,0.6);
color: #fff;
2011-02-19 20:51:21 +01:00
border-left: 1px solid rgba(0,0,0,0.5);
2011-02-19 20:51:21 +01:00
-moz-transition: all 0.6s ease-in-out;
-webkit-transition: all 0.6s ease-in-out;
-o-transition: all 0.6s ease-in-out;
transition: all 0.6s ease-in-out;
}
.dynmap .hitbar {
2011-02-19 20:51:21 +01:00
display: block;
position: absolute;
2011-02-19 20:51:21 +01:00
z-index: 110;
2011-02-19 20:51:21 +01:00
top: 0px;
2011-02-19 20:51:21 +01:00
height: 100%;
width: 16px;
2011-02-19 20:51:21 +01:00
text-align: center;
2011-03-17 15:30:30 +01:00
background: url(../images/sidebar_hint.png) rgb(0,0,0);
background: url(../images/sidebar_hint.png) rgba(0,0,0,0.6);
2011-02-19 20:51:21 +01:00
background-repeat: no-repeat;
background-position:center;
2011-02-19 20:51:21 +01:00
border: 1px solid rgba(0,0,0,0.5);
2011-02-19 20:51:21 +01:00
-moz-transition: all 0.6s ease-in-out;
-webkit-transition: all 0.6s ease-in-out;
-o-transition: all 0.6s ease-in-out;
2011-02-18 00:07:51 +01:00
2011-02-19 20:51:21 +01:00
transition: all 0.6s ease-in-out;
2011-02-18 00:07:51 +01:00
}
/* magic and metrics */
.dynmap .sidebar:hover,
.dynmap .sidebar.pinned {
2011-02-19 20:51:21 +01:00
margin-right: 0px;
}
.dynmap .sidebar < .hitbar:hover {
2011-02-19 20:51:21 +01:00
margin-right: 0px;
}
.dynmap .sidebar:hover .hitbar,
.dynmap .sidebar.pinned .hitbar {
2011-02-19 20:51:21 +01:00
right: -120px;
}
/* pinning */
.dynmap .sidebar .panel > .pin {
position: absolute;
right: 8px;
top: 7px;
width: 16px;
height: 16px;
2011-03-17 15:30:30 +01:00
background-image: url(../images/window_close.png);
2011-02-19 20:51:21 +01:00
}
.dynmap .sidebar .panel > .pin:hover {
2011-03-17 15:30:30 +01:00
background-image: url(../images/window_pinned_hover.png);
2011-02-19 20:51:21 +01:00
}
.dynmap .sidebar.pinned .panel > .pin:hover {
2011-03-17 15:30:30 +01:00
background-image: url(../images/window_close_hover.png);
2011-02-19 20:51:21 +01:00
}
.dynmap .sidebar.pinned .panel > .pin {
2011-03-17 15:30:30 +01:00
background-image: url(../images/window_pinned.png);
2011-02-19 20:51:21 +01:00
}
/*******************
* Sidebar clock style
*/
/*
.dynmap .panel .clock {
2011-02-19 20:51:21 +01:00
display: inline-block;
height: 16px;
2011-08-02 06:21:36 +02:00
z-index:50;
2011-02-19 20:51:21 +01:00
font-weight: bold;
background-repeat: no-repeat;
padding-left: 20px;
margin-left: 8px;
}
*/
2011-03-31 15:52:35 +02:00
.largeclock.digitalclock {
text-align: center;
font-size: 50px;
font-weight: bold;
}
.digitalclock {
text-align: center;
2011-02-19 20:51:21 +01:00
}
2011-03-31 15:52:35 +02:00
.digitalclock.night {
2011-03-17 15:30:30 +01:00
/* background-image: url(../images/clock_night.png); */
2011-02-19 20:51:21 +01:00
color: #dff;
}
2011-03-31 15:52:35 +02:00
.digitalclock.day {
2011-03-17 15:30:30 +01:00
/* background-image: url(../images/clock_day.png); */
2011-02-19 20:51:21 +01:00
color: #fd3;
}
2011-02-19 20:51:21 +01:00
2011-03-31 15:52:35 +02:00
.digitalclock.night, .digitalclock.day {
-moz-transition: color 8s 8s linear;
-webkit-transition: color 8s 8s linear;
-o-transition: color 8s 8s linear;
transition: color 8s 8s linear;
2011-02-19 20:51:21 +01:00
}
/*******************
* Large clock style
*/
.largeclock {
position: absolute;
top: 0;
left: 0;
right: 0;
border-color: rgba(0,0,0,0.5);
width: 150px;
height: 60px;
background: rgba(0,0,0,0.6);
2011-08-02 06:21:36 +02:00
z-index:50;
2011-02-19 20:51:21 +01:00
margin: auto;
}
.timeofday {
background-repeat: no-repeat;
2011-02-19 20:51:21 +01:00
}
.timeofday.sun {
2011-03-17 15:30:30 +01:00
background-image: url(../images/sun.png);
2011-02-19 20:51:21 +01:00
}
.timeofday.moon {
2011-03-17 15:30:30 +01:00
background-image: url(../images/moon.png);
2011-02-19 20:51:21 +01:00
}
2011-03-31 15:52:35 +02:00
.timeofday.digitalclock {
position: relative;
bottom: 16px;
}
2011-05-09 07:07:46 +02:00
/*******************
* Clock weather style
*/
.weather {
position: absolute;
top: 17px;
right: 5px;
width: 25px;
height: 23px;
display: block;
background-repeat: no-repeat;
}
.weather.sunny {
background-image: url(../images/weather_sunny.png);
}
.weather.stormy {
background-image: url(../images/weather_stormy.png);
}
.weather .thunder {
position: absolute;
top: 0;
left: 0;
right: 0;
width: 25px;
height: 25px;
display: none;
background-repeat: no-repeat;
background-image: url(../images/weather_thunder.png);
}
/*******************
* map list-specific styling
*/
.dynmap .panel .world {
2011-02-19 20:51:21 +01:00
display: block;
clear: both;
2011-02-19 20:51:21 +01:00
width: 100%;
line-height: 18px;
margin: 0 0 30px 0;
2011-02-19 20:51:21 +01:00
border-bottom: 1px solid rgba(128,128,128,0.3);
}
.dynmap .maplist .map {
2011-02-19 20:51:21 +01:00
display: block;
float: left;
height: 18px;
width: 18px;
2011-02-19 20:51:21 +01:00
padding: 2px;
margin: 5px 2px;
2011-02-19 20:51:21 +01:00
border-radius: 3px;
-moz-border-radius: 3px;
background: rgba(32,32,32,0.6);
border: 1px solid rgba(64,64,64,0.6);
}
.dynmap .maplist .map:hover {
2011-02-19 20:51:21 +01:00
background: rgba(64,64,64,0.6);
border: 1px solid rgba(128,128,128,0.6);
}
.dynmap .maplist .map.selected {
2011-02-19 20:51:21 +01:00
background: rgba(128,128,128,0.5);
border: 1px solid rgba(255,255,255,0.5);
}
.dynmap .maplist .map > a {
2011-02-19 20:51:21 +01:00
display: block;
2011-02-19 20:51:21 +01:00
text-indent: -99999px;
outline: none;
}
.dynmap .maplist .map > a {
2011-02-19 20:51:21 +01:00
background-repeat: no-repeat;
background-position: center;
}
/*******************
* player list-specific styles
*/
.dynmap .playerlist .player {
2011-02-19 20:51:21 +01:00
display: inline-block;
float: left;
width: 100%;
2011-02-19 20:51:21 +01:00
padding: 4px 0;
border: 3px solid transparent;
}
2011-02-22 14:49:03 +01:00
.dynmap .playerlist .player.otherworld {
opacity: 0.5;
}
.dynmap .playerlist .player:hover {
2011-02-19 20:51:21 +01:00
background: rgba(64,64,64,0.6);
}
.dynmap .playerlist .player a {
2011-02-19 20:51:21 +01:00
color: #fff;
}
2011-02-19 20:51:21 +01:00
.dynmap .playerlist .playerIcon img {
width: 16px;
height: 16px;
}
.dynmap .playerlist .playerIcon > * {
2011-02-19 20:51:21 +01:00
vertical-align: middle;
border: none;
}
.dynmap .playerlist .playerIcon {
2011-02-19 20:51:21 +01:00
width: 16px;
height: 16px;
2011-02-19 20:51:21 +01:00
display: block;
float: left;
margin: 0px 4px 0px 2px;
}
.dynmap .playerlist .player.following {
2011-02-19 20:51:21 +01:00
background: rgba(128,128,128,0.5);
border: 1px solid rgba(255,255,255,0.5);
border-radius: 3px;
-moz-border-radius: 3px;
padding: 6px 2px;
}
.dynmap .playerlist .player:hover .playericon {
2011-03-17 15:30:30 +01:00
background: url(../images/player_follow_off.png) no-repeat;
}
.dynmap .playerlist .player.following .playericon {
2011-03-17 15:30:30 +01:00
background: url(../images/player_follow_on.gif) no-repeat;
}
.dynmap .playerlist .player.following .playericon > *,
.dynmap .playerlist .player:hover .playericon > * {
2011-02-19 20:51:21 +01:00
visibility: hidden;
}
/*******************
* Playerlist Scrolling
*/
.panel .scrollup {
border: 1px solid rgba(64,64,64,0.6);
2011-03-17 15:30:30 +01:00
background: url(../images/scrollup.png) rgba(32,32,32,0.6);
margin-bottom: 4px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
-o-border-radius: 2px;
border-radius: 2px;
}
.panel .scrolldown {
border: 1px solid rgba(64,64,64,0.6);
2011-03-17 15:30:30 +01:00
background: url(../images/scrolldown.png) rgba(32,32,32,0.6);
margin-top: 4px;
-moz-border-radius: 2px;
-webkit-border-radius: 2px;
-o-border-radius: 2px;
border-radius: 2px;
}
.panel .scrollup:hover, .panel .scrolldown:hover {
border: 1px solid rgba(128,128,128,0.6);
2011-03-17 15:30:30 +01:00
background: url(../images/scrollup.png) rgba(64,64,64,0.6);
}
.panel .scrollup:active, .panel .scrolldown:active {
border: 1px solid rgba(255,255,255,0.5);
2011-03-17 15:30:30 +01:00
background: url(../images/scrollup.png) rgba(128,128,128,0.5);
}
.panel .scrolldown:hover {
border: 1px solid rgba(128,128,128,0.6);
2011-03-17 15:30:30 +01:00
background: url(../images/scrolldown.png) rgba(64,64,64,0.6);
}
.panel .scrolldown:active {
border: 1px solid rgba(255,255,255,0.5);
2011-03-17 15:30:30 +01:00
background: url(../images/scrolldown.png) rgba(128,128,128,0.5);
}
.panel .scrollup, .panel .scrollup:active, .panel .scrollup:hover,
.panel .scrolldown, .panel .scrolldown:active, .panel .scrolldown:hover {
height: 18px;
width: 100%;
background-repeat: no-repeat;
background-position: center;
}
.playerlist {
overflow:hidden;
}
2011-02-19 20:51:21 +01:00
/*******************
* players on the map
*/
.dynmap .playerName {
position: absolute;
top: 0px;
left: 34px;
2011-08-02 06:21:36 +02:00
z-index:20;
2011-06-08 16:45:24 +02:00
white-space: nowrap;
2011-02-19 20:51:21 +01:00
color: #fff;
background: rgba(0,0,0,0.6);
padding: 2px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.dynmap .playerNameSm {
position: absolute;
top: -1px;
left: 18px;
white-space: nowrap;
color: #fff;
background: rgba(0,0,0,0.6);
padding: 2px;
-moz-border-radius: 3px;
border-radius: 3px;
}
2011-05-22 16:09:50 +02:00
.dynmap .healthContainer {
display: block;
position: absolute;
2011-05-22 16:09:50 +02:00
bottom: 0;
left: 34px;
2011-05-22 16:09:50 +02:00
width: 50px;
background: rgba(0,0,0,0.6);
padding: 2px;
-moz-border-radius: 3px;
border-radius: 3px;
}
2011-05-22 16:09:50 +02:00
.dynmap .playerHealth {
height: 7px;
background: url(../images/heart.png) repeat-x left center;
}
.dynmap .playerHealthBackground {
height: 7px;
width: 50px;
background: url(../images/heart_depleted.png) repeat-x left center;
}
.dynmap .playerArmor {
height: 7px;
background: url(../images/armor.png) repeat-x left center;
}
.dynmap .playerArmorBackground {
height: 7px;
width: 50px;
background: url(../images/armor_depleted.png) repeat-x left center;
}
2011-02-19 20:51:21 +01:00
/*******************
* Compass
*/
.compass, .compass_NE, .compass_SE, .compass_NW, .compass_SW {
2011-02-19 20:51:21 +01:00
display: block;
position: absolute;
z-index: 10;
top: 20px;
2011-02-19 20:51:21 +01:00
right: 32px;
height: 84px;
width: 83px;
2011-02-19 20:51:21 +01:00
background-repeat: no-repeat;
}
.compass, .compass_SE {
2011-03-17 15:30:30 +01:00
background-image: url(../images/compass.png);
}
.compass_NE {
background-image: url(../images/compass_NE.png);
}
.compass_NW {
background-image: url(../images/compass_NW.png);
}
.compass_SW {
background-image: url(../images/compass_SW.png);
}
.compass_flat, .compass_N, .compass_E, .compass_W, .compass_S {
top: 10px;
right: 21px;
height: 105px;
width: 105px;
}
.compass_flat, .compass_S {
background-image: url(../images/compass_flat.png);
}
.compass_N {
background-image: url(../images/compass_N.png);
}
.compass_E {
background-image: url(../images/compass_E.png);
}
.compass_W {
background-image: url(../images/compass_W.png);
}
/*******************
* Chat
*/
.chat {
position: absolute;
bottom: 0px;
left: 14px;
2011-08-02 06:21:36 +02:00
z-index:50;
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-border-radius: 3px 3px 0px 0px;
-webkit-border-radius: 3px 3px 0px 0px;
-o-border-radius: 3px 3px 0px 0px;
border-radius: 3px 3px 0px 0px;
}
.chatinput {
width: 608px;
height: 16px;
outline: none;
color: #fff;
2011-08-02 06:21:36 +02:00
background-color: #000000;
border: 0px;
background: rgba(0, 0, 0, 0.6);
2011-08-02 06:21:36 +02:00
background-image: url(../images/chat_cursor.png);
background-repeat: no-repeat;
background-position: 1px center;
margin: 4px;
padding: 1px 1px 1px 15px;
}
.messagelist {
color: white;
overflow: hidden;
width: 622px;
max-height: 198px;
margin: 4px 4px 0px 4px;
padding: 1px;
}
.scrollback {
max-height:6em !important;
}
.scrollback:hover {
overflow-y: auto !important;
}
.messagerow {
position: relative;
max-height: 200px;
left: 0px;
bottom: 0px;
color: #fff;
font-weight: bold;
}
.messageicon {
position: relative;
top: 1px;
left: 0px;
}
.messagetext {
position: relative;
top: -3px;
left: 0px;
}
2011-07-21 01:23:35 +02:00
.leaflet-popup {
color: black;
}
2011-07-21 01:23:35 +02:00
.balloonmessage {
word-wrap: break-word;
2011-07-31 22:24:28 +02:00
}
/* Marker styles */
.dynmap .mapMarker .markerName {
display: none;
z-index: 101;
}
.dynmap .mapMarker:hover .markerName,
.dynmap .mapMarker .markerName-show {
display: block;
position: absolute;
top: -8px;
left: 10px;
z-index: 16;
white-space: nowrap;
color: #fff;
background: rgba(0,0,0,0.6);
padding: 2px;
-moz-border-radius: 3px;
border-radius: 3px;
}
.dynmap .mapMarker .markerIcon16x16 {
margin-top: -8px;
margin-left: -8px;
}
.dynmap .coord-control {
color: #000;
border: 1px solid rgba(128,128,128,0.6);
background-color: #bbb;
border-style: solid;
padding: 2px;
width: 80px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.dynmap .coord-control .coord-control-label {
}
.dynmap .coord-control .coord-control-value {
font-weight: bold;
}