Skip to content

Commit

Permalink
Add flexbox mixins (2factorauth#2254)
Browse files Browse the repository at this point in the history
  • Loading branch information
PSGS authored and Carlgo11 committed Dec 15, 2016
1 parent bb4d76a commit 047544a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
11 changes: 11 additions & 0 deletions _sass/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@
-moz-box-sizing: $type;
box-sizing: $type;
}

@mixin display-flex() {
display: flex;
display: -webkit-flex;
display: -ms-flexbox;
}

@mixin flex-direction($direction) {
flex-direction: $direction;
-ms-flex-direction: $direction;
}
25 changes: 7 additions & 18 deletions css/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,8 @@ input[type=search] {

.main {
.title {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-direction: row;
flex-direction: row;
@include display-flex();
@include flex-direction(row);
-ms-flex-align: center;
align-items: center;

Expand All @@ -202,11 +199,8 @@ input[type=search] {
}

.button-group {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-direction: row;
flex-direction: row;
@include display-flex();
@include flex-direction(row);
justify-content: space-between;
}
}
Expand All @@ -233,11 +227,8 @@ input[type=search] {
line-height: 2em;

.title {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-ms-flex-direction: row;
flex-direction: row;
@include display-flex();
@include flex-direction(row);
-ms-flex-align: center;
align-items: center;

Expand All @@ -252,9 +243,7 @@ input[type=search] {
}

.progress-info {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
@include display-flex();
-webkit-justify-content: center;
justify-content: center;

Expand Down

0 comments on commit 047544a

Please sign in to comment.