Coder Social home page Coder Social logo

cssgram's Issues

`shared.scss` double import.

Hi,

I'm not sure this is an issue, you may have your reasons to do it.

In cssgram.scss we import shared.scss but we also do it in every filter .scss.

Is there a reason to do that? The resulting CSS is double the size. If there's a reason to it, we may need a small settings.scssfile to choose filters, different variables, or even if we want to create the class or live happyly ever after only with extend.

Copy Editing

Make sure that the usage of this library is clear

Prefix class names with `filter-`?

Advantages:

  • prevents an onboarding devs say "What the ___ is 'hudson'?"
  • allows global search/replace/delete

Disadvantages:

  • larger files (mostly negated by gzip)
  • more typing (reduced by editors' autocomplete, copy/paste|search/replace
  • add extra coding to gulpfile

Could prefix with cssgram- also, less clear, but helps in finding this repo.

Single Source of Truth for Site & Test Page

Currently both use their own filters list:

test page:

  {% set filters = [
    {name: 'aden',       is_done: true},
    {name: 'amaro',      is_done: false},
    {name: 'brannan',    is_done: false},
    {name: 'crema',      is_done: false},
    {name: 'earlybird',  is_done: true},
    {name: 'hefe',       is_done: false},
    {name: 'hudson',     is_done: true},
    {name: 'inkwell',    is_done: true},
    {name: 'juno',       is_done: false},
    {name: 'lark',       is_done: true},
    {name: 'lofi',       is_done: true},
    {name: 'ludwig',     is_done: false},
    {name: 'mayfair',    is_done: true},
    {name: 'nashville',  is_done: true},
    {name: 'perpetua',   is_done: true},
    {name: 'reyes',      is_done: true},
    {name: 'rise',       is_done: false},
    {name: 'sierra',     is_done: false},
    {name: 'slumber',    is_done: false},
    {name: 'valencia',   is_done: false},
    {name: 'willow',     is_done: false},
    {name: 'xpro2',      is_done: true},
  ] %}

demo site:

  {% set filters = [
    {name: 'Aden',       usage: 'aden'},
    {name: 'Reyes',      usage: 'reyes'},
    {name: 'Perpetua',   usage: 'perpetua'},
    {name: 'Inkwell',    usage: 'inkwell'},
    {name: 'Earlybird',  usage: 'earlybird'},
    {name: 'Toaster',    usage: 'toaster'},
    {name: 'Walden',     usage: 'walden'},
    {name: 'Hudson',     usage: 'hudson'},
    {name: 'Gingham',    usage: 'gingham'},
    {name: 'Mayfair',    usage: 'mayfair'},
    {name: 'Lo-Fi',      usage: 'lofi'},
    {name: 'X-Pro2 II',  usage: 'xpro2'},
    {name: '1977',       usage: '_1977'},
    {name: 'Brooklyn',   usage: 'brooklyn'},
    {name: 'Nashville',  usage: 'nashville'},
    {name: 'Lark',       usage: 'lark'},
  ] %}

These could likely be combined:

  {% set filters = [
     {name: 'Aden',      is_done: true,      usage: 'aden'},
     {name: 'Amaro',     is_done: false,     usage:'tbd'},
  ] %}

And only the finished filters would show up with usage on the demo site. That being said, we need parity with all of the test files and existing filters that exist first See #96

Give Image Example Options

These should be clickable (i.e. click to change it to the cactus example, etc.) or allow people to insert their own images

code repetition

There is a repetition of the code in the CSS file because "shared" is imported all SCSS files

Code Syntax Styling

Needs some work -- give it a background so it stands out from the white text behind 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.