Skip to content

Commit

Permalink
Add usage snippets and code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
SiddharthSham committed May 28, 2020
1 parent 276d867 commit f0f5397
Show file tree
Hide file tree
Showing 17 changed files with 350 additions and 65 deletions.
Binary file added dist/butler.61814695.webp
Binary file not shown.
Binary file added dist/butler.8fbb8178.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
114 changes: 109 additions & 5 deletions dist/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/main.965f3752.css → dist/main.5182ba20.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/prism.8387ec82.css

This file was deleted.

1 change: 1 addition & 0 deletions dist/prism.95787a35.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/public-sans.0440346c.webp
Binary file not shown.
Binary file added dist/public-sans.e7d7abcc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
233 changes: 200 additions & 33 deletions index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spirit.css",
"version": "0.2.1",
"version": "0.2.5",
"description": "A simple, yet complete CSS framework",
"main": "index.html",
"scripts": {
Expand Down
36 changes: 20 additions & 16 deletions prism.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ https://prismjs.com/download.html#themes=prism-tomorrow&languages=markup+css+cli
* prism.js tomorrow night eighties for JavaScript, CoffeeScript, CSS and HTML
* Based on https://github.com/chriskempson/tomorrow-theme
* @author Rose Pritchard
* customised by Siddharth S. (github.com/siddharthsham)
*/

code[class*="language-"],
pre[class*="language-"] {
color: #ccc;
color: #abb2bf;
background: none;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
font-size: 1em;
Expand All @@ -32,19 +35,19 @@ pre[class*="language-"] {

/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
padding: 0 1rem;
margin: .5rem 0;
overflow: auto;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #2d2d2d;
background: #282c34;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
padding: .5rem;
border-radius: .3em;
white-space: normal;
}
Expand All @@ -54,15 +57,14 @@ pre[class*="language-"] {
.token.prolog,
.token.doctype,
.token.cdata {
color: #999;
color: #818896;
}

.token.punctuation {
color: #ccc;
color: #abb2bf;
}

.token.tag,
.token.attr-name,
.token.namespace,
.token.deleted {
color: #e2777a;
Expand All @@ -75,30 +77,29 @@ pre[class*="language-"] {
.token.boolean,
.token.number,
.token.function {
color: #f08d49;
color: #61aeee;
}

.token.attr-name,
.token.property,
.token.class-name,
.token.constant,
.token.symbol {
color: #f8c555;
color: #d19a66;
}

.token.selector,
.token.important,
.token.atrule,
.token.keyword,
.token.builtin {
color: #cc99cd;
color: #c678dd;
}

.token.string,
.token.char,
.token.attr-value,

.token.regex,
.token.variable {
color: #7ec699;
color: #e06c75;
}

.token.operator,
Expand All @@ -119,7 +120,10 @@ pre[class*="language-"] {
cursor: help;
}

.token.attr-value,
.token.string,
.token.char,
.token.inserted {
color: green;
color: #98c379;
}

13 changes: 5 additions & 8 deletions scss/_typography.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
body {
font-size: 1rem;
font-size: min(calc(0.75rem + 0.75vw), 1.25rem);
line-height: 1.5;
font-family: $sans-font, $native-sans-font;
font-weight: 400;
}


h1,
h2,
h3,
Expand Down Expand Up @@ -48,13 +52,6 @@ h6 {
margin: calc(0.5rem + 0.75vh) 0 calc(0.25rem + 0.75vh) 0;
}

body {
font-size: min(calc(0.75rem + 0.75vw), 1.25rem);
line-height: 1.5;
font-family: $sans-font, $native-sans-font;
font-weight: 400;
}

a,
ins,
u {
Expand Down
13 changes: 13 additions & 0 deletions scss/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
// font families

// $base: #282c34;
// $mono-1: #abb2bf;
// $mono-2: #818896;
// $mono-3: #5c6370;
// $hue-1: #56b6c2;
// $hue-2: #61aeee;
// $hue-3: #c678dd;
// $hue-4: #98c379;
// $hue-5: #e06c75;
// $hue-5-2: #be5046;
// $hue-6: #d19a66;
// $hue-6-2: #e6c07b;

// native font snippet from Bootstrap
$native-sans-font: -apple-system,
BlinkMacSystemFont,
Expand Down
Binary file added static/butler.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/butler.webp
Binary file not shown.
Binary file added static/public-sans.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/public-sans.webp
Binary file not shown.

0 comments on commit f0f5397

Please sign in to comment.