Skip to content

Commit

Permalink
Add viewport-fit and env paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Makeev committed Jul 6, 2021
1 parent 9cd5fd6 commit ae71736
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<title>Ribbon theme for Shower</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<link rel="stylesheet" href="styles/styles.css">
<style>
.shower {
Expand Down
15 changes: 13 additions & 2 deletions styles/shower/shower-list.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
/* Shower List */

.shower.list {
padding: calc(
var(--slide-gap) * var(--slide-scale)
--shower-list-block: calc(
var(--slide-gap) *
var(--slide-scale)
);
--shower-list-inline: calc(
var(--slide-gap) *
var(--slide-scale) +
env(safe-area-inset-left)
);

padding:
var(--shower-list-block)
var(--shower-list-inline);

box-sizing: border-box;
width: 100%;
display: grid;
Expand Down

0 comments on commit ae71736

Please sign in to comment.