PretendYoureXyzzy/WebContent/cah.css

637 lines
9.4 KiB
CSS
Raw Normal View History

/**
* 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;
background: #eee;
color: #000;
font-size: 12px;
margin: 0;
}
.card, #game_list {
font-family: "helvetica neue", helvetica, Arial, sans-serif;
}
h2,h3,h4 {
margin: 0 0 .25em;
}
2012-01-24 07:04:14 +00:00
/*
#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;
}
2012-01-24 07:04:14 +00:00
*/
#menubar {
2012-12-21 09:00:46 +00:00
background:#555;
border-bottom:1px solid #333;
color:#fff;
height: 25px;
2012-12-21 09:00:46 +00:00
padding:.5em;
}
#menubar_left {
float: left;
}
#menubar_right {
float: right;
}
2011-12-17 00:39:52 +00:00
#nickbox {
border: 1px solid black;
display: inline;
padding: 5px;
2011-12-17 00:39:52 +00:00
}
#canvas {
height: 533px;
overflow: none;
position: relative;
width: 100%;
2011-12-17 00:39:52 +00:00
}
#main {
height: 506px;
padding: .5em;
2012-12-21 09:00:46 +00:00
}
#welcome {
padding: 1em;
}
#game_list {
height: 100%;
width: 100%;
overflow: auto;
2012-01-18 04:37:09 +00:00
}
.gamelist_lobby {
background: #fff;
border-radius: .25em;
width: 575px;
height: 175px;
float: left;
border: 1px solid #ccc;
margin: 4px;
}
.gamelist_lobby_left {
width: 77%;
height: 100%;
padding: .5em 1.5%;
float: left;
}
.gamelist_lobby_right {
width: 20%;
height: 100%;
float: right;
}
.gamelist_lobby_join {
width: 100%;
2013-06-10 12:36:11 +01:00
height: 75%;
border: 1px solid #aaa;
background: linear-gradient(#fff, #ddd) #ddd;
border-radius: .25em;
text-transform: uppercase;
font-weight: 700;
}
.gamelist_lobby_spectate {
width: 100%;
height: 25%;
border: 1px solid #aaa;
background: linear-gradient(#fff, #ddd) #ddd;
border-radius: .25em;
text-transform: uppercase;
font-weight: 700;
}
.gamelist_lobby_status {
float: right;
font-weight: 700;
}
2012-01-18 04:37:09 +00:00
.gamelist_lobby_status_joinable {
color: green;
2012-01-18 04:37:09 +00:00
}
.gamelist_lobby_status_unjoinable {
color: #c0c0c0;
}
#bottom {
width: 100%;
height: 215px;
position: absolute;
top: 543px;
min-height: 100px;
}
#info_area {
width: 250px;
height: 100%;
position: absolute;
bottom: 0px;
min-height: 100px;
border: 1px solid #999;
2012-01-18 04:37:09 +00:00
}
#tabs {
min-height: 100px;
width: 50%;
height: 100%;
border: 0px;
position: absolute;
bottom: 0px;
right: 14px;
}
#tabs .ui-widget {
font-height: 16px !important;
}
.tab-button {
font-size: 14px !important;
}
.cardset_filter_list {
display: inline-block;
width: 33%;
}
.cardset_filter_list select {
height: 150px;
width: 100%;
}
.cardset_filter_list span {
font-weight: bold;
}
.cardset_filter_list .buttons {
text-align: center;
}
.log {
width: 100%;
height: 198px;
border-style: none solid solid none;
border-color: black;
border-width: 1px;
position: absolute;
bottom: 18px;
right: 0px;
overflow-y: scroll;
min-height: 43px;
font-size: 16px;
font-family: serif;
}
#tab-preferences input[type='button'] {
float: right;
2011-12-17 00:39:52 +00:00
}
.chat {
border: 1px solid black;
left: -1px;
bottom: 0px;
height: 17px;
position: absolute;
padding: 0px;
width: 90%;
2012-10-27 16:51:12 +01:00
font-family: serif;
font-size: 12pt;
}
.chat_submit {
width: 50px;
height: 20px;
position: absolute;
right: -1px;
bottom: -1px;
margin: 0px;
padding: 0px;
font-size: 14px;
}
2011-12-17 00:39:52 +00:00
span.error {
color: red;
2011-12-17 00:39:52 +00:00
}
span.debug, span.admin {
color: blue;
}
.card {
position: relative;
width: 200px;
height: 200px;
border: 1px solid #999;
padding: 15px;
font-size: 15pt;
float: left;
border-radius: .25em;
-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;
background-image:linear-gradient(#231f20,#231f20 75%, #333)
}
.whitecard {
background: white;
color: #231f20;
}
.whitecard, .gamelist_lobby{
background-image: linear-gradient(#fff,#fff 75%,#f8f8f8);
}
.cah {
position: absolute;
bottom: 0px;
left: 0px;
margin: 15px;
}
.hide {
display: none;
}
2012-01-22 01:34:18 +00:00
.game {
height: 100%;
width: 100%;
2012-01-22 01:34:18 +00:00
position: relative;
}
.your_hand {
position: absolute;
bottom: 10px;
right: 5px;
2012-01-22 01:34:18 +00:00
}
.game_hand {
position: absolute;
bottom: 0px;
left: 0px;
right: 0px;
height: 30%;
2012-01-22 01:34:18 +00:00
}
.game_hand_filter {
height: 100%;
position: relative;
background: rgba(192, 192, 192, .5);
z-index: 100;
text-align: center;
}
.game_hand_filter_text {
position: absolute;
top: 50%;
font-size: 300%;
margin-top: -30px;
background:#eee;
padding:.25em;
}
2012-01-22 01:34:18 +00:00
.game_hand_cards {
position: absolute;
bottom: 0px;
height: 100%;
width: 99%;
padding-left: 2px;
min-width: 750px;
2012-01-22 01:34:18 +00:00
}
.game_hand_cards .card {
cursor: pointer;
}
.game_top {
padding: 5px;
}
.game_menu_bar {
float: right;
}
.game_message {
font-size: 150%;
font-weight:bold;
}
.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%;
z-index: 500;
}
.game_left_side {
float: left;
width: 232px;
padding-left: 10px;
padding-top: 10px;
}
.game_right_side, .game_options {
position: absolute;
left: 246px;
width: 700px;
}
.game_options {
background: #eee;
z-index: 500;
}
.game_right_side_box {
height: 60%;
margin: 10px;
}
.game_right_side_cards {
margin-top: 15px;
min-width: 600px;
2012-01-27 08:19:20 +00:00
cursor: pointer;
z-index: 200;
}
2012-03-17 01:34:20 +00:00
.game_right_side_cards .card_holder, .game_white_cards_binder {
z-index: 200;
}
.game_white_cards_binder {
border: 3px solid silver;
display: inline-block;
margin-right: 4px;
margin-bottom: 4px;
border-radius: .25em;
}
2012-01-22 01:34:18 +00:00
.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 {
background:#fff;
height: 36px;
padding:.25em .5em;
border-bottom: 1px solid #bbb;
font-size: 11pt;
}
.scorecard:nth-child(even) {
background:#f8f8f8;
}
.scorecard_status {
float: right;
margin-right: 5px;
}
.clear {
clear: both;
2012-01-22 01:34:18 +00:00
}
.selected {
color: #fff;
background: #3c7fb1 !important;
}
.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;
}
.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;
color: black;
}
.whitecard .logo_3 {
background: #c7c8ca;
color: black;
}
.watermark_container {
font-size: 5pt;
text-align: center;
}
.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;
}
2013-03-27 01:07:09 +00:00
/* TODO .whitecard .card_number ??? */
.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;
}
.card_set_label {
margin-right: 15px;
}
2012-12-21 08:03:27 +00:00
.scorecard_score, .scorecard_player {
2012-12-21 08:03:27 +00:00
font-weight:700;
}
2013-11-14 10:59:56 +00:00
.checkbox {
margin-right: 4px;
white-space: nowrap;
}
.checkbox input {
vertical-align: middle;
}
.checkbox span {
vertical-align: middle;
}
.nowrap {
white-space: nowrap;
}
.cardnum {
position: absolute;
right: 10px;
bottom: 19px;
font-size: 8pt;
}