Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrankov committed Sep 15, 2017
0 parents commit 2e76ca0
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea/
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# iPhone X Bar
### Available on any of your sites!

## Installation
```bash
npm install --save iphone-x-bar
```
```bash
import "iphone-x-bar";
```
30 changes: 30 additions & 0 deletions iphone-x-bar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@media screen and (orientation: landscape) {
body:after {
content: '';
position: fixed;
left: 0;
top: 0;
bottom: 0;
margin: auto 0;
z-index: 999999999999999999;
width: 3.76vw;
height: 54.34vh;
background: #000;
border-radius: 0 2vw 2vw 0;
}
}
@media screen and (orientation: portrait) {
body:after {
content: '';
position: fixed;
left: 0;
right: 0;
top: 0;
margin: 0 auto;
z-index: 999999999999999999;
width: 54.34vw;
height: 3.76vh;
background: #000;
border-radius: 0 0 2vw 2vw;
}
}
22 changes: 22 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "iphone-x-bar",
"version": "1.0.0",
"description": "Gorgeus iPhone X bar",
"main": "iphone-x-bar.css",
"author": {
"name": "Pavel Frankov",
"email": "[email protected]"
},
"license": "MIT",
"style": "greedo.css",
"keywords": [
"iphone",
"iphone x",
"bar",
"innovations",
"revolutionary"
],
"files": [
"iphone-x-bar.css"
]
}
11 changes: 11 additions & 0 deletions test-page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="./iphone-x-bar.css">
</head>
<body>

</body>
</html>

0 comments on commit 2e76ca0

Please sign in to comment.