Giter Site home page Giter Site logo

trellisheets's Issues

Serve run problem

./tools/watch, to build and watch styles

[18:34:11] Requiring external module coffee-script/register
[18:34:13] Using gulpfile ~/workspace/github/trellisheets/gulpfile.coffee
[18:34:13] Starting 'watch'...
[18:34:13] Finished 'watch' after 19 ms

./tools/serve, to serve the site

Starting up http-server, serving ./public
Available on:
  http:127.0.0.1:8080
  http:192.168.0.109:8080
Hit CTRL-C to stop the server

But there is no /styles in ./public, so 404 for http://192.168.0.109:8080/styles/core.css

Is there something wrong with ./tools/watch ?

Component layout in structure

Following the comment to corresponding gist:

My proposition is about using specific syntax for component layout. Namely this:

// Usage:
// <div class="component">
//   <p class="component-decendant">
//     <span class="component-decendant-descendant"></span>
//   </p>
// </div>
//
// (How it's used.)

I've come up with another way of illustrating component structure, that should be transparent enough.
This resulted in the project; you can find the documentation here.

And here is the practical example of some sort.

So the previous code could be re-written as this:

/* cssg

    component
        component-descendant
            component-descendant-descendant

*/

// all other code

There are some points backing this stuff:

  • html can be generated differently (jade, react, handlebars, ...), it is possible to write it once in css, but after some changes maintaining can become a problem (talking about 113 components ;))
  • in CSSG approach you illustrate all possible mods and states of component, not only one
  • it's easier to read and grasp the structure at a glance
  • easier to refactor and share snippets with colleagues

I'd like to take it to the next level actually and make a common thing between CSS-engaged front-end teams. Hope you'll find it useful as well!

Sass version

Is a Sass port on the roadmap for this project?

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.