diff --git a/src/components/login/login.scss b/src/components/login/login.scss index 9b9a972..45f0367 100644 --- a/src/components/login/login.scss +++ b/src/components/login/login.scss @@ -28,13 +28,23 @@ // Disable horizontal scroll overflow-x: hidden; + + // Make it a table for vertical centering + display: table; +} + +.login-vertical-center +{ + // Vertically center + display: table-cell; + vertical-align: middle; } // The user interacting panel .login-panel { // Make it smaller - width: 300px; + width: 256px; // Center margin-left: auto; @@ -43,12 +53,9 @@ // Borders padding: 15px; border-radius: 10px; - box-shadow: 0 0 20px 0 white; + // box-shadow: 0 0 20px 0 white; border: 1px solid #DCDFE6; - // Vertical center - transform: translateY(50%); - // Make it white background-color: white; diff --git a/src/components/login/login.vue b/src/components/login/login.vue index fbc940e..31d14aa 100644 --- a/src/components/login/login.vue +++ b/src/components/login/login.vue @@ -1,11 +1,13 @@