Mobile design #58

Merged
H4CK3R-01 merged 4 commits from mobile_design into main 2021-07-10 14:57:40 +00:00
6 changed files with 107 additions and 3 deletions
Showing only changes of commit cc24b885e8 - Show all commits

View File

@ -97,4 +97,15 @@
.messageBody::before { .messageBody::before {
content: '\A'; content: '\A';
white-space: pre; white-space: pre;
} }
@media only screen and (max-width: 980px) {
#chat {
display: flex;
flex-flow: column-reverse;
overflow: hidden;
border-left: #7d7d7d solid 2px;
height: 100%;
margin-bottom: 10px;
}
}

View File

@ -94,4 +94,16 @@ main {
background-color: #fefefe; background-color: #fefefe;
width: 100%; width: 100%;
height: calc(100% - 50px); height: calc(100% - 50px);
}
@media only screen and (max-width: 980px) {
#main {
display: grid;
grid-template-columns: unset;
grid-template-rows: 60% 40%;
height: calc(90% - 7em);
touch-action: pan-x pan-y;
height: 100%;
}
} }

View File

@ -10,4 +10,11 @@
-moz-background-size: cover; /* Mozilla*/ -moz-background-size: cover; /* Mozilla*/
-o-background-size: cover; /* Opera*/ -o-background-size: cover; /* Opera*/
background-size: cover; /* Generic*/ background-size: cover; /* Generic*/
}
@media only screen and (max-width: 980px) {
#game {
height: auto;
width: auto;
}
} }

View File

@ -44,3 +44,46 @@ header {
padding-right: 10px; padding-right: 10px;
flex-direction: column; flex-direction: column;
} }
@media only screen and (max-width: 980px) {
header {
height: 2.2em;
display: grid;
position: inherit !important;
z-index: 99;
}
.title {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.5em;
vertical-align: central;
}
.build {
display: flex;
justify-content: center;
align-items: flex-end;
font-size: 0.5em;
padding-right: 10px;
flex-direction: column;
}
.spielanleitung {
display: flex;
align-items: center;
font-size: 1em;
padding-left: 10px;
}
.spielanleitung span {
background: #404040;
border: 1px solid #000000;
padding: 5px;
border-radius: 5px;
cursor: pointer;
}
}

View File

@ -52,4 +52,35 @@
#login button { #login button {
background-color: #0062ff; background-color: #0062ff;
color: #ffffff; color: #ffffff;
} }
@media only screen and (max-width: 980px) {
#login {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background: #212121;
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: flex-start;
position: absolute;
}
#login > form {
margin-top: 1em;
}
#login label {
font-size: 1.5em;
}
#login input,
#login button {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 1em;
height: 1em;
padding: 30px;
justify-content: center;
}
}

View File

@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" http-equiv="ScreenOrientation" content="autoRotate:disabled"/>
<title>Projektmanagement Game</title> <title>Projektmanagement Game</title>
<link href="https://fonts.googleapis.com/css?family=Material+Icons" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Material+Icons" rel="stylesheet">