Skip to content

Commit

Permalink
[Resolves rafalbromirski#41] Added some mixin aliases for new iPhone …
Browse files Browse the repository at this point in the history
…models.
  • Loading branch information
Patrick Cate authored and Patrick Cate committed Sep 30, 2017
1 parent fbace73 commit 5155128
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions _media-queries.scss
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,11 @@
}
}

// --- iphone4s alias ----------------------------------------------------------
@mixin iphone4s($orientation: false) {
@include iphone4($orientation);
}

// --- iphone5 -----------------------------------------------------------------

@mixin iphone5($orientation: false) {
Expand All @@ -144,6 +149,21 @@
}
}

// --- iphone5s alias ----------------------------------------------------------
@mixin iphone5s($orientation: false) {
@include iphone5($orientation);
}

// --- iphone5c alias ----------------------------------------------------------
@mixin iphone5c($orientation: false) {
@include iphone5($orientation);
}

// --- iphoneSE alias ----------------------------------------------------------
@mixin iphoneSE($orientation: false) {
@include iphone5($orientation);
}

// --- iphone6 -----------------------------------------------------------------

@mixin iphone6($orientation: false) {
Expand All @@ -161,6 +181,21 @@
}
}

// --- iphone6s alias ----------------------------------------------------------
@mixin iphone6s($orientation: false) {
@include iphone6($orientation);
}

// --- iphone7 alias -----------------------------------------------------------
@mixin iphone7($orientation: false) {
@include iphone6($orientation);
}

// --- iphone8 alias -----------------------------------------------------------
@mixin iphone8($orientation: false) {
@include iphone6($orientation);
}

// --- iphone6 plus ------------------------------------------------------------

@mixin iphone6-plus($orientation: false) {
Expand All @@ -178,6 +213,21 @@
}
}

// --- iphone6s-plus alias -----------------------------------------------------
@mixin iphone6s-plus($orientation: false) {
@include iphone6-plus($orientation);
}

// --- iphone7-plus alias ------------------------------------------------------
@mixin iphone7-plus($orientation: false) {
@include iphone6-plus($orientation);
}

// --- iphone8-plus alias ------------------------------------------------------
@mixin iphone8-plus($orientation: false) {
@include iphone6-plus($orientation);
}

// --- ipad (all) --------------------------------------------------------------

@mixin ipad($orientation: false) {
Expand Down

0 comments on commit 5155128

Please sign in to comment.