Przeglądaj źródła

Docs: Clean up.

Mr.doob 6 lat temu
rodzic
commit
3fc814cdaa
3 zmienionych plików z 24 dodań i 21 usunięć
  1. 7 4
      docs/index.html
  2. 1 1
      docs/page.css
  3. 16 16
      files/main.css

+ 7 - 4
docs/index.html

@@ -122,7 +122,7 @@
 
 
 
 
 			// Functionality for search/filter input field
 			// Functionality for search/filter input field
- 			filterInput.onfocus = function ( event ) {
+			filterInput.onfocus = function ( event ) {
 
 
 				panel.classList.add('searchFocused');
 				panel.classList.add('searchFocused');
 
 
@@ -175,9 +175,12 @@
 					panel.classList.remove( 'open' );
 					panel.classList.remove( 'open' );
 
 
 
 
-					content.querySelectorAll('a').forEach((item) => {
-						item.classList.remove('selected');
-					});
+					content.querySelectorAll( 'a' ).forEach( function ( item ) {
+
+						item.classList.remove( 'selected' );
+
+					} );
+
 					link.classList.add('selected');
 					link.classList.add('selected');
 
 
 				} );
 				} );

+ 1 - 1
docs/page.css

@@ -112,7 +112,7 @@ br {
 }
 }
 
 
 table {
 table {
-  border-spacing: 24px 4px;
+	border-spacing: 24px 4px;
 }
 }
 table,
 table,
 table tr,
 table tr,

+ 16 - 16
files/main.css

@@ -63,9 +63,9 @@ h1 a {
 
 
 #header {
 #header {
 	display: flex;
 	display: flex;
-  height: 48px;
-  border-bottom: var(--border-style);
-  align-items: center;
+	height: 48px;
+	border-bottom: var(--border-style);
+	align-items: center;
 }
 }
 #header h1 {
 #header h1 {
 	margin-left: 15px;
 	margin-left: 15px;
@@ -165,20 +165,20 @@ h1 a {
 	}
 	}
 
 
 	#panel #language {
 	#panel #language {
-    font-family: 'Roboto Mono', monospace;
+		font-family: 'Roboto Mono', monospace;
 		position: absolute;
 		position: absolute;
-    top: 9px;
-    right: 8px;
-    border: 0px;
-    font-size: 14px;
+		top: 9px;
+		right: 8px;
+		border: 0px;
+		font-size: 14px;
 		font-weight: 500;
 		font-weight: 500;
-    background: url(ic_arrow_drop_down_black_24dp.svg) no-repeat;
-    background-position: right center;
-    background-color: white;
-    padding: 4px 24px 4px 8px;
-    -webkit-appearance: none;
-    -moz-appearance: none;
-    appearance: none;
+		background: url(ic_arrow_drop_down_black_24dp.svg) no-repeat;
+		background-position: right center;
+		background-color: white;
+		padding: 4px 24px 4px 8px;
+		-webkit-appearance: none;
+		-moz-appearance: none;
+		appearance: none;
 	}
 	}
 
 
 		#panel #language:focus {
 		#panel #language:focus {
@@ -187,7 +187,7 @@ h1 a {
 
 
 	#contentWrapper {
 	#contentWrapper {
 		flex: 1;
 		flex: 1;
-    overflow: hidden;
+		overflow: hidden;
 		display: flex;
 		display: flex;
 		flex-direction: column;
 		flex-direction: column;
 		transform: translate3d(0,0,0);
 		transform: translate3d(0,0,0);