Skip to content

Commit

Permalink
refactor: update file format supported and update UI styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Kremilly committed Jun 6, 2024
1 parent 1bddaa4 commit da18055
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ Cargo.lock
credentials.json

# Ignore .pd files
*.pd
*.mon
*.pbd
*.sha256

# Ignore compress files
Expand Down
2 changes: 1 addition & 1 deletion scibun.pbd → scibun.mon
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
path = "downloads/"
open = "https://github.com/kremilly"

readme = "https://gist.githubusercontent.com/kremilly/5fd360d994bb0fe108b648d0e4c9e92f/raw/508b038adb977440cc3722b04f9a5fc1ebfcdcb0/readme-examples.md"
readme = "https://gist.githubusercontent.com/Kremilly/5fd360d994bb0fe108b648d0e4c9e92f/raw/ac524eba2112bf0bdbac1ad27e24f78f678589ec/readme-example.md"
checksum = "https://gist.githubusercontent.com/kremilly/499d6d51d096c1813cea0eade8eb0bc4/raw/d7c5965aeaf005cf0b612e3468ab47c30480083b/scibun.sha256"
checksum.unmatch = "keep"

Expand Down
2 changes: 1 addition & 1 deletion src/utils/validation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Validate {
);
}

Self::file_type(file, ".pbd")?;
Self::file_type(file, ".mon")?;
Ok(())
}

Expand Down
42 changes: 23 additions & 19 deletions static/css/base.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
:root {
--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Open Sans", "Apple Color Emoji", "Segoe UI Emoji";
--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
--color-text: #abb2bf;
--color-bg: #282c34;
--color-link: #61afef;
--color-link-hover: #528bff;
--color-border: #3e4451;
--color-muted: #5c6370;
--color-quote: #5c6370;
--color-pre-bg: #21252b;
--color-important-bg: #e5c07b; /* Amber for important */
--color-note-bg: #98c379; /* Green for note */
--color-warning-bg: #e06c75; /* Red for warning */
--color-text: #dcdcdc;
--color-bg: #1e1e1e;
--color-link: #6fc3df;
--color-link-hover: #8cd6ff;
--color-border: #333333;
--color-muted: #808080;
--color-quote: #606060;
--color-pre-bg: #292929;
--color-pre-fg: #dcdcdc;
--spacing-sm: 8px;
--spacing-md: 16px;
--spacing-lg: 24px;
--spacing-xl: 45px;
--min-width-size: 200px;
--max-width-size: 1100px;
--header-size: 2.5em;
--max-width-size: 1200px;
--header-size: 3em;
--border-radius: 6px;
--box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
}

* {
Expand All @@ -28,11 +28,11 @@
}

body {
font-family: var(--font-body);
line-height: 1.6;
color: var(--color-text);
background-color: var(--color-bg);
padding: var(--spacing-xl);
font-family: var(--font-body);
background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
Expand Down Expand Up @@ -167,11 +167,15 @@ img {
/* Additional styles for GitHub-specific elements */

.markdown-body {
margin: 1.5em auto;
margin: auto;
width: 900px;
margin-top: 80px;
box-sizing: border-box;
padding: var(--spacing-xl);
min-width: var(--min-width-size);
max-width: var(--max-width-size);
padding: var(--spacing-md);
background: var(--color-bg);
box-shadow: var(--box-shadow);
border-radius: var(--border-radius);
border: .1em solid var(--color-border);
}

.markdown-body blockquote {
Expand Down
2 changes: 1 addition & 1 deletion static/css/plugins-ui.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
height: 3em;
display: block;
cursor: pointer;
font-size: .9em;
font-size: .8em;
list-style: none;
line-height: 3em;
border-radius: 3px;
Expand Down

0 comments on commit da18055

Please sign in to comment.