Giter VIP home page Giter VIP logo

casper-dark-ds's Introduction

Casper Dark (DS)

Based on the default theme (Casper) for Ghost.

Merged with upstream v2.11.1 on 2019/08/29

Disclosure: I'm new to all of this CSS, HTML, etc. shenanigans; aside from a private BookStack instance, this is my first venture into any kind of theming.

That being said, I put Casper in the dark and added a few tricks/features; primarily focused on presenting technical documentation. I've attached a couple screenshots, or you can check the theme out on my site. While this is a bit of an experimental work in progress, I thought it was sufficiently done enough for sharing; I expect there will be changes as I learn, tweak, and (hopefully) optimize over time.

Changelog

Installation

  1. Download the files using the GitHub .zip download option.
  2. Navigate to Settings > Design on your Ghost admin interface.
  3. Click Upload a theme (near bottom).
  4. Either drag the .zip file onto the dialogue, or click the center to browse to the .zip.
  5. Click Activate Now.

Features

PrismJS & Custom "One Dark" Theme

PrismJS is packaged with my custom One Dark theme and the following languages and plugins;

Expand for Languages
  • markup
  • css
  • clike
  • javascript
  • apacheconf
  • bash
  • batch
  • css-extras
  • markup-templating
  • git
  • handlebars
  • http
  • ini
  • php
  • json
  • markdown
  • django
  • nginx
  • sql
  • powershell
  • scss
  • python
  • rest
  • sass
  • yaml
  • tcl
  • visual-basic
  • regex
Expand for Plugins
  • line-highlight
  • line-numbers
  • toolbar
  • highlight-keywords
  • unescaped-markup
  • command-line
  • show-language
  • copy-to-clipboard

Screenshot

screenshot-prismjs-onedark

Hack for command-line plugin

The PrismJS command-line plugin includes a hack that allows multiple prompts to be defined per code-block (source).

<pre class="command-line language-bash" data-prompt="1,4|NXOSv#;2-3|NXOSv(config)#">
<code>conf
feature nxapi
end
copy ru st</code></pre>

Result

screenshot-prismjs-cmdline


Styled <details> (Accordions)

Styling for HTML5 <details> elements, used as accordions.

Usage

<details><summary>Expand for <desc>Dynamic Variable Example</desc></summary>
 
`gi_ints` is a list of GigabitEthernet interfaces, which scales with the number of switches in the stack.

| Switch Count | `gi_ints` |
| :-: | :- |
|  1  | `gi1/0/1-36` |
|  2  | `gi1/0/1-36,gi2/0/1-36` |
|  3  | `gi1/0/1-36,gi2/0/1-36,gi3/0/1-36` |
|  4  | `gi1/0/1-36,gi2/0/1-36,gi3/0/1-36,gi4/0/1-36` |

</details>

Result

Closed (default)

screenshot-details-closed

Open

screenshot-details-open


Custom Callouts

5 custom callout styles (inspired by BookStack callouts).

  • Generic (white)
  • Info (blue)
  • Success (green)
  • Warning (orange)
  • Danger (red)

Callouts with <p>

<p class="callout">This is a plain callout.</p>
<p class="callout info">This is an informational callout.</p>
<p class="callout success">This is a success callout</p>
<p class="callout warning">This is a warning callout</p>
<p class="callout danger">This is a danger callout</p>

Callout with <div>

Can be used to include line-breaks and markdown in the callout; markdown requires a blank space after the <div> (ignore \ in the code block).

<div class="callout info">

This is an informational callout with some `inline-code`

> **And a blockquote.**
> 
> With *markdown* formatting; e.g. ~~strikethrough~~

\```bash
# And a code block.
sudo nano /etc/hostname
\```

And a list
- Item 1
- Item 2
  - Sub-item
</div>

Results

screenshot-callouts


Steps Tables

Custom format for single column Markdown tables used to outline process steps.

Usage

Wrap the table in a <div> tag; markdown requires a blank space after the <div>.

<div class="steps-table">

| How to hold up three fingers.   <!-- Header  -->
| -                               <!-- Separator line -->
| Hold up **one** finger.         <!-- Step -->
| ![step1][1-finger]              <!-- Image -->
| Hold up **two** fingers.        <!-- Step -->
| ![step2][2-fingers]             <!-- Image -->
| Hold up **three** fingers.      <!-- Step -->
| ![step3][3-fingers]             <!-- Image -->
</div>

<!-- Use reference style links to keep table rows concise. -->
[1-finger]: https://i.imgur.com/tjeG9rD.png
[2-fingers]: https://i.imgur.com/rCbyQrV.png
[3-fingers]: https://i.imgur.com/1kbc5eN.png

Result

steps-table

Screenshots

Home

screenshot-desktop-home

Post

screenshot-desktop-post-2-top

casper-dark-ds's People

Contributors

johnonolan avatar erisds avatar derek-shnosh avatar kevinansfield avatar aileen avatar renovate-bot avatar kirrg001 avatar pauladamdavis avatar naz avatar cobbspur avatar peterzimon avatar allouis avatar rishabhgrg avatar novaugust avatar halfdan avatar ybbuc avatar mankittens avatar zce avatar lukaszklis avatar renovate[bot] avatar kezzbracey avatar yoranbrondsema avatar acburdine avatar jakegiltsoff avatar phoenixpeca avatar jitendravyas avatar corbpaul avatar mjbshaw avatar douten avatar sdknjg8zxq avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.