Giter Site home page Giter Site logo

ghost-material's Introduction

Ghost Material

Material Design inspired theme for Ghost blogging platform. Visit my blog for a demo.

Features

  • Zero-dependency on CSS frameworks or Javascript libraries
  • Mobile-first and adapted to all screens according to Material Design guidelines
  • CSS Flexbox for layout structure
  • CSS Animations (no jQuery or Javascript)

Installation

Go to your Ghost installation path and clone repository under content/themes directory.

cd /your/ghost/path
cd content/themes/
git clone https://github.com/nauzethc/ghost-material.git

Then restart your Ghost service and select "Material" theme on your blog setup page.

Customization

Colors

For color palette customizing you only have to edit the assets/css/theme.css file. I recommend to use Material Palette web to generate color palette based on two main colors, one for backgrounds and one for accent (links and buttons).

Animations

Animation timings, functions and definitions are customizable via assets/css/animations.css. Navbar autohide and cards slide-on events are triggered using Javascript, but animations and transitions are fully CSS based.

Components

Some widgets are customizable via CSS classes.

  • Navigation Bar (navbar)

    • shaded: Add shadow
    • fixed: Set navbar as fixed on top
    • autohide: Hide/unhide navbar on scroll (fixed is required)
  • Header (header)

    • shaded: Add shadow

    • bg-darken|bg-lighten: It draws dark/light gradient on top of background images (for better readability)

    • Header Content (header--content)

      • onTop|onMiddle|onBottom: Align vertically header content
  • Cards (card)

    • image: Set bigger height on card header to show image

    • slide: Card is animated when is rendered

    • Card Header (card--header)

      • bg-darken|bg-lighten: It draws dark/light gradient on top of background images (for better readability)
  • FABs (fab class on <a>,<button> elements)

    • large: Display a bigger button (55.5px)
    • disabled: It's rendered as disabled button
    • ripple: Show ripple animation on click
  • Buttons (button class on <a>,<button> elements)

    • shaded: Add shadow
    • solid: Add solid color background
    • ripple: Show ripple animation on click

Motivation

Ghost Material is widely motivated by Materialize and Material Design Lite projects. I've tried to use both frameworks with Ghost before but for some reason none of them convinced me, so I wanted to replicate what I like from them without using any heavy library or framework, just vanilla Javascript and CSS3.

License

Creative Commons BY-SA 4.0 http://creativecommons.org/licenses/by-sa/4.0/

ghost-material's People

Contributors

1919yuan avatar lfuelling avatar nauzethc avatar nerostie avatar stevewooding avatar thisisset-l avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ghost-material's Issues

No licence supplied

Would it be possible to specify a licence for this theme? I would like to use this as a base for a company blog, but need to make sure we meet any licence requirements.
Thanks

Missing helper

When attempting to load a post directly I get the following page [post.hbs] Missing helper: "image_url"
example

No newlines in blockquotes

This is a blockquote using the material theme:

ghost_material_1

And this is the same blockquote using the casper theme:

ghost_material_2

As you can see, all the newlines are missing in the material theme.

Share button not working on desktop browsers

Two issues:
1.) The share button only works on mobile browser. It doesn't show up the social share buttons when using Desktop browsers.
2.) When clicking share button which works in mobile browser, pressing the button again doesn't close the share buttons. I'm expecting it to close again.

create new navigation section

Hello,

Can you explain me how can I create new sections into my Ghost site ?

For exemple a section tuto or a section french ?

Thanks :)

CSS Markdown

Hello,

comments in a sh code are not colorized. Is that normal ?

$ <command> # comments

这个效果很炫

效果真的很喜欢,但如果文章没有主题图片就会显示有些别扭

highlight js is not in this repo

Hello (again)

I have been verified and there is this line on your blog :

<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/highlight.min.js"></script>

and in files that I have been downloaded here, there is not this line.

How can I do to add it, and have the same color that your blog ?

I tried to add

    {{! Scripts }}
    <script src="{{asset "assets/js/main.js"}}"></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/highlight.min.js"></script>

But it seems do not working. Any solutions ? :)

Theme is not responsive

When using quotes or code, the text doesn't wrap on its container and extends outside of it.

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.