]> git.mxchange.org Git - friendica.git/commitdiff
frio: tweak login template, fix style
authorfabrixxm <fabrix.xm@gmail.com>
Wed, 17 Jan 2018 15:01:34 +0000 (16:01 +0100)
committerfabrixxm <fabrix.xm@gmail.com>
Wed, 17 Jan 2018 15:01:34 +0000 (16:01 +0100)
move lost pwd link and register to submit wrapper,
use flexbox for submit row in login form,
show register link as button
fix form label colors in mobile

view/theme/frio/css/style.css
view/theme/frio/templates/login.tpl

index eb08deea4610b5ce8acbe56ab86196b82d0b60c7..f6f6ad9deded72b2f4a87b4751d5c77400ba4ad5 100644 (file)
@@ -3008,6 +3008,14 @@ section .profile-match-wrapper {
 /** 
  * Login page
  */
+#login-submit-wrapper {
+       display: flex;
+    flex-wrap: wrap;
+    justify-content: space-between;
+    align-items: center;
+}
+#lost-password-link { flex-grow: 2; }
+
 .mod-home.is-not-singleuser,
 .mod-login {
     background-image: linear-gradient(to right, rgba(0,0,0, 0.7) , rgba(0,0,0, 0.4)), url($login_bg_image);
@@ -3030,10 +3038,11 @@ section .profile-match-wrapper {
        margin-top: 2.5%;
 }
 
-.mod-home.is-not-singleuser .login-form > #login-form,
-.mod-login .login-form > #login-form {
+.mod-home.is-not-singleuser .login-form > #login-form label,
+.mod-login #content #login-form label {
        color: #eee;  
 }
+
        
 .mod-home.is-not-singleuser .login-panel-content,
 .mod-login .login-panel-content { 
@@ -3046,20 +3055,22 @@ section .profile-match-wrapper {
     .mod-login #content {
                margin-top: 100px!important;
        }    
-       
-       
 
        .mod-home.is-not-singleuser .login-form > #login-form,
-    .mod-login .login-form > #login-form {    
+    .mod-login #content #login-form {    
         background-color: #fff;
-        color: #444;
         padding: 1em;
         position: relative;
         margin-top: 4em;
     }
 
-    .mod-home.is-not-singleuser .login-form > #login-form:before,
-    .mod-login .login-form > #login-form:before {
+       .mod-home.is-not-singleuser .login-form > #login-form label,
+       .mod-login #content #login-form label {
+               color: #444;  
+       }
+
+    .mod-home.is-not-singleuser .login-form > #login-form::before,
+    .mod-login #content #login-form::before {
         display: block;
         position: absolute;
         content: " ";
@@ -3071,8 +3082,8 @@ section .profile-match-wrapper {
         z-index: -1;
     }
 
-    .mod-home.is-not-singleuser .login-form > #login-form:after,
-    .mod-login .login-form > #login-form:after {
+    .mod-home.is-not-singleuser .login-form > #login-form::after,
+    .mod-login #content #login-form::after {
         display: block;
         position: absolute;
         content: " ";
index 1f818f5245b64d0903a9d9b9ccb3abe69fca4d6e..aaa42d24b4e00214e5d7b45501d4a3ae8992af1a 100644 (file)
 
                {{include file="field_checkbox.tpl" field=$lremember}}
 
-               <div id="login-extra-links" class="list-unstyled">
-                       {{if $register}}<a href="register" title="{{$register.title|escape:'html'}}" id="register-link">{{$register.desc}}</a>{{/if}}
+               <div id="login-submit-wrapper">
                        <a href="lostpass" title="{{$lostpass|escape:'html'}}" id="lost-password-link">{{$lostlink}}</a>
-               </div>
 
-               <div id="login-submit-wrapper" class="pull-right" >
-                       <button type="submit" name="submit" id="login-submit-button" class="btn btn-primary" value="{{$login|escape:'html'}}">{{$login|escape:'html'}}</button>
+                       <div class="pull-right" >
+                               {{if $register}}<a href="register" title="{{$register.title|escape:'html'}}" id="register-link" class="btn btn-default">{{$register.desc}}</a>{{/if}}
+                               <button type="submit" name="submit" id="login-submit-button" class="btn btn-primary" value="{{$login|escape:'html'}}">{{$login|escape:'html'}}</button>
+                       </div>
                </div>
-               <div class="clear"></div>
+
 
                {{foreach $hiddens as $k=>$v}}
                        <input type="hidden" name="{{$k}}" value="{{$v|escape:'html'}}" />