Skip to content

Commit

Permalink
Ensure that stylesheets do not confuse fonts in notebooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanrobie committed Jan 15, 2018
1 parent 2c0d94f commit 146abd9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
2 changes: 2 additions & 0 deletions labnotes/greeksyntax/boxwood.css
@@ -1,3 +1,5 @@
/* boxwood.css */

wg[class=cl] {
/*
The nub of the spacing problem:
Expand Down
25 changes: 8 additions & 17 deletions labnotes/greeksyntax/treedown.css
Expand Up @@ -13,24 +13,15 @@ milestone {
color: blue;
font-size: large;
display: inline;
padding-right: 6px;
}

p {
font-size: large;
display: inline;
margin-top: 1em;
margin-bottom: 1em;
}

pc {
font-size: x-large;
font-weight: bold;
display: inline;
}

pc::before {
}

div[class=book] {
margin-top: 1in;
margin-left: 1in;
Expand All @@ -52,16 +43,16 @@ book, passage,root {
/* WGs */

wg[class=sentence] {
}
}

wg[class=sentence] wg[class=cl]::before {
content: "";
}

wg[class=cl] {
/*
The nub of the spacing problem:
/*
The nub of the spacing problem:
You really want spacing down to the last role before a word.
After that, you really don't want it. Is there some way to
have it both ways with .css?
Expand All @@ -76,7 +67,7 @@ wg[class=cl] {
*[role] ~ *::before {
color: cadetblue;
content: "+";
size: small;
size: small;
}

wg[role]::before {
Expand All @@ -91,7 +82,7 @@ wg[role] {
display: block;
padding-left: 1em;
}

/* Words */

w[role=v][mood=participle]::before {
Expand Down Expand Up @@ -122,7 +113,7 @@ w[discontinuous]::after {
/* If you indent this, indent wg[role] and w[case=vocative] by the same amount. */
w[role] {
position: relative;
display: block;
display: block;
padding-left: 1em;
}

Expand Down

0 comments on commit 146abd9

Please sign in to comment.