Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sano-jin committed Jul 13, 2024
1 parent 69360ba commit 3ed44e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/assets/prooftree.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
console.log("ProofTree v0.0.1");
const f = "bussproofs-html__", B = `div.${f}proof-tree{max-width:100%;margin:20px auto}div.${f}sequent{width:auto;text-align:center}div.${f}premises{width:auto;display:flex;flex-direction:row;gap:20px;align-items:flex-end}div.${f}horizontal-rule{width:100%;border-bottom:1.3px solid;position:relative}div.${f}horizontal-rule>.${f}right-label{position:absolute;height:auto;top:-50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}`, X = (t = null) => {
const f = "bussproofs-html__", B = `div.${f}proof-tree{margin:20px auto}div.${f}sequent{width:auto;text-align:center}div.${f}premises{width:auto;display:flex;flex-direction:row;gap:20px;align-items:flex-end}div.${f}horizontal-rule{width:100%;border-bottom:1.3px solid;position:relative}div.${f}horizontal-rule>.${f}right-label{position:absolute;height:auto;top:-50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}`, X = (t = null) => {
console.log(`renderProofTreesOnLoad(${t})`), document.addEventListener("DOMContentLoaded", () => {
$(t);
});
Expand Down
2 changes: 1 addition & 1 deletion proof-tree/src/lib/prooftree/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
console.log("ProofTree v0.0.1");

const BH = "bussproofs-html__";
const style = `div.${BH}proof-tree{max-width:100%;margin:20px auto}div.${BH}sequent{width:auto;text-align:center}div.${BH}premises{width:auto;display:flex;flex-direction:row;gap:20px;align-items:flex-end}div.${BH}horizontal-rule{width:100%;border-bottom:1.3px solid;position:relative}div.${BH}horizontal-rule>.${BH}right-label{position:absolute;height:auto;top:-50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}`;
const style = `div.${BH}proof-tree{margin:20px auto}div.${BH}sequent{width:auto;text-align:center}div.${BH}premises{width:auto;display:flex;flex-direction:row;gap:20px;align-items:flex-end}div.${BH}horizontal-rule{width:100%;border-bottom:1.3px solid;position:relative}div.${BH}horizontal-rule>.${BH}right-label{position:absolute;height:auto;top:-50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%)}`;

export const renderProofTreesOnLoad = (styleOnLoad: null | number = null) => {
console.log(`renderProofTreesOnLoad(${styleOnLoad})`);
Expand Down
1 change: 0 additions & 1 deletion proof-tree/src/lib/prooftree/style.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
div.bussproofs-html__proof-tree {
/* max-width: 100%; */
margin: 20px auto;
}

Expand Down

0 comments on commit 3ed44e2

Please sign in to comment.