Make sure scrollbars don't show up on demo and tool pages

This commit is contained in:
Patrick Walton 2017-09-15 09:40:26 -07:00
parent 445d00fed3
commit 375dbe7ab9
6 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,6 @@
body.pf-unscrollable {
overflow: hidden;
}
nav {
-moz-user-select: none;
user-select: none;

View File

@ -6,7 +6,7 @@
{{>partials/header.html}}
<script type="text/javascript" src="/js/pathfinder/3d-demo.js"></script>
</head>
<body>
<body class="pf-unscrollable">
{{>partials/navbar.html isDemo=true}}
<canvas id="pf-canvas" width="400" height="300"></canvas>
<div class="fixed-bottom mb-3 d-flex justify-content-between align-items-end pf-pointer-events-none">

View File

@ -6,7 +6,7 @@
{{>partials/header.html}}
<script type="text/javascript" src="/js/pathfinder/benchmark.js"></script>
</head>
<body>
<body class="pf-unscrollable">
{{>partials/navbar.html isTool=true}}
<canvas id="pf-canvas" class="pf-draggable" width="400" height="300"></canvas>
<div id="pf-nonoverlapping-bottom-bar"

View File

@ -6,7 +6,7 @@
{{>partials/header.html}}
<script type="text/javascript" src="/js/pathfinder/mesh-debugger.js"></script>
</head>
<body>
<body class="pf-unscrollable">
{{>partials/navbar.html isTool=true}}
<canvas id="pf-canvas" width="400" height="300"></canvas>
</body>

View File

@ -6,7 +6,7 @@
{{>partials/header.html}}
<script type="text/javascript" src="/js/pathfinder/svg-demo.js"></script>
</head>
<body>
<body class="pf-unscrollable">
{{>partials/navbar.html isDemo=true}}
<canvas id="pf-canvas" class="pf-draggable" width="400" height="300"></canvas>
<svg id="pf-svg" xmlns="http://www.w3.org/2000/svg" width="400" height="300"></svg>

View File

@ -6,7 +6,7 @@
{{>partials/header.html}}
<script type="text/javascript" src="/js/pathfinder/text-demo.js"></script>
</head>
<body>
<body class="pf-unscrollable">
{{>partials/navbar.html isDemo=true}}
<canvas id="pf-canvas" class="pf-draggable" width="400" height="300"></canvas>
<div class="fixed-bottom mb-3 d-flex justify-content-between align-items-end pf-pointer-events-none">