Pārlūkot izejas kodu

docs: fix navigation panel responsivity

Jost Schmithals 8 gadi atpakaļ
vecāks
revīzija
406b476f6c
2 mainītis faili ar 15 papildinājumiem un 2 dzēšanām
  1. 12 1
      docs/index.css
  2. 3 1
      docs/index.html

+ 12 - 1
docs/index.css

@@ -167,7 +167,7 @@ iframe {
 		position: absolute;
 		position: absolute;
 		left: 0;
 		left: 0;
 		top: 0;
 		top: 0;
-		height: 480px;
+		height: 100%;
 		width: 100%;
 		width: 100%;
 		right: 0;
 		right: 0;
 		z-index: 100;
 		z-index: 100;
@@ -175,6 +175,17 @@ iframe {
 		border-bottom: 1px solid #dedede;
 		border-bottom: 1px solid #dedede;
 	}
 	}
 
 
+	#content{
+		position: absolute;
+		left: 0;
+		top: 90px;
+		right: 0;
+		bottom: 0;
+		font-size: 17px;
+		line-height: 22px;
+		overflow: auto;
+	}
+
 	#navigation{
 	#navigation{
 		position: absolute;
 		position: absolute;
 		left: 0;
 		left: 0;

+ 3 - 1
docs/index.html

@@ -22,6 +22,7 @@
 				<input type="text" id="filterInput" placeholder="Type to filter">
 				<input type="text" id="filterInput" placeholder="Type to filter">
 				<a href="#" id="clearFilterButton">x</a>
 				<a href="#" id="clearFilterButton">x</a>
 			</div>
 			</div>
+			<div id="content"></div>
 
 
 		</div>
 		</div>
 
 
@@ -32,6 +33,7 @@
 		<script>
 		<script>
 
 
 			var panel = document.getElementById( 'panel' );
 			var panel = document.getElementById( 'panel' );
+			var content = document.getElementById( 'content' );
 			var clearFilterButton = document.getElementById( 'clearFilterButton' );
 			var clearFilterButton = document.getElementById( 'clearFilterButton' );
 			var expandButton = document.getElementById( 'expandButton' );
 			var expandButton = document.getElementById( 'expandButton' );
 			var filterInput = document.getElementById( 'filterInput' );
 			var filterInput = document.getElementById( 'filterInput' );
@@ -98,7 +100,7 @@
 
 
 				// Create the navigation panel using data from list.js
 				// Create the navigation panel using data from list.js
 
 
-				var navigation = createAndAppendDOMElement( { type: 'div', parent: panel } );
+				var navigation = createAndAppendDOMElement( { type: 'div', parent: content } );
 
 
 				for ( var section in list ) {
 				for ( var section in list ) {