Skip to content

Commit

Permalink
fix: paddings in PDF and colors of window navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
kogakure committed Oct 2, 2022
1 parent adbb875 commit 2f0b58c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Shibui.iatemplate/Contents/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<key>CFBundleName</key>
<string>Shibui</string>
<key>CFBundleShortVersionString</key>
<string>1.0.1</string>
<string>1.0.2</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>IATemplateDocumentFile</key>
Expand Down
31 changes: 27 additions & 4 deletions Shibui.iatemplate/Contents/Resources/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ html {
scroll-behavior: smooth;
}

html.night-mode {
color: #c9d1d9;
}

html:not(.night-mode) {
color: #24292f;
}

*,
*:before,
*:after {
Expand All @@ -33,10 +41,15 @@ body {
font-family: var(--font-family-base);
font-weight: var(--font-weight-normal);
line-height: var(--line-height-2);
margin-inline: auto;
padding-inline-end: var(--horizontal-padding);
padding-inline-start: var(--horizontal-padding);
width: 88vw;
}

@media screen {
body {
background-color: var(--color-bg);
color: var(--color-fg);
}
}

@supports (padding: constant(safe-area-inset-left)) and
Expand Down Expand Up @@ -65,8 +78,8 @@ body {

@media screen {
body {
background-color: var(--color-bg);
color: var(--color-fg);
margin-inline: auto;
width: 88vw;
}
}

Expand Down Expand Up @@ -278,6 +291,16 @@ pre {
white-space: pre;
}

@media print {
body {
--horizontal-padding: 75px;
}

body pre code {
white-space: pre-wrap;
}
}

p code,
li code,
samp {
Expand Down

0 comments on commit 2f0b58c

Please sign in to comment.