From 0f47ebeb21e02a51a6afcccf1b26da14c0b369b4 Mon Sep 17 00:00:00 2001 From: apuente Date: Thu, 27 Jun 2024 15:59:19 +0200 Subject: [PATCH] Login css fix --- .../components/groups/groups.component.css | 13 +++--- .../app/components/login/login.component.css | 40 ++++++++++++++----- .../app/components/login/login.component.html | 2 + .../app/components/login/login.component.ts | 8 ++++ 4 files changed, 47 insertions(+), 16 deletions(-) diff --git a/ogWebconsole/src/app/components/groups/groups.component.css b/ogWebconsole/src/app/components/groups/groups.component.css index 74b2034..eb6ceca 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.css +++ b/ogWebconsole/src/app/components/groups/groups.component.css @@ -7,6 +7,13 @@ mat-card { margin: 10px; } +.elements-card{ + margin: 10px; + width: 800px; + background-color: #fafafa; + +} + .groups-button-row { display: flex; flex-grow: 1; @@ -39,9 +46,3 @@ button { color: #212121; } -.elements-card{ - margin: 10px; - width: 800px; - background-color: #fafafa; - -} \ No newline at end of file diff --git a/ogWebconsole/src/app/components/login/login.component.css b/ogWebconsole/src/app/components/login/login.component.css index 36514b6..f2cb166 100644 --- a/ogWebconsole/src/app/components/login/login.component.css +++ b/ogWebconsole/src/app/components/login/login.component.css @@ -1,16 +1,17 @@ .login { overflow: hidden; - background-color: rgb(255, 255, 255); - border: 1px solid grey; - padding: 40px 30px 30px 30px; + background-color: #fff; + border: 1px solid rgba(128, 128, 128, 0.801); + padding: 40px 30px; border-radius: 10px; position: absolute; top: 50%; left: 50%; - width: 400px; + width: 300px; transform: translate(-50%, -50%); transition: transform 300ms, box-shadow 300ms; box-shadow: 5px 10px 10px rgba(2, 128, 144, 0.2); + text-align: center; } .login::before, .login::after { @@ -18,13 +19,17 @@ position: absolute; width: 600px; height: 600px; - border-top-left-radius: 40%; - border-top-right-radius: 45%; - border-bottom-left-radius: 35%; - border-bottom-right-radius: 40%; + border-radius: 40% 45% 35% 40%; z-index: -1; } +.login-logo { + height: 100px; + width: 100px; + display: block; + margin: 0 auto 20px; +} + .login input { font-family: "Asap", sans-serif; display: block; @@ -32,8 +37,9 @@ font-size: 16px; background: rgba(230, 230, 230); width: 100%; - padding: 10px 10px; + padding: 10px; margin: 15px -10px; + text-align: center; } .login button { @@ -48,7 +54,7 @@ margin-top: 10px; margin-left: -5px; border-radius: 5px; - background-color: #0084ff; + background-color: #3f51b5; transition: background-color 300ms; } @@ -64,3 +70,17 @@ color: red; margin-top: 10px; } + + +@keyframes rotate360 { + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } + } + + .rotating { + animation: rotate360 0.6s cubic-bezier(.42,0,1,1) infinite; + } \ No newline at end of file diff --git a/ogWebconsole/src/app/components/login/login.component.html b/ogWebconsole/src/app/components/login/login.component.html index 02cfc41..f6a58a1 100644 --- a/ogWebconsole/src/app/components/login/login.component.html +++ b/ogWebconsole/src/app/components/login/login.component.html @@ -1,5 +1,7 @@