Skip to content

Commit

Permalink
Docs: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Don McCurdy committed Apr 6, 2020
1 parent 84945e8 commit 2b725f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 1 addition & 3 deletions docs/page.css
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ strong {
position: relative;
}

/* TODO: Duplicate styles in main.css. Needed here because page is inside the iframe */
/* Duplicates styles in main.css. Needed here because page is inside the iframe */
.import-wrap select {
position: absolute;
right: -22px;
Expand Down Expand Up @@ -239,9 +239,7 @@ strong {
@media (prefers-color-scheme: dark) {

.import-wrap select {

background-color: #333333;

}

}
Expand Down
3 changes: 2 additions & 1 deletion docs/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,12 @@ function onDocumentLoad( event ) {

importSelect.addEventListener( 'change', function () {

var importBlocks = document.querySelectorAll( '.import-wrap [data-import]');
var importBlocks = document.querySelectorAll( '.import-wrap [data-import]' );

for ( var i = 0; i < importBlocks.length; i ++ ) {

var block = importBlocks[ i ];

block.style.display = block.getAttribute( 'data-import' ) === importSelect.value ? '' : 'none';

}
Expand Down

0 comments on commit 2b725f5

Please sign in to comment.