Skip to content

Commit b6a7f78

Browse files
committed
Fix up styling
1 parent e011449 commit b6a7f78

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
# from the archive
3737
cp ./src/bin/cyoa/ghostwriter.html "$tweego_dir"/ghostwriter.html
3838
cp ./src/bin/cyoa/main.js "$tweego_dir"/main.js
39+
cp ./src/bin/cyoa/main.css "$tweego_dir"/main.css
3940
cd "$tweego_dir"
4041
curl -LO https://github.com/tmedwards/tweego/releases/download/v2.1.1/tweego-2.1.1-linux-x64.zip
4142
unzip ./tweego-2.1.1-linux-x64.zip
@@ -44,7 +45,7 @@ jobs:
4445
mkdir -p "$dist_dir"
4546
# the file lists a format (3.2+) that is newer than what tweego knows about, which makes it fail.
4647
# So here we reassure it it's ok to use what it knows as "harlowe 3" instead.
47-
./tweego --format=harlowe-3 ./ghostwriter.html ./main.js > "$dist_dir"/index.html
48+
./tweego --format=harlowe-3 ./ghostwriter.html ./main.js ./main.css > "$dist_dir"/index.html
4849
4950
- name: Upload pages artifact
5051
uses: actions/upload-pages-artifact@v3

src/bin/cyoa/main.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
body {
2+
background-color: black;
3+
}
4+
5+
tw-story {
6+
max-width: 900px;
7+
margin: auto;
8+
padding: 1em; /* override default styles */
9+
padding-top: 2em;
10+
}

0 commit comments

Comments
 (0)