Login screen style for mobile

master
Bob Mottram 2019-08-27 15:34:27 +01:00
parent ffb8c16680
commit 60da723ce8
2 changed files with 78 additions and 9 deletions

View File

@ -9,6 +9,7 @@
--font-size-header: 18px;
--font-color-header: #ccc;
--font-size: 22px;
--font-size-mobile: 40px;
--text-entry-foreground: #ccc;
--text-entry-background: #111;
}
@ -92,12 +93,80 @@ span.psw {
padding-top: 16px;
}
@media screen and (max-width: 300px) {
span.psw {
display: block;
float: none;
}
.cancelbtn {
width: 100%;
}
@media screen and (min-width: 400px) {
body, html {
background-color: var(--main-bg-color);
color: var(--main-fg-color);
background-image: url("/login-background.png");
height: 100%;
font-family: Arial, Helvetica, sans-serif;
max-width: 60%;
min-width: 600px;
margin: 0 auto;
font-size: var(--font-size);
position: relative;
top: 3%;
}
.login-text {
font-size: var(--font-size);
}
input[type=text], input[type=password] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
font-size: var(--font-size);
}
button {
background-color: #555;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
font-size: var(--font-size);
}
}
@media screen and (max-width: 1000px) {
body, html {
background-color: var(--main-bg-color);
color: var(--main-fg-color);
background-image: url("/login-background.png");
height: 100%;
font-family: Arial, Helvetica, sans-serif;
max-width: 95%;
min-width: 600px;
margin: 0 auto;
font-size: var(--font-size-mobile);
position: relative;
top: 5%;
}
.login-text {
font-size: var(--font-size-mobile);
}
input[type=text], input[type=password] {
width: 100%;
padding: 12px 20px;
margin: 8px 0;
display: inline-block;
border: 1px solid #ccc;
box-sizing: border-box;
font-size: var(--font-size-mobile);
}
button {
background-color: #555;
color: white;
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
font-size: var(--font-size-mobile);
}
}

View File

@ -446,7 +446,7 @@ a:link {
.time-right {
float: right;
color: #aaa;
margin: 4px 0px;
margin: 4px 20px;
}
.post-title {