X-Git-Url: https://git.nubati.net/cgi-bin/gitweb.cgi?p=e-DoKo.git;a=blobdiff_plain;f=css%2Fstandard.css;h=626c21814a4bd59e7ea85e6a573f3457a8c05fc0;hp=5624cb5bc5cd83a696c14ea6e21dbd2708c74e1f;hb=21973b9985f6325315721cba1c4e046fbbe3a1f0;hpb=c3ece206278ca4f719bf77bb71e4798ccaf2a45a diff --git a/css/standard.css b/css/standard.css index 5624cb5..626c218 100644 --- a/css/standard.css +++ b/css/standard.css @@ -110,7 +110,7 @@ footer .left { float:left; font-size:smaller; } } /* 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%; @@ -118,9 +118,27 @@ footer .left { float:left; font-size:smaller; } 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%; @@ -191,19 +209,19 @@ div.table div { 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 */ @@ -485,6 +503,7 @@ ul.tricks li div div span.comment span{ div.user ul { list-style:none; + padding: 0px; } div.user ul li { @@ -751,3 +770,81 @@ div span.numberoftricks { .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