]> git.wh0rd.org - tt-rss.git/commitdiff
add some styling to otp form
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Apr 2013 17:15:41 +0000 (21:15 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Apr 2013 17:15:41 +0000 (21:15 +0400)
plugins/auth_internal/init.php
utility.css

index 9ec1314481d0fc709ef0525a953eb397ec7a31d7..e2b02b05da32f4e1a375d2728b3bec75c31871c3 100644 (file)
@@ -52,9 +52,10 @@ class Auth_Internal extends Plugin implements IAuthModule {
                                                        $return = urlencode($_REQUEST["return"]);
                                                        ?><html>
                                                                <head><title>Tiny Tiny RSS</title></head>
-                                                       <body>
+                                                               <?php echo stylesheet_tag("utility.css") ?>
+                                                       <body class="otp"><div class="content">
                                                        <form action="public.php?return=<?php echo $return ?>"
-                                                                       method="POST">
+                                                                       method="POST" class="otpform">
                                                                <input type="hidden" name="op" value="login">
                                                                <input type="hidden" name="login" value="<?php echo htmlspecialchars($login) ?>">
                                                                <input type="hidden" name="password" value="<?php echo htmlspecialchars($password) ?>">
@@ -62,7 +63,7 @@ class Auth_Internal extends Plugin implements IAuthModule {
                                                                <label><?php echo __("Please enter your one time password:") ?></label>
                                                                <input autocomplete="off" size="6" name="otp" value=""/>
                                                                <input type="submit" value="Continue"/>
-                                                       </form>
+                                                       </form></div>
                                                        <script type="text/javascript">
                                                                document.forms[0].otp.focus();
                                                        </script>
index 308b71fd033a932ed679eb46725f2b80ebdd3892..074589f9e9d34f5e7b84046b494415844a8f803c 100644 (file)
@@ -221,3 +221,22 @@ fieldset label {
        color : gray;
 }
 
+body.otp {
+       margin : 1em;
+       padding : 0px;
+}
+
+form.otpform {
+       margin : 0px;
+       padding : 0px;
+}
+
+form.otpform label {
+       margin : 0px;
+       padding : 0px;
+}
+
+body.otp div.content {
+       display : inline-block;
+       width : auto;
+}