Giter VIP home page Giter VIP logo

decent's People

Contributors

serenader2014 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

Watchers

 avatar  avatar  avatar  avatar  avatar

decent's Issues

Uncaught ReferenceError: ga is not defined

Hi,

first of all let me thank you for your work. This theme is amazing :) I like it very much.

By using it right now, I saw that when I reload the page by clicking the logo on top-left, something this error appears in Console:

Uncaught ReferenceError: ga is not defined

And I think it's because on this line ( https://github.com/serenader2014/decent/blob/master/src/script/index.js#L28 ) there's no check if decentThemeConfig.ga is defined.

Can you please add it?

Thank you in advance,
Julian

Go to top button changes

How about changing bottom: 30px to top: 30px?
I tested the current design on a mobile and guess there I try to scroll the page? Exactly over the go-to-top button ๐Ÿ‘Ž

Add ol element

Please add the ol element css

ol {
    width: 90%;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
}

Go-To-Top focus fix

Remove blue border if button is in focus:

.go-to-top {
    &:focus {
        outline: none;
        opacity: 1;
    }
}

Implement fallback.js

Now with 6-7 js files it could be a good idea to implement fallback.js. You can setup to load the scripts async (not blocking), you can define CDN's and use the local files if the CDN is down. It also seams fairly easy to implement.

This is the link to the documentation

I also read that you can load css files with this library but you should not do this for important files like your screen.css file because some browsers have problems with async loading of css files. But it sill might be an idea for the prism.cssfile

Scroll top style

Not a problem with the current css only that i like the scroll top button more if it is round and have a small opacity. With the current button it feels a little bit to much of an obstical that distracts from the content. Please take a look and decide yourself:

image

CSS:

.go-to-top {
    background-image: url("../assets/go-to-top.png");
    width: 40px;
    height: 40px;
    position: fixed;
    bottom: 30px;
    right: 100px;
    border: none;
    display: none;
    border-radius: 25px;
    opacity: 0.6;
}

Gallery feature improvements

I think the gallery has to much shadows. Does not look that good with the rest of the design.

How about this:
image

insted of this:
image

new css (background & border is same as the bg from code tag):

.single-post .album {
    height: 400px;
    white-space: nowrap;
    /* background: rgb(204, 204, 204); */
    padding: 20px;
    background: rgba(250,250,250,0.8);
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    /* -webkit-box-shadow: 0 -2px 5px rgba(0,0,0,0.5) inset,0 2px 5px rgba(0,0,0,0.5) inset; */
    /*  -moz-box-shadow: 0 -2px 5px rgba(0,0,0,0.5) inset,0 2px 5px rgba(0,0,0,0.5) inset; */
    /* box-shadow: 0 -2px 5px rgba(0,0,0,0.5) inset,0 2px 5px rgba(0,0,0,0.5) inset; */
    overflow-x: auto;
    overflow-y: hidden;
    margin: 30px 0;
}

.single-post .album img {
    display: inline-block;
    height: 100%;
    width: auto;
    border: 3px solid rgba(255,255,255,0.5);
    -webkit-box-shadow: 0 3px 5px rgba(0,0,0,0.5);
    -moz-box-shadow: 0 3px 5px rgba(0,0,0,0.5);
    /* box-shadow: 0 3px 5px rgba(0,0,0,0.5); */
    margin: 0 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    cursor: pointer;
}

Parallax effect

I implemented a new feature in my form. Maybe you like to have it aswell: Paralax Effect Demo

Usage:

<div class="bg-scroll" style="background-image: url('{{ site.github.url }}/media/img/mountain1.jpg')"></div>

CSS:

.bg-scroll {
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    height: 500px;
}

@media only screen and (max-width: 780px) {
    .bg-scroll {
        height: 350px;
    }
}

Iframe need min height

Without a min height it does not know how big it can get and does not get big at all ;)

use:

    iframe {
        min-height: 350px;
    }

Gulp 'build' task

Can you please provide a build task inside Gulpfile.js so it's easier to recompile without the need of watch and dev tasks?

Thank you in advance,
Julian

Add dl element to alignment list

the dl element is missing in this list:

.post-list .post, .pagination, .site-footer, .single-post .post-content > h1, .single-post .post-content > h2, .single-post .post-content > h3, .single-post .post-content > h4, .single-post .post-content > h5, .single-post .post-content > h6, .single-post .post-content > p, .single-post .post-content > ul, .single-post .post-content > ol, .single-post .post-content > blockquote, .single-post .post-content .single-post-header, .single-post .post-content > table, .single-post .post-content > figure, .read-next{
    width: 90%;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
}

Gallery border does not fit

I have encountered a problem with the borders of the gallery. Sometimes (tested with around 880px width) the border does not allign with the image. I think the js that modifies the shadow does not work every time. I compared the css of a case there it fitted and a case the it did not and there is no difference. Disabling and enabling the shadow property resolves the issue.

Maybe it is a rendering problem of chrome but could you look over your js, maybe you can change how the resizing is made - via wrapper class?

image

I tested it with different browsers and some have the same problem:
https://www.browserstack.com/screenshots/eef6a6439abb3e70d34a20fda268e2b950685654

Iframe css

Please include css for iframes in posts:

.single-post .post-content {
    iframe {
        min-height: 350px;
    }

    iframe {
        width: 90%;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
        word-wrap: break-word;
    }
}

usage:

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=http://img.labnol.org/di/PowerPoint.ppt' frameborder='0'></iframe>

Adding more language support to syntax highlighting

Hello,

In the decent theme folder, run npm install, and run gulp js.

But I get a command not found for gulp, so I install gulp by running npm install gulp.
Running gulp js now gives me the following error:

fs.js:808
  return binding.readdir(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, scandir '/var/www/ghost/content/themes/decent-v1.1.1/node_modules/gulp-sass/node_modules/node-sass/vendor'
    at Error (native)
    at Object.fs.readdirSync (fs.js:808:18)
    at Object.getInstalledBinaries (/var/www/ghost/content/themes/decent-v1.1.1/node_modules/gulp-sass/node_modules/node-sass/lib/extensions.js:74:13)
    at foundBinariesList (/var/www/ghost/content/themes/decent-v1.1.1/node_modules/gulp-sass/node_modules/node-sass/lib/errors.js:20:15)
    at foundBinaries (/var/www/ghost/content/themes/decent-v1.1.1/node_modules/gulp-sass/node_modules/node-sass/lib/errors.js:15:5)
    at Object.module.exports.missingBinary (/var/www/ghost/content/themes/decent-v1.1.1/node_modules/gulp-sass/node_modules/node-sass/lib/errors.js:45:5)
    at Object.<anonymous> (/var/www/ghost/content/themes/decent-v1.1.1/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:14:28)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)

So what do I do now? I'm kind of a noob at this, apologies if this issue can be trivially solved

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.