Skip to content

Commit

Permalink
Merge pull request #2513 from gpasztor87/patch-1
Browse files Browse the repository at this point in the history
Using flexbox on login and reset page.
  • Loading branch information
daftspunk committed Nov 29, 2016
2 parents f771887 + fc5af0d commit c31d3a9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 24 deletions.
6 changes: 2 additions & 4 deletions modules/backend/assets/css/october.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 8 additions & 16 deletions modules/backend/assets/less/layout/outerlayout.less
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,14 @@ body.outer {

.horizontal-form {
font-size: 0;
.flex-display();

input {
vertical-align: top;
margin-right: 9px;
display: inline-block;
border: none;
.border-radius(2px);

&.width-1 {
width: 160px;
}

&.width-2 {
width: 323px;
}
}

button {
Expand All @@ -78,11 +71,6 @@ body.outer {
height: 40px;
vertical-align: top;
.box-sizing(border-box);

&.login-button {
display: inline-block;
width: 98px;
}
}
}

Expand Down Expand Up @@ -135,10 +123,14 @@ html.csstransitions {
width: auto;
padding: @padding-standard * 2;

.horizontal-form input {
.horizontal-form {
display: block;
width: 100% !important;
margin-bottom: @padding-standard;

input {
display: block;
width: 100% !important;
margin-bottom: @padding-standard;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion modules/backend/controllers/auth/reset.htm
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ <h2><?= e(trans('backend::lang.account.enter_new_password')) ?></h2>
type="password"
name="password"
value=""
class="form-control password width-2 icon lock"
class="form-control password icon lock"
placeholder="<?= e(trans('backend::lang.account.password_placeholder')) ?>"
autocomplete="off"
maxlength="255" />
Expand Down
2 changes: 1 addition & 1 deletion modules/backend/controllers/auth/restore.htm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h2><?= e(trans('backend::lang.account.enter_login')) ?></h2>
type="text"
name="login"
value="<?= e(post('login')) ?>"
class="form-control width-2 icon user"
class="form-control icon user"
placeholder="<?= e(trans('backend::lang.account.login_placeholder')) ?>"
autocomplete="off"
maxlength="255" />
Expand Down
4 changes: 2 additions & 2 deletions modules/backend/controllers/auth/signin.htm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h2><?= e(Backend\Models\BrandSetting::get('app_tagline')) ?></h2>
type="text"
name="login"
value="<?= e(post('login')) ?>"
class="form-control width-1 icon user"
class="form-control icon user"
placeholder="<?= e(trans('backend::lang.account.login_placeholder')) ?>"
autocomplete="off"
maxlength="255" />
Expand All @@ -21,7 +21,7 @@ <h2><?= e(Backend\Models\BrandSetting::get('app_tagline')) ?></h2>
type="password"
name="password"
value=""
class="form-control width-1 icon lock"
class="form-control icon lock"
placeholder="<?= e(trans('backend::lang.account.password_placeholder')) ?>"
autocomplete="off"
maxlength="255" />
Expand Down

0 comments on commit c31d3a9

Please sign in to comment.