Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
breck7 committed May 7, 2023
1 parent e95d81f commit 6e040f3
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 70 deletions.
28 changes: 0 additions & 28 deletions grammar/gazetteTheme.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -112,35 +112,7 @@ gazetteCssParser
cursor default

.scrollCodeBlock
overflow auto
font-size 80%
hyphens none
white-space pre
border-left .5em solid rgba(204,204,204,.8)
break-inside avoid
display block
margin .5em 0
padding .5em
border-radius 0
position relative
.scrollCodeBlock:hover
.scrollCopyButton
opacity .5
.scrollCopyButton:hover
opacity .8
.scrollCopyButton:active
opacity 1
.scrollCopyButton
position absolute
top 2px
right 2px
font-size 14px
cursor pointer
opacity 0
.scrollCopyButton::after
content "[ ]"
.scrollCopiedButton::after
content "[✓]"

.scrollTable
table-layout fixed
Expand Down
32 changes: 32 additions & 0 deletions grammar/theme.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ abstractThemeCssParser
cruxFromId
catchAllCellType stringCell
string scrollStyles
figure
margin 0
padding 0
.scrollCaptionedFigure
display block
text-align center
Expand All @@ -17,6 +20,35 @@ abstractThemeCssParser
height auto
figcaption
font-style italic
.scrollCodeBlock
overflow auto
font-size 80%
hyphens none
white-space pre
break-inside avoid
display block
margin .5em 0
padding .5em
border-radius 0
position relative
.scrollCodeBlock:hover
.scrollCopyButton
opacity .5
.scrollCopyButton:hover
opacity .8
.scrollCopyButton:active
opacity 1
.scrollCopyButton
position absolute
top 2px
right 2px
font-size 14px
cursor pointer
opacity 0
.scrollCopyButton::after
content "[ ]"
.scrollCopiedButton::after
content "[✓]"
javascript
get useTags() {
return !(this.get("tags") === "false")
Expand Down
42 changes: 0 additions & 42 deletions grammar/tufteTheme.grammar
Original file line number Diff line number Diff line change
Expand Up @@ -130,46 +130,11 @@ tufteCssParser
}
dt:not(:first-child), li:not(:first-child) {
margin-top: 0.25rem;
}
figure {
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
max-width: 55%;
-webkit-margin-start: 0;
-webkit-margin-end: 0;
margin: 0 0 3em 0;
}
figcaption {
float: right;
clear: right;
margin-top: 0;
margin-bottom: 0;
font-size: 1.1rem;
line-height: 1.6;
vertical-align: baseline;
position: relative;
max-width: 40%;
}
figure.fullwidth figcaption {
margin-right: 24%;
}
/* Links: replicate underline that clears descenders */
a:link, a:visited {
color: inherit;
}
/* Adds dark mode */
@media (prefers-color-scheme: dark) {
a:link, .tufte-underline, .hover-tufte-underline:hover {
text-shadow: 0.03em 0 #151515, -0.03em 0 #151515, 0 0.03em #151515, 0 -0.03em #151515, 0.06em 0 #151515, -0.06em 0 #151515, 0.09em 0 #151515, -0.09em 0 #151515, 0.12em 0 #151515, -0.12em 0 #151515, 0.15em 0 #151515, -0.15em 0 #151515;
}
}
a:link::selection, a:link::-moz-selection {
text-shadow: 0.03em 0 #b4d5fe, -0.03em 0 #b4d5fe, 0 0.03em #b4d5fe, 0 -0.03em #b4d5fe, 0.06em 0 #b4d5fe, -0.06em 0 #b4d5fe, 0.09em 0 #b4d5fe, -0.09em 0 #b4d5fe, 0.12em 0 #b4d5fe, -0.12em 0 #b4d5fe, 0.15em 0 #b4d5fe, -0.15em 0 #b4d5fe;
background: #b4d5fe;
}
/* Sidenotes, margin notes, figures, captions */
img {
max-width: 100%;
Expand Down Expand Up @@ -294,13 +259,6 @@ tufteCssParser
}
section > dl, section > ol, section > ul {
width: 90%;
}
figure {
max-width: 90%;
}
figcaption, figure.fullwidth figcaption {
margin-right: 0%;
max-width: none;
}
blockquote {
margin-left: 1.5em;
Expand Down

0 comments on commit 6e040f3

Please sign in to comment.