Skip to content

Commit

Permalink
Head ex (google#1658)
Browse files Browse the repository at this point in the history
* remove header frome examples on main page

* added extra scroll to attributes

* remove comment
  • Loading branch information
chrismgeorge authored Oct 21, 2020
1 parent 8ba44a4 commit fab92c9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
8 changes: 8 additions & 0 deletions packages/modelviewer.dev/docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@
<script type="module">
(() => { init('docs'); })();
</script>
<script>
function addMargin() {
if (window.location.hash.indexOf('-') !== -1) {
window.scrollBy(0, - 75);
}
}
window.addEventListener('hashchange', addMargin);
</script>

</body>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,6 @@ <h4></h4>
</div>
</div>
</div>
</div>

<div class="footer">
<ul>
Expand Down
4 changes: 0 additions & 4 deletions packages/modelviewer.dev/styles/docs.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
html {
scroll-padding-top: 75px;
}

.inner-content {
padding: 10px 40px;
}
Expand Down
9 changes: 3 additions & 6 deletions packages/modelviewer.dev/styles/examples.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
white-space: nowrap;
font-size: .8em;
z-index: 1008;
visibility: hidden;
}

.tab {
Expand Down Expand Up @@ -382,13 +383,8 @@ model-viewer:focus {
box-sizing: border-box;
}

.examples-container > .sample > #demo-container-1 {
padding-top: 75px;
}

.examples-container > .sample > .demo {
top: 75px;
height: 90vh;
height: 100vh;
}

.demo-title {
Expand Down Expand Up @@ -760,6 +756,7 @@ paper-button {

.exampleHeader {
margin-left: 0;
visibility: visible;
}

.background-demo {
Expand Down

0 comments on commit fab92c9

Please sign in to comment.