diff --git a/python-django-mfa-example/mfa/static/css/login.css b/python-django-mfa-example/mfa/static/css/login.css index c24833f..2d9a3bf 100644 --- a/python-django-mfa-example/mfa/static/css/login.css +++ b/python-django-mfa-example/mfa/static/css/login.css @@ -122,7 +122,6 @@ h1 { align-items: center; position: relative; bottom: 10%; - /* background-color: #f9f9fb; */ } .logged_in_div_left { @@ -204,8 +203,7 @@ div.text_box { background-color: #f9f9fb; height: 60px; padding: 15px 30px 15px 30px; - - z-index: 1000; + z-index: 998; } .logged_in_nav p { @@ -216,12 +214,6 @@ div.text_box { .logged_in_nav img { height: 50px; - border-radius: 50%; - border: 2px solid #2f2e2e; -} - -.logged_in_nav img:hover { - border: 2px solid #555555; } .nav-item { @@ -274,15 +266,6 @@ pre.prettyprint { margin-bottom: 20px; } -.qr_div { - align-self: center; - padding-top: 15px; -} - -.qr_code { - width: 7vw; - max-width: 100px; -} ul { list-style-type: none; @@ -320,4 +303,44 @@ li.even { .mt-20 { margin-top: 20px; +} + +.overlay { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0,0,0,0.5); + z-index: 999; +} + +.modal { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background-color: #fff; + padding: 25px; + border-radius: 10px; + box-shadow: 0 0 10px rgba(0,0,0,0.5); + z-index: 1000; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +.qr_code_instructions { + width: 300px; +} + +.qr_code { + width: 300px; + margin: 25px; +} + +button:disabled { + opacity: 0.5; + pointer-events: none; } \ No newline at end of file diff --git a/python-django-mfa-example/mfa/templates/mfa/challenge_factor.html b/python-django-mfa-example/mfa/templates/mfa/challenge_factor.html index 2a8b8d2..24e3100 100644 --- a/python-django-mfa-example/mfa/templates/mfa/challenge_factor.html +++ b/python-django-mfa-example/mfa/templates/mfa/challenge_factor.html @@ -10,11 +10,9 @@
WorkOS
+WorkOS
+