*
*/
-/* reset CSS (taken from blueprint and modified a bit) */
-
-html, body, div, span,
-h1, h2, h3, h4, h5, h6, p,
-a,img, dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, tbody, tfoot, thead, tr, th, td {
- margin: 0;
- padding: 0;
- border: 0;
- vertical-align: baseline;
-}
-table { border-collapse: separate; border-spacing: 0; }
-caption, th, td { text-align: left; font-weight: normal; }
-table, td, th { vertical-align: middle; }
-
-/* end reset */
-
-/* some general layout */
-h1, h2, h3, h4, h5, h6, p {margin: 2px; padding: 1px;}
-
body { background-color: #ddd; }
-
/* the header, footer, etc */
header {
background-color: #fff;
text-align: center;
height: 4em;
padding-top: 1.5em;
- margin-left: 3em;
- margin-right: 3em;
+ margin: 0em 3em;
border-bottom: 3px solid gray;
}
.main {
background-color: #fff;
- margin-left: 3em;
- margin-right: 3em;
+ margin: 0em 3em;
+ padding: 1em 0em;
min-height: 40em;
}
}
/* all kind of message that should appear in the middle of the page/table */
-.joingame,.sickness,.poverty,.total,.message {
+.message {
position: absolute;
background-color: #fff;
width: 20%;
left:40%;
right:40%;
text-align: center;
- z-index:22
+ z-index:33;
+}
+.message >div { border: 2px solid black; }
+.message div div {
+ width: 100%;
+ text-align: right;
+ font-size: smaller;
}
+.joingame,.sickness,.poverty,.total {
+ position: absolute;
+ background-color: #fff;
+ width: 20%;
+ top:19em;
+ left:40%;
+ right:40%;
+ text-align: center;
+ z-index:22;
+}
+
+
.total {
top:11em;
width: 14%;
div.table div {
/*background-color:green;*/
position:absolute;
- width:12.5%;
+ width:10.5%;
text-align:center;
z-index:20;
}
div.table div.table0 {
top:45%;
- right:62.5%;
+ right:63.5%;
}
div.table div.table1 {
- top:0%;
- left:43.75%;
+ top:2%;
+ left:44.75%;
}
div.table div.table2 {
top:45%;
- left:62.5%;
+ left:63.5%;
}
div.table div.table3 {
- bottom:0%;
- left: 43.75%;
+ bottom:2%;
+ left: 44.75%;
}
/* display the card tricks */
div.user ul {
list-style:none;
+ padding: 0px;
}
div.user ul li {
width: 4em;
height: 4em;
border: 3px solid #aaa;
+ float:left;
}
div img.button {
width: 2em;
}
+div span.numberoftricks {
+ text-align:center;
+ clear:both;
+ display:block;
+}
+
.highcall {
background-color: #fc3;
}
.about .translation {
background-color: #fce94f;
}
+
+
+/* special layout for mobile devices */
+@media only screen and (max-width: 900px) {
+.main {
+ background-color: #fff;
+ margin-left: 0em;
+ margin-right: 0em;
+ min-height: 0em;
+}
+
+header, footer {
+ margin-left: 0em;
+ margin-right: 0em;
+}
+
+
+.lastlogin {
+ position: relative;
+ left: 0em;
+ top: 0em;
+ width: 100%;
+ text-align: center;
+ border-top: 1px solid gray;
+}
+
+.session div.sessionscore div, .status {
+ right:0em;
+}
+
+.usermenu {
+ left: 0em;
+}
+
+.notes {
+ position:relative;
+ top:0em;
+ left:0;
+ margin:0.1em;
+ margin-top:0em;
+ margin-left:0em;
+
+ width: 100%;
+
+ border: 2px solid gray;
+
+ padding:0.3em;
+
+ background-color: #efefef;
+
+ height:100%;
+ overflow: auto;
+ z-index:0;
+}
+
+.user { margin-left:5%;margin-right:5%; }
+
+div.table img.table {
+ width:50%;
+}
+
+.message {
+ position: relative;
+ background-color: #fff;
+ width: 100%;
+ top:0em;
+ left:0%;
+ right:0%;
+ text-align: center;
+ z-index:1;
+}
+.message >div { border: 2px solid black; }
+.message div div {
+ width: 100%;
+ text-align: right;
+ font-size: smaller;
+}
+}
\ No newline at end of file