forked from pfrankov/iphone-x-notch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2e76ca0
Showing
5 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.idea/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |