Skip to content

Commit

Permalink
constant(safe-area-inset-top) on header
Browse files Browse the repository at this point in the history
  • Loading branch information
wodydoc committed Jul 11, 2023
1 parent 51ce50c commit 30ce16c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ body {
}

body {
padding: env(safe-area-inset-top, 20px) env(safe-area-inset-right, 20px)
env(safe-area-inset-bottom, 20px) env(safe-area-inset-left, 20px);
padding-top: constant(safe-area-inset-top);
padding-top: env(safe-area-inset-top);
padding-bottom: constant(safe-area-inset-bottom);
padding-bottom: env(safe-area-inset-bottom);
}

/*=============== VARIABLES CSS ===============*/
Expand Down Expand Up @@ -168,7 +170,7 @@ input:valid {

body {
margin: var(--header-height) 0 0 0;
background-color: var(--body-color);
background-color: var(--body-color) !important;
background-attachment: var(--background-attachment);
color: var(--text-color);
transition: 0.4s; /*For animation dark mode*/
Expand Down Expand Up @@ -322,6 +324,11 @@ the website, in dark theme
transition: 0.4s; /*For animation dark mode*/
}

.header {
padding-top: constant(safe-area-inset-top);
padding-top: env(safe-area-inset-top);
}

/*=============== NAV ===============*/
.nav {
height: calc(var(--header-height) + 0.5rem);
Expand Down

0 comments on commit 30ce16c

Please sign in to comment.