Giter Site home page Giter Site logo

captionss's People

Contributors

jbranchaud 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

captionss's Issues

index.html breaks on wide displays

Fix the index.html page so that it displays correctly for wide displays. Here is what it looks like now when a display is fairly wide:

screen shot 2014-10-27 at 7 34 30 am

Adding sliding up/down effects for the captions.

As suggested by a commenter on HN, it would be nice to offer an animation effect that slides the caption up or down to reveal or hide it.

The following code was suggested as a starting point:

figure figurecaption { 
    transition: all 0.4s;
    transform: translateY(100%);
}
figure:hover figurecaption { transform: none; }

Add prefixes to the class selectors to avoid collisions.

As one HN commenter pointed out, the class selector names I use are somewhat generic and it is possible that there could eventually be some collision with other CSS code.

They suggested adding some sort of prefix, such as cap-, to the class selectors to reduce the likely hood of this happening.

This will break the current API though, so needs to wait until 2.0.0.

Adding support for IE8

It has been pointed out that captionss doesn't currently support IE8. I realize there is still a decent amount of people still sitting in IE8. I am, however, hesitant to muddy up the code making captionss work for such an outdated browser.

I was reading through documentation for HubSpot's tether and came across the following paragraph which gives me more confidence in my stance:

Google doesn't support IE8, Microsoft is dropping support in a few months, and not supporting it saves us a whole lot of trouble. If you are interested in adding support, get in touch, we're happy to accept a PR.

Port the CSS to SCSS

SCSS is the rage with all the young kids these days, so it only makes sense to port the CSS code to SCSS so that both can be offered.

Setup Grunt tasks

Setup up Grunt tasks to automatically compress css, eventually compile LESS/SCSS, and serve the project's development environment.

Add some captionss selling points to the landing page

I built jekyll because existing image caption solutions were lacking in a number of ways, these are good selling points and should be briefly highlighted toward the top of the landing page (and in the README as well).

Remove the empty CSS rules from captionss.css

There are a few CSS rules that are empty scattered throughout captionss.css. The detract from readability and will eventually leave me wondering if I forget to implement something, so they should instead just be removed now.

Clean up the overly verbose transitions

When I first wrote the transitions part of the CSS, I was still new to that property. I added transitions properties to both the element and the hovered element, when really on the former is needed. This fix will make the code cleaner and more concise as well as produce a smaller file size.

Add favicons for website

Add favicons on the gh-pages branch that can be used by the website. Currently favicons from gandi.net are being used.

Proposal for a 2.0.0 selector naming scheme

I am thinking about using cap as a prefix to avoid conflicts with other css and then the following set of options:

  • cap-bottom - caption positioned inside the image at the bottom
  • cap-top - caption positioned inside the image at the top
  • cap-under - caption positioned outside the image, right under it
  • cap-above - caption positioned outside the image, right above it
  • cap-over - caption overlayed on the entire image

This covers existing options (embed, embed-top, overlay) and also gives two more options that avoid obscuring the image by placing it above or under the image.

Misuse of display property in captionss.css

I ran captionss.css through a CSS validator (#1) and the lone error that came up is an instance of the display property being set to the value of 1 for the figure.hide-smooth figcaption selector.

Port the CSS to LESS

Issue #9 already asks for porting CSS to SCSS, but I should consider porting it to LESS as well for those who prefer the latter.

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.