From 502f5894709e648a85b2dfabb5f63aa4b0b61b71 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 8 Jan 2021 21:06:43 +0200 Subject: Added a login page with a preview gif --- login-page/src/styles.css | 130 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 login-page/src/styles.css (limited to 'login-page/src/styles.css') diff --git a/login-page/src/styles.css b/login-page/src/styles.css new file mode 100644 index 0000000..87a1cfb --- /dev/null +++ b/login-page/src/styles.css @@ -0,0 +1,130 @@ +:root { + --focus-color: forestgreen; +} + +html, body { + height: 100%; + margin: 0; +} + +body { + font: 21px sans-serif; +} + +form { + width: 100%; +} + +#content { + height: 100%; + max-width: 20em; + margin-left: auto; + margin-right: auto; + + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; +} + +#title { + font-size: 2em; + font-weight: bold; +} + +#content input { + border: 0; + border-bottom: 1px solid grey; + padding: 0.4em; + padding-left: 0; + width: 100%; + box-sizing: border-box; + font-size: inherit; + margin-bottom: 0.5em; +} + +#content #submit-btn { + border: 2px solid black; + border-radius: 0.4em; + box-sizing: border-box; + width: 100%; + margin-top: 0.5em; + font-size: 0.8em; + padding: 0.3em; +} + +#content input[type=text]:nth-last-of-type(1) { + +} + +input:focus, button:focus { + outline: 0; +} + +.input-selection { + position: relative; + margin-top: 0.7em; +} + +.input-selection label { + transition: 0.2s; + width: inherit; + height: inherit; + position: absolute; + margin-top: 0.4em; + scale: 1em; + color: grey; + left: 0; +} + +.input-selection input::-webkit-input-placeholder { + opacity: 0; +} + +.input-selection:hover > label, +.input-selection > input:not(:placeholder-shown) + label, +.input-selection > input:focus + label { + font-size: 0.7em; + transition: 0.2s; + transform: translate(0, -1.2em); + color: var(--focus-color); +} + +.input-selection:hover > input::-webkit-input-placeholder, +.input-selection > input:focus::-webkit-input-placeholder { + opacity: 1; +} + +.input-selection:hover > input, +.input-selection > input:focus { + border-color: var(--focus-color) !important; + caret-color: var(--focus-color); + border-width: 2px !important; + margin-top: -1px !important; +} + + +#content hr { + width: 100%; + border: 1px solid black; + box-sizing: border-box; +} + +#submit-btn { + transition: 0.2s; + background-color: black; + color: white; + text-align: center; +} + +#submit-btn:hover { + cursor: pointer; + border-color: var(--focus-color) !important; + color: var(--focus-color); + background-color: white; +} + +#submit-btn:active { + transition: 0s; + transform: scale(0.9); +} -- cgit v1.2.3