-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
91 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,20 @@ | ||
Docs | ||
<html> | ||
<head> | ||
<script type="text/javascript" src="main.js"> </script> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
</head> | ||
<body> | ||
<div class="usage"> | ||
|
||
</div> | ||
<div class="variables"> | ||
<div class="flex-table"> | ||
<div class="table-row table-header"> | ||
<div class="table-row-item">Variabke</div> | ||
<div class="table-row-item">Applicable for</div> | ||
<div class="table-row-item">Description</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function addTablerow(contents) { | ||
let table = document.getElementsByClass("flex-table")[0]; | ||
let row = document.createElement('div'); | ||
row.className = "table-row"; | ||
for(let i = 0; i < contents.length; i++) { | ||
let dom = document.createElement('div'); | ||
dom.className = "table-row-item"; | ||
dom.innerHTML = contents[i]; | ||
row.appendChild(dom); | ||
} | ||
table.appendChild(row); | ||
} | ||
|
||
addTablerow("hi","he","hu") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
.flex-table :not(.table-header) .table-row-item:not(.empty):hover:after { | ||
position: absolute; | ||
background: rgb(30,30,30); | ||
padding: 2px 10px; | ||
color: white; | ||
text-align: center; | ||
max-width: 200px; | ||
margin-top: 24px; | ||
border-radius: 4px; | ||
pointer-events: none; | ||
} | ||
|
||
.flex-table { | ||
display: flex; | ||
justify-content: space-between; | ||
flex-flow: column nowrap; | ||
font-weight: 100; | ||
border: 1px solid black; | ||
margin: 0 10px; | ||
border-radius: 2px; | ||
} | ||
|
||
.table-row { | ||
display: flex; | ||
background-color: #f1f1f1; | ||
padding: 10px; | ||
} | ||
|
||
.table-header { | ||
background: rgba(0,0,0, .07); | ||
border-bottom: 1px solid black; | ||
} | ||
|
||
.table-row-item { | ||
display: flex; | ||
flex-flow: row nowrap; | ||
flex-grow: 1; | ||
flex-basis: 0; | ||
justify-content: center; | ||
text-align: center; | ||
margin: auto; | ||
font-weight: 500; | ||
word-break: break-word; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters