fix entry btns overflow
This commit is contained in:
parent
0de94435e1
commit
cf7cfe0f44
3 changed files with 6 additions and 8 deletions
|
|
@ -54,6 +54,7 @@
|
|||
/* ================= ENTRY BTNS ================= */
|
||||
#entry-btns {
|
||||
position: sticky;
|
||||
position: -webkit-sticky;
|
||||
top: calc(var(--unit--vertical) * 3);
|
||||
height: 20svh;
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
html {
|
||||
overflow-x: hidden;
|
||||
}
|
||||
|
||||
body {
|
||||
position: relative;
|
||||
margin: 0;
|
||||
width: 100vw;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
background-color: var(--color-background);
|
||||
color: var(--color-primary);
|
||||
overflow-x: clip; /* clip is the only value that works on Safari mobile */
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 0 var(--unit--horizontal);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ $entryTopPos = $entryTopPos ?? 20;
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= $site->title() ?><?= e($page->url() !== $site->url(), '-' . $page->title()) ?></title>
|
||||
<link rel="stylesheet" href="<?= url('assets/css/style.css') . '?version-cache-prevent' . rand(0, 1000) ?>" />
|
||||
<script src="<?= url('assets') ?>/js/script.js?version-cache-prevent<?= rand(0, 1000)?>" defer></script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue