Tiny login screen

merge-requests/30/head
Bob Mottram 2021-11-18 21:56:39 +00:00
parent f525da056f
commit 02bd4037ce
1 changed files with 71 additions and 30 deletions

View File

@ -1,44 +1,45 @@
@charset "UTF-8"; @charset "UTF-8";
:root { :root {
--login-bg-color: #282c37; --login-bg-color: #010026;
--link-bg-color: #282c37; --link-bg-color: #e6ebf0;
--login-fg-color: #dddddd; --login-fg-color: white;
--main-link-color: #999; --main-link-color: darkblue;
--main-visited-color: #888; --main-visited-color: #232c37;
--border-color: #505050; --border-color: #c0cdd9;
--border-width: 2px; --border-width: 1px;
--font-size-header: 18px; --font-size-header: 18px;
--font-color-header: #ccc; --font-color-header: black;
--login-font-size: 22px; --login-font-size: 22px;
--login-font-size-mobile: 40px; --login-font-size-mobile: 40px;
--text-entry-foreground: #ccc; --login-font-size-tiny: 20px;
--text-entry-background: #111; --text-entry-foreground: #111;
--text-entry-background: white;
--time-color: #aaa; --time-color: #aaa;
--button-text: #FFFFFF; --button-text: #FFFFFF;
--button-background: #999; --button-background: #999;
--button-selected: #666; --button-selected: #666;
--form-border-radius: 30px; --form-border-radius: 30px;
--focus-color: white; --focus-color: grey;
--line-spacing: 130%; --line-spacing: 130%;
--login-logo-width: 20%; --login-logo-width: 20%;
--main-link-color-hover: #bbb; --main-link-color-hover: blue;
--rendering: normal; --rendering: normal;
} }
@font-face { @font-face {
font-family: 'Bedstead'; font-family: 'NimbusSanL';
font-style: italic; font-style: italic;
font-weight: normal; font-weight: normal;
font-display: block; font-display: block;
src: url('./fonts/bedstead.otf') format('opentype'); src: url('./fonts/NimbusSanL-italic.otf') format('opentype');
} }
@font-face { @font-face {
font-family: 'Bedstead'; font-family: 'NimbusSanL';
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-display: block; font-display: block;
src: url('./fonts/bedstead.otf') format('opentype'); src: url('./fonts/NimbusSanL.otf') format('opentype');
} }
body, html { body, html {
@ -52,7 +53,7 @@ body, html {
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
height: 100%; height: 100%;
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
max-width: 60%; max-width: 60%;
min-width: 600px; min-width: 600px;
margin: 0 auto; margin: 0 auto;
@ -112,7 +113,7 @@ input[type=text], input[type=password] {
border: 1px solid #ccc; border: 1px solid #ccc;
box-sizing: border-box; box-sizing: border-box;
font-size: var(--login-font-size); font-size: var(--login-font-size);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
} }
button { button {
@ -124,12 +125,12 @@ button {
cursor: pointer; cursor: pointer;
width: 100%; width: 100%;
font-size: var(--login-font-size); font-size: var(--login-font-size);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
} }
.login-text { .login-text {
font-size: var(--login-font-size); font-size: var(--login-font-size);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
} }
button:hover { button:hover {
@ -170,17 +171,17 @@ span.psw {
background-color: var(--login-bg-color); background-color: var(--login-bg-color);
color: var(--login-fg-color); color: var(--login-fg-color);
height: 100%; height: 100%;
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
max-width: 60%; max-width: 60%;
min-width: 600px; min-width: 600px;
margin: 0 auto; margin: 0 auto;
font-size: var(--login-font-size); font-size: var(--login-font-size);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
position: relative; position: relative;
} }
.login-text { .login-text {
font-size: var(--login-font-size); font-size: var(--login-font-size);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
} }
input[type=text], input[type=password] { input[type=text], input[type=password] {
width: 100%; width: 100%;
@ -190,7 +191,7 @@ span.psw {
border: 1px solid #ccc; border: 1px solid #ccc;
box-sizing: border-box; box-sizing: border-box;
font-size: var(--login-font-size); font-size: var(--login-font-size);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
} }
button { button {
background-color: var(--button-background); background-color: var(--button-background);
@ -201,7 +202,7 @@ span.psw {
cursor: pointer; cursor: pointer;
width: 100%; width: 100%;
font-size: var(--login-font-size); font-size: var(--login-font-size);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
} }
} }
@ -210,17 +211,17 @@ span.psw {
background-color: var(--login-bg-color); background-color: var(--login-bg-color);
color: var(--login-fg-color); color: var(--login-fg-color);
height: 100%; height: 100%;
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
max-width: 95%; max-width: 95%;
min-width: 600px; min-width: 600px;
margin: 0 auto; margin: 0 auto;
font-size: var(--login-font-size-mobile); font-size: var(--login-font-size-mobile);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
position: relative; position: relative;
} }
.login-text { .login-text {
font-size: var(--login-font-size-mobile); font-size: var(--login-font-size-mobile);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
} }
input[type=text], input[type=password] { input[type=text], input[type=password] {
width: 100%; width: 100%;
@ -230,7 +231,7 @@ span.psw {
border: 1px solid #ccc; border: 1px solid #ccc;
box-sizing: border-box; box-sizing: border-box;
font-size: var(--login-font-size-mobile); font-size: var(--login-font-size-mobile);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
} }
button { button {
background-color: var(--button-background); background-color: var(--button-background);
@ -241,6 +242,46 @@ span.psw {
cursor: pointer; cursor: pointer;
width: 100%; width: 100%;
font-size: var(--login-font-size-mobile); font-size: var(--login-font-size-mobile);
font-family: Arial, Helvetica, sans-serif; font-family: 'NimbusSanL';
}
}
@media screen and (max-width: 480px) {
body, html {
background-color: var(--login-bg-color);
color: var(--login-fg-color);
height: 100%;
font-family: 'NimbusSanL';
max-width: 95%;
min-width: 400px;
margin: 0 auto;
font-size: var(--login-font-size-tiny);
font-family: 'NimbusSanL';
position: relative;
}
.login-text {
font-size: var(--login-font-size-tiny);
font-family: 'NimbusSanL';
}
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(--login-font-size-tiny);
font-family: 'NimbusSanL';
}
button {
background-color: var(--button-background);
color: var(--button-text);
padding: 14px 20px;
margin: 8px 0;
border: none;
cursor: pointer;
width: 100%;
font-size: var(--login-font-size-mobile);
font-family: 'NimbusSanL';
} }
} }