Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
breck7 committed Dec 1, 2024
1 parent 631eb23 commit a7abc73
Showing 14 changed files with 158 additions and 21 deletions.
16 changes: 10 additions & 6 deletions external/gazette.css
Original file line number Diff line number Diff line change
@@ -69,12 +69,12 @@ figure {
float: left;
}

.dinkus {
.abstractDinkusParser {
text-align: center;
padding: 1rem;
}

.dinkus span {
.abstractDinkusParser span {
vertical-align: sub;
}

@@ -313,7 +313,7 @@ h4 {
font-size: 1rem;
}

h1.scrollTitle {
h1.printTitleParser {
text-align: center;
margin: auto;
margin-bottom: 0.15625rem;
@@ -322,11 +322,15 @@ h1.scrollTitle {
max-width: calc(100vw - 2 * (1.5625rem + 1.875rem));
}

h1.scrollTitle a {
h1.printTitleParser a {
color: var(--scrollColorText);
}

.scrollDateline {
.printDateParser {
text-align: center;
}
.scrollDateline,
.printDateParser {
font-style: italic;
line-height: 1.4rem;
font-size: 0.75rem;
@@ -435,7 +439,7 @@ h4.scrollQuestion {
white-space: unset;
}

.scrollByLine {
.printAuthorsParser {
font-size: 0.875rem;
font-style: italic;
margin: 0.25rem 0;
111 changes: 111 additions & 0 deletions external/prestige.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
:root {
/* Base Colors */
--scrollTextBase: 51, 51, 51; /* Based on #333333 */
--scrollSurfaceRgb: 204, 204, 204; /* Based on #cccccc */
--scrollLinkBase: 0, 0, 0; /* Based on #000000 for links */

/* Semantic Colors */
--scrollColorBackground: rgb(250, 250, 250); /* #fafafa */
--scrollColorText: rgba(var(--scrollTextBase), 1);
--scrollColorLink: rgb(var(--scrollLinkBase), 1);
--scrollColorSubdued: rgb(102, 102, 102); /* #666666 */

/* Typography */
--scrollFontPrimary: "Georgia", "Times New Roman", serif;
--scrollFontUi: "Baskerville", "Times New Roman", serif;
--scrollFontMono: monospace;
--scrollBaseFontSize: 17.6px; /* Equivalent to 1.1rem from paragraphs */
}

/* General Styles */
body {
font-family: var(--scrollFontPrimary);
background-color: var(--scrollColorBackground);
color: var(--scrollColorText);
line-height: 1.8;
margin: 0;
padding: 2rem;
}

/* Title Styling */
h1 {
font-family: var(--scrollFontUi);
font-size: 2.5rem;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.1em;
color: var(--scrollColorLink);
margin-bottom: 1rem;
}

/* Subtitle Styling */
h2,
.printDateParser,
.printAuthorsParser {
font-size: 1.25rem;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.08em;
color: #555555;
margin-bottom: 1rem;
}

.printAuthorsParser {
font-weight: bold;
}

.printTitleParser a {
text-decoration: none;
color: var(--scrollColorLink);
}

a {
color: var(--scrollColorLink);
text-decoration-color: transparent;
}
a:hover {
text-decoration-color: unset;
}

/* Drop Cap Styling */
.dropcap::first-letter {
font-family: var(--scrollFontPrimary);
font-size: 4rem;
float: left;
line-height: 0.8;
margin-right: 0.5rem;
margin-top: 0.2rem;
font-weight: bold;
color: var(--scrollColorLink);
}

/* Paragraph Styling */
p {
font-size: var(--scrollBaseFontSize);
text-align: justify;
margin-bottom: 1.5rem;
}

/* Blockquote Styling */
blockquote {
font-style: italic;
color: var(--scrollColorSubdued);
border-left: 4px solid rgba(var(--scrollSurfaceRgb), 1);
padding-left: 1rem;
margin: 1.5rem 0;
}

/* Additional Fine-Tuning */
h1,
h2 {
margin-top: 0;
}

.abstractDinkusParser {
text-align: center;
padding: 1rem;
}

.abstractDinkusParser span {
vertical-align: sub;
}
6 changes: 3 additions & 3 deletions external/slideshow.js
Original file line number Diff line number Diff line change
@@ -10,17 +10,17 @@ class SlideShow {

renderSlide() {
jQuery(this.slides[this.page - 1]).show()
jQuery(".dinkus").hide()
jQuery(".abstractDinkusParser").hide()
}

hideAll() {
jQuery("div,p,figure,code,pre").hide()
}

get slides() {
return jQuery(".dinkus")
return jQuery(".abstractDinkusParser")
.map(function () {
return jQuery(this).prevUntil(".dinkus").addBack().prev()
return jQuery(this).prevUntil(".abstractDinkusParser").addBack().prev()
})
.get()
.slice(1)
6 changes: 3 additions & 3 deletions external/tufte.css
Original file line number Diff line number Diff line change
@@ -9,11 +9,11 @@ figure {
display: block;
float: left;
}
.dinkus {
.abstractDinkusParser {
text-align: center;
padding: 1rem;
}
.dinkus span {
.abstractDinkusParser span {
vertical-align: sub;
}
details {
@@ -119,7 +119,7 @@ h1 {
font-size: 2.4rem;
line-height: 1;
}
.scrollTitle a {
.printTitleParser a {
text-decoration: none;
font-size: 3.2rem;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@
"image-size": "^1.0.2",
"lodash": "^4.17.21",
"minimist": "^1.2.5",
"scrollsdk": "^99.0.0"
"scrollsdk": "^99.1.0"
},
"devDependencies": {
"prettier": "^2.8.8",
2 changes: 1 addition & 1 deletion parsers/author.parsers
Original file line number Diff line number Diff line change
@@ -48,4 +48,4 @@ authorsParser
buildTxt() {
return ""
}
defaultClassName = "scrollByLine"
defaultClassName = "printAuthorsParser"
5 changes: 3 additions & 2 deletions parsers/date.parsers
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dateParser
scrollDateParser
cue date
popularity 0.006680
catchAllAtomType dateAtom
description Set published date.
@@ -36,7 +37,7 @@ printDateParser
boolean isPopular true
javascript
buildHtml() {
return `<div style="text-align: center;" class="scrollDateline">${this.day}</div>`
return `<div class="printDateParser">${this.day}</div>`
}
get day() {
let day = this.content || this.root.date
2 changes: 1 addition & 1 deletion parsers/dinkus.parsers
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ abstractDinkusParser
buildHtml() {
return `<div class="${this.defaultClass}"><span>${this.dinkus}</span></div>`
}
defaultClass = "dinkus"
defaultClass = "abstractDinkusParser"
buildTxt() {
return this.dinkus
}
2 changes: 1 addition & 1 deletion parsers/text.parsers
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ printFormatLinksParser
buildHtml() {
const permalink = this.root.permalink.replace(".html", "")
// hacky
const particle = this.appendSibling(`HTML | TXT`, `class scrollDateline\nlink ${permalink}.html HTML\nlink ${permalink}.txt TXT\nstyle text-align:center;`)
const particle = this.appendSibling(`HTML | TXT`, `class printDateParser\nlink ${permalink}.html HTML\nlink ${permalink}.txt TXT\nstyle text-align:center;`)
const html = particle.buildHtml()
particle.destroy()
return html
2 changes: 1 addition & 1 deletion parsers/theme.parsers
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
scrollThemeAtom
enum roboto gazette dark tufte
enum roboto gazette dark tufte prestige
paint constant

scrollThemeParser
2 changes: 1 addition & 1 deletion parsers/title.parsers
Original file line number Diff line number Diff line change
@@ -48,5 +48,5 @@ printTitleParser
get originalText() {
return this.content ?? this.root.title ?? ""
}
defaultClassName = "scrollTitle"
defaultClassName = "printTitleParser"
tag = "h1"
2 changes: 1 addition & 1 deletion readme.scroll
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ header.scroll

# Scroll is a language for scientists of all ages
style font-weight: 300; font-size: 200%;
class scrollTitle
class printTitleParser

## Publish and evolve your most intelligent ideas
style font-weight: 300;
10 changes: 10 additions & 0 deletions releaseNotes.scroll
Original file line number Diff line number Diff line change
@@ -22,6 +22,16 @@ ciBadges.scroll
br
thinColumns

๐Ÿ“ฆ 161.0.0 12/01/2024
๐ŸŽ‰ added new theme `prestige`
๐ŸŽ‰ upgrade ScrollSDK
๐ŸŽ‰ scroll theme cleanup:
โš ๏ธ BREAKING: .dinkus is now .abstractDinkusParser
โš ๏ธ BREAKING: .scrollTitle is now .printTitleParser
โš ๏ธ BREAKING: .scrollByLine is now .printAuthorsParser
โš ๏ธ BREAKING: .scrollDateline is now .printDateParser
โš ๏ธ BREAKING: dateParser is now scrollDateParser

๐Ÿ“ฆ 160.0.0 11/30/2024
๐ŸŽ‰ upgrade ScrollSDK

11 changes: 11 additions & 0 deletions tests/prestige.scroll
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
buildHtml
theme prestige
container 600px
## Julius Caesar
printTitle
loremIpsum
***
loremIpsum
***
loremIpsum
****

0 comments on commit a7abc73

Please sign in to comment.