]> git.mxchange.org Git - friendica.git/commitdiff
include login style when necessary
authorZach Prezkuta <fermion@gmx.com>
Sat, 18 Aug 2012 20:47:59 +0000 (14:47 -0600)
committerZach Prezkuta <fermion@gmx.com>
Sat, 18 Aug 2012 20:47:59 +0000 (14:47 -0600)
boot.php
view/login_head.tpl [new file with mode: 0644]
view/theme/frost-mobile/login-style.css
view/theme/frost-mobile/login_head.tpl [new file with mode: 0644]
view/theme/frost-mobile/style.css
view/theme/frost/login-style.css
view/theme/frost/login_head.tpl [new file with mode: 0644]
view/theme/frost/style.css

index dedae7fd547c7a99dea0e3865e759a76e1d4c872..a94d4dece520ec14a1f1475698616144a7f46a83 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -904,6 +904,10 @@ if(! function_exists('login')) {
                        $tpl = get_markup_template("logout.tpl");
                }
                else {
+                       $a->page['htmlhead'] .= replace_macros(get_markup_template("login_head.tpl"),array(
+                               '$baseurl'              => $a->get_baseurl(true)
+                       ));
+
                        $tpl = get_markup_template("login.tpl");
                        $_SESSION['return_url'] = $a->query_string;
                }
diff --git a/view/login_head.tpl b/view/login_head.tpl
new file mode 100644 (file)
index 0000000..e69de29
index 5283c584ba7c520e56d6699856f04c801279aaaa..618e07c0cbe9577262d772d73a9930f14d0ba31b 100644 (file)
@@ -26,7 +26,7 @@ img.login-button-image {
        max-width: 300px;
 }
 
-.section-wrapper {
+div.section-wrapper {
        position: relative;
        width: 300px;
        margin-left: auto;
@@ -45,6 +45,8 @@ img.login-button-image {
 .field label {
        margin-left: 25px;
        font-weight: 700;
+       float: none;
+       width: auto;
 }
 
 .field input {
@@ -62,6 +64,7 @@ img.login-button-image {
        background-position: 0 50%;
        width: 182px;
        padding-left: 18px;
+       margin-left: 50px;
 }
 
 #login-footer {
diff --git a/view/theme/frost-mobile/login_head.tpl b/view/theme/frost-mobile/login_head.tpl
new file mode 100644 (file)
index 0000000..7a5d606
--- /dev/null
@@ -0,0 +1,2 @@
+<link rel="stylesheet" href="$baseurl/view/theme/frost-mobile/login-style.css" type="text/css" media="all" />
+
index 7c69694ea4c5bb989e8483e329a1f8257096b8a8..a46b79566d014a7385651c99739da4cf16aa4529 100644 (file)
@@ -547,7 +547,7 @@ footer {
        margin-top: 10px;\r
 }\r
 \r
-\r
+/*\r
 #login_standard {\r
        width: 210px;\r
        float: left;\r
@@ -577,9 +577,9 @@ footer {
 }\r
 \r
 #login-submit-button {\r
-/*     margin-top: 10px; */\r
+       margin-top: 10px; \r
        margin-left: 200px;\r
-}\r
+}*/\r
 \r
 \r
 input#dfrn-url {\r
index 5b82c11d3b58d41e0ea293c2ab35afd83a09ecf1..3b9a9eb82b388682bca14c513b6ad89d783d7aa0 100644 (file)
@@ -1,6 +1,7 @@
 body {
        font-family: helvetica,arial,freesans,clean,sans-serif;
        font-size: 14px;
+       /*background-image: none;*/
        background-color: #ffffff;
        color: #505050;/* ZP Change*/
        margin: 0px;
@@ -19,7 +20,7 @@ img.login-button-image {
        max-width: 350px;
 }
 
-.section-wrapper {
+div.section-wrapper {
        position: relative;
        width: 800px;
        margin-left: auto;
@@ -28,7 +29,8 @@ img.login-button-image {
 }
 
 .login-form {
-       margin-top: 200px;
+       padding-top: 200px;
+       margin-bottom: 50px;
 }
 
 .register-form {
@@ -39,7 +41,13 @@ img.login-button-image {
        margin-top: 170px;
 }
 
+.field {
+       margin-bottom: 2px;
+       padding-bottom: 0px;
+}
+
 .field label {
+       width: auto;
        position: absolute;
        margin-left: 0px;
        font-weight: 700;
@@ -50,7 +58,8 @@ img.login-button-image {
        width: 200px;
 }
 
-.openid input {
+/*.openid input {*/
+#id_openid_url, .openid input {
        background: url(login-bg.gif) no-repeat;
        background-position: 0 50%;
        width: 182px;
diff --git a/view/theme/frost/login_head.tpl b/view/theme/frost/login_head.tpl
new file mode 100644 (file)
index 0000000..cd140d6
--- /dev/null
@@ -0,0 +1,2 @@
+<link rel="stylesheet" href="$baseurl/view/theme/frost/login-style.css" type="text/css" media="all" />
+
index 4401ffedb66a312c53986d5b9c5a8c8c0693dc38..eaed39549622d22ee7fa2cd47d06259edcf20337 100644 (file)
@@ -511,8 +511,10 @@ div.wall-item-content-wrapper.shiny {
        margin-top: 10px;
 }
 
-
-#login_standard {
+.login-form {
+       margin-top: -150px;
+}
+/*#login_standard {
        width: 210px;
        float: left;
 }
@@ -541,9 +543,9 @@ div.wall-item-content-wrapper.shiny {
 }
 
 #login-submit-button {
-/*     margin-top: 10px; */
+       margin-top: 10px; 
        margin-left: 200px;
-}
+}*/
 
 
 input#dfrn-url {