Skip to content

Commit 7693c53

Browse files
author
ben182
authored
Merge pull request #55 from pwespi/pixel
Add Pixel device
2 parents 63390ba + d58514d commit 7693c53

File tree

6 files changed

+39
-2
lines changed

6 files changed

+39
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Devices
6363
| Macbook | Macbook | portrait | black, white, gold |
6464
| Macbook 2015 | Macbook2015 | portrait | black, white, gold |
6565
| MacbookPro | Macbook2015 | portrait | black |
66+
| Pixel | Pixel | portrait | black, white |
6667
| Samsung TV | SamsungTV | portrait | black |
6768
| Surface Pro 3 | SurfacePro3 | landscape | black |
6869
| Surface Studio | SurfaceStudio | portrait | black |
12.6 KB
Loading
10.8 KB
Loading

dist/device-mockups.css

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* html5-device-mockups (https://github.com/pixelsign/html5-device-mockups)
33
* Copyright 2013 - 2017 pixelsign
44
* Licensed under MIT (https://github.com/pixelsign/html5-device-mockups/blob/master/LICENSE.txt)
5-
* Last Build: Wed Sep 20 2017 11:51:58
5+
* Last Build: Thu Sep 21 2017 21:24:45
66
*/
77
.device-wrapper {
88
max-width: 300px;
@@ -1434,3 +1434,35 @@
14341434
width: 7.728706624605679%;
14351435
height: 15.605095541401273%;
14361436
}
1437+
.device[data-device="Pixel"][data-orientation="portrait"][data-color="white"] {
1438+
padding-bottom: 202.62008733624458%;
1439+
background-image: url("../device-mockups/Pixel/portrait_white.png");
1440+
}
1441+
.device[data-device="Pixel"][data-orientation="portrait"][data-color="white"] .screen {
1442+
top: 9.698275862068966%;
1443+
left: 4.366812227074235%;
1444+
width: 90.39301310043668%;
1445+
height: 78.66379310344827%;
1446+
}
1447+
.device[data-device="Pixel"][data-orientation="portrait"][data-color="white"] .button {
1448+
top: 90.51724137931035%;
1449+
left: 44.97816593886463%;
1450+
width: 11.353711790393014%;
1451+
height: 4.310344827586207%;
1452+
}
1453+
.device[data-device="Pixel"][data-orientation="portrait"][data-color="black"] {
1454+
padding-bottom: 202.62008733624458%;
1455+
background-image: url("../device-mockups/Pixel/portrait_black.png");
1456+
}
1457+
.device[data-device="Pixel"][data-orientation="portrait"][data-color="black"] .screen {
1458+
top: 9.698275862068966%;
1459+
left: 4.366812227074235%;
1460+
width: 90.39301310043668%;
1461+
height: 78.66379310344827%;
1462+
}
1463+
.device[data-device="Pixel"][data-orientation="portrait"][data-color="black"] .button {
1464+
top: 90.51724137931035%;
1465+
left: 44.97816593886463%;
1466+
width: 11.353711790393014%;
1467+
height: 4.310344827586207%;
1468+
}

dist/device-mockups.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/devices.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,8 @@
122122
iPhone7 landscape gold 1767 870 56 211 54 212 365 48 368 1582,
123123
iPhone7 landscape pink 1767 870 56 211 54 212 365 48 368 1582,
124124
iPhone7 landscape red 634 314 27 79 21 76 132 16 133 569,
125+
126+
Pixel portrait white 229 464 45 12 54 10 420 100 24 103,
127+
Pixel portrait black 229 464 45 12 54 10 420 100 24 103,
128+
125129
;

0 commit comments

Comments
 (0)