From acf0dda67a6eb3ea7d4f7169f2662c28e7a58c15 Mon Sep 17 00:00:00 2001 From: flashwave Date: Thu, 16 Aug 2018 00:22:32 +0200 Subject: [PATCH] Move auth pages into the main site, slight reduces the immersion break. --- assets/less/auth/classes/container.less | 15 +++++++++-- assets/less/auth/main.less | 35 ------------------------- templates/auth/auth.twig | 2 +- templates/auth/lockdown.twig | 2 +- templates/auth/logout.twig | 2 +- templates/auth/master.twig | 16 ++--------- templates/auth/password.twig | 2 +- templates/master.twig | 3 +++ 8 files changed, 22 insertions(+), 55 deletions(-) diff --git a/assets/less/auth/classes/container.less b/assets/less/auth/classes/container.less index ee9148aa..7a49b091 100644 --- a/assets/less/auth/classes/container.less +++ b/assets/less/auth/classes/container.less @@ -1,5 +1,16 @@ -.container { +.auth-container { box-shadow: 0 2px 5px fade(#111, 80%); + color: #fff; background: #222; - margin: 2px; + margin: 2px auto; + width: 400px; + min-height: @auth-form-height; + display: flex; + flex-direction: column; + justify-content: center; + + @media (max-width: @auth-mobile) { + min-width: 0; + width: 100%; + } } diff --git a/assets/less/auth/main.less b/assets/less/auth/main.less index 59301fea..829b706e 100644 --- a/assets/less/auth/main.less +++ b/assets/less/auth/main.less @@ -2,41 +2,6 @@ @auth-title-height: 40px; @auth-form-height: 200px; -* { - margin: 0; - padding: 0; - box-sizing: border-box; - position: relative; -} - -html, -body { - height: 100%; - width: 100%; -} - -body { - background: #5e3e71 url('https://static.flash.moe/images/grid.png'); - font: 12px/20px sans-serif; - display: flex; - align-items: center; - justify-content: center; - color: #fff; -} - -.auth { - min-width: 400px; - min-height: @auth-form-height; - display: flex; - flex-direction: column; - justify-content: center; - - @media (max-width: @auth-mobile) { - min-width: 0; - width: 100%; - } -} - @import "classes/button"; @import "classes/container"; @import "classes/form"; diff --git a/templates/auth/auth.twig b/templates/auth/auth.twig index 876b049c..c569ac21 100644 --- a/templates/auth/auth.twig +++ b/templates/auth/auth.twig @@ -1,7 +1,7 @@ {% extends 'auth/master.twig' %} {% block content %} -
+