533 lines
7.8 KiB
CSS
533 lines
7.8 KiB
CSS
/**
|
|
* Copyright (c) 2012, Andy Janata
|
|
* All rights reserved.
|
|
*
|
|
* Redistribution and use in source and binary forms, with or without modification, are permitted
|
|
* provided that the following conditions are met:
|
|
*
|
|
* * Redistributions of source code must retain the above copyright notice, this list of conditions
|
|
* and the following disclaimer.
|
|
* * Redistributions in binary form must reproduce the above copyright notice, this list of
|
|
* conditions and the following disclaimer in the documentation and/or other materials provided
|
|
* with the distribution.
|
|
*
|
|
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
|
|
* WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*/
|
|
|
|
body {
|
|
overflow: hidden;
|
|
min-height: 640px;
|
|
}
|
|
|
|
/*
|
|
#browser {
|
|
background: rgba(0, 0, 0, .5);
|
|
}
|
|
|
|
#browser_inner {
|
|
border: 10px solid red;
|
|
padding: 15px;
|
|
background: white;
|
|
margin: 150px;
|
|
min-height: 150px;
|
|
}
|
|
|
|
#browser, #browser_inner {
|
|
position: absolute;
|
|
top: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
z-index: 9001;
|
|
}
|
|
|
|
#browser_ok {
|
|
margin: 15px;
|
|
position: absolute;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
}
|
|
*/
|
|
|
|
#menubar {
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0px;
|
|
width: 100%;
|
|
height: 25px;
|
|
border: 1px solid black;
|
|
}
|
|
|
|
#menubar_left {
|
|
float: left;
|
|
}
|
|
|
|
#menubar_right {
|
|
float: right;
|
|
}
|
|
|
|
#nickbox {
|
|
border: 1px solid black;
|
|
display: inline;
|
|
padding: 5px;
|
|
/*
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
*/
|
|
}
|
|
|
|
#canvas {
|
|
height: 533px;
|
|
overflow: none;
|
|
position: relative;
|
|
width: 100%;
|
|
/* * /
|
|
border: 1px solid red;
|
|
/ * */
|
|
}
|
|
|
|
#main {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 506px;
|
|
top: 26px;
|
|
/*bottom: 216px;*/
|
|
border: 1px solid black;
|
|
}
|
|
|
|
#main_holder {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
#game_list {
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow: auto;
|
|
}
|
|
|
|
.gamelist_lobby {
|
|
width: 32%;
|
|
height: 100px;
|
|
float: left;
|
|
border: 1px solid black;
|
|
margin: 4px;
|
|
}
|
|
|
|
.gamelist_lobby_left {
|
|
width: 74%;
|
|
height: 100%;
|
|
float: left;
|
|
}
|
|
|
|
.gamelist_lobby_right {
|
|
border-left: 1px solid black;
|
|
width: 25%;
|
|
height: 100%;
|
|
float: right;
|
|
}
|
|
|
|
.gamelist_lobby_join {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.gamelist_lobby_status {
|
|
float: right;
|
|
}
|
|
|
|
.gamelist_lobby_status_joinable {
|
|
color: green;
|
|
}
|
|
|
|
.gamelist_lobby_status_unjoinable {
|
|
color: #c0c0c0;
|
|
}
|
|
|
|
#bottom {
|
|
width: 100%;
|
|
height: 215px;
|
|
position: absolute;
|
|
top: 543px;
|
|
min-height: 100px;
|
|
}
|
|
|
|
#info_area {
|
|
width: 250px;
|
|
height: 100%;
|
|
border: 0px;
|
|
position: absolute;
|
|
bottom: 0px;
|
|
min-height: 100px;
|
|
border: 1px solid black;
|
|
}
|
|
|
|
#chat_area {
|
|
min-height: 100px;
|
|
width: 50%;
|
|
height: 100%;
|
|
border: 0px;
|
|
position: absolute;
|
|
bottom: 0px;
|
|
right: 14px;
|
|
}
|
|
|
|
#log {
|
|
width: 100%;
|
|
height: 198px;
|
|
border: 1px solid black;
|
|
position: absolute;
|
|
bottom: 18px;
|
|
right: 0px;
|
|
overflow-y: scroll;
|
|
min-height: 82px;
|
|
}
|
|
|
|
#chat {
|
|
border: 1px solid black;
|
|
left: -2px;
|
|
/*right: 46px;*/
|
|
bottom: 0px;
|
|
height: 17px;
|
|
position: absolute;
|
|
padding: 0px;
|
|
width: 90%;
|
|
}
|
|
|
|
#chat_submit {
|
|
width: 50px;
|
|
height: 20px;
|
|
position: absolute;
|
|
right: -1px;
|
|
bottom: -1px;
|
|
margin: 0px;
|
|
padding: 0px;
|
|
}
|
|
|
|
span.error {
|
|
color: red;
|
|
}
|
|
|
|
span.debug {
|
|
color: blue;
|
|
}
|
|
|
|
.card {
|
|
position: relative;
|
|
width: 200px;
|
|
height: 200px;
|
|
border: 3px solid gray;
|
|
padding: 15px;
|
|
font-family: Arial, Verdana, san-serif;
|
|
font-size: 15pt;
|
|
float: left;
|
|
|
|
-webkit-user-select: none;
|
|
-khtml-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
-o-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.blackcard {
|
|
background: #231f20;
|
|
color: white;
|
|
}
|
|
|
|
.whitecard {
|
|
background: white;
|
|
color: #231f20;
|
|
}
|
|
|
|
.cah {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
margin: 15px;
|
|
}
|
|
|
|
.hide {
|
|
display: none;
|
|
}
|
|
|
|
.game {
|
|
height: 100%;
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.header {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
right: 5px;
|
|
}
|
|
|
|
.game_hand {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
right: 0px;
|
|
height: 30%;
|
|
border-top: 1px solid black;
|
|
/*
|
|
overflow-x: auto;
|
|
overflow-y: visible;
|
|
*/
|
|
}
|
|
|
|
.game_hand_filter {
|
|
height: 100%;
|
|
position: relative;
|
|
background: rgba(192, 192, 192, .5);
|
|
z-index: 100;
|
|
text-align: center;
|
|
}
|
|
|
|
.game_hand_filter_text {
|
|
height: 100%;
|
|
position: absolute;
|
|
top: 50%;
|
|
font-size: 300%;
|
|
margin-top: -30px;
|
|
}
|
|
|
|
.game_hand_cards {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
height: 100%;
|
|
width: 99%;
|
|
cursor: pointer;
|
|
padding-left: 2px;
|
|
min-width: 750px;
|
|
}
|
|
|
|
.game_top {
|
|
border-bottom: 2px solid black;
|
|
padding: 5px;
|
|
}
|
|
|
|
.game_show_last_round {
|
|
float: right;
|
|
}
|
|
|
|
.game_message {
|
|
font-size: 14pt;
|
|
}
|
|
|
|
.game_black_card_wrapper {
|
|
width: 232px;
|
|
float: left;
|
|
}
|
|
|
|
.game_black_card {
|
|
width: 232px;
|
|
height: 232px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.confirm_card {
|
|
float: left;
|
|
margin-top: 10px;
|
|
width: 100%;
|
|
}
|
|
|
|
.game_left_side {
|
|
float: left;
|
|
width: 232px;
|
|
padding-left: 10px;
|
|
padding-top: 10px;
|
|
}
|
|
|
|
.game_right_side {
|
|
position: absolute;
|
|
left: 246px;
|
|
width: 700px;
|
|
/*
|
|
overflow-x: auto;
|
|
*/
|
|
}
|
|
|
|
.game_right_side_box {
|
|
height: 60%;
|
|
margin: 10px;
|
|
}
|
|
|
|
.game_right_side_cards {
|
|
margin-top: 15px;
|
|
min-width: 600px;
|
|
cursor: pointer;
|
|
z-index: 200;
|
|
}
|
|
|
|
.game_white_cards_binder {
|
|
border: 5px solid silver;
|
|
display: inline-block;
|
|
margin-right: 4px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.card_holder {
|
|
float: left;
|
|
position: relative;
|
|
overflow-x: visible !important;
|
|
overflow-y: visible !important;
|
|
margin-right: 2px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.game_white_cards_binder .card_holder {
|
|
margin-right: 0px;
|
|
}
|
|
|
|
.scoreboard {
|
|
width: 250px;
|
|
height: 100%;
|
|
position: absolute;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.scorecard {
|
|
height: 36px;
|
|
padding: 2px;
|
|
border-bottom: 1px solid black;
|
|
font-size: 11pt;
|
|
}
|
|
|
|
.scorecard_status {
|
|
float: right;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.clear {
|
|
clear: both;
|
|
}
|
|
|
|
.selected {
|
|
border: 3px solid blue;
|
|
}
|
|
|
|
.logo {
|
|
position: absolute;
|
|
width: 250px;
|
|
height: 32px;
|
|
bottom: 15px;
|
|
left: 15px;
|
|
}
|
|
|
|
.logo_element {
|
|
top: 2px;
|
|
position: absolute;
|
|
width: 22px;
|
|
height: 22px;
|
|
}
|
|
|
|
|
|
.blackcard .logo_element {
|
|
border: 1px solid #231f20;
|
|
}
|
|
|
|
/*
|
|
.whitecard .logo_element {
|
|
border: 1px solid white;
|
|
}
|
|
*/
|
|
|
|
.logo_1 {
|
|
left: 2px;
|
|
}
|
|
|
|
.blackcard .logo_1 {
|
|
background: #57585a;
|
|
}
|
|
|
|
.whitecard .logo_1 {
|
|
background: #231f20;
|
|
}
|
|
|
|
.logo_2 {
|
|
left: 10px;
|
|
}
|
|
|
|
.blackcard .logo_2 {
|
|
background: #b2b3b7;
|
|
}
|
|
|
|
.whitecard .logo_2 {
|
|
background: #636366;
|
|
}
|
|
|
|
.logo_3 {
|
|
left: 16px;
|
|
top: 5px;
|
|
}
|
|
|
|
.blackcard .logo_3 {
|
|
background: white;
|
|
}
|
|
|
|
.whitecard .logo_3 {
|
|
background: #c7c8ca;
|
|
}
|
|
|
|
.logo_text {
|
|
position: absolute;
|
|
font-size: 8pt;
|
|
font-weight: bold;
|
|
left: 45px;
|
|
bottom: 4px;
|
|
}
|
|
|
|
.card_metadata {
|
|
position: absolute;
|
|
right: 15px;
|
|
bottom: 15px;
|
|
}
|
|
|
|
.draw, .pick {
|
|
float: right;
|
|
clear: both;
|
|
font-weight: bold;
|
|
font-size: 12pt;
|
|
}
|
|
|
|
.card_number {
|
|
width: 20px;
|
|
height: 20px;
|
|
|
|
-webkit-border-radius: 10px;
|
|
-moz-border-radius: 10px;
|
|
-o-border-radius: 10px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.blackcard .card_number {
|
|
background: white;
|
|
display: inline-block;
|
|
color: #231f20;
|
|
text-align: center;
|
|
}
|
|
|
|
.previous_round {
|
|
z-index: 50;
|
|
border: 3px solid black;
|
|
width: 60%;
|
|
height: 60%;
|
|
position: absolute;
|
|
top: 20%;
|
|
left: 20%;
|
|
padding: 5px;
|
|
}
|
|
|
|
.previous_round_close {
|
|
position: absolute;
|
|
right: 0px;
|
|
}
|