GithubHelp home page GithubHelp logo

css-bliss's People

Contributors

gbirman-iseatz avatar gilbox avatar greenish avatar orthographic-pedant 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

css-bliss's Issues

Parentless Modules?

Should we allow parentless modules? To a very limited degree, I've allowed it in one of my projects. It's a little confusing to look for the root Module class and then realize that there isn't one. For example, consider (a rather contrived example):

<h2 class="Title">
  <i class="Title-iconBefore"></i> 
  Hello World 
  <i class="Title-iconAfter"></i>
</h2>

versus:

<i class="Title-iconBefore"></i> 
<h2 class="Title-copy">Hello World</h2> 
<i class="Title-iconAfter"></i>

@mixin restrictions

  • mixins declared inside of a Module may not be used outside of that module
  • mixins declared inside of a module should be named like this: @MyModule-mixinDescription

%placeholder restrictions and naming

  • Naming: %MyModule-placeholderDescriptor
  • Restrictions:
    • placeholders may only be declared inside of modules
    • Modules may only use placeholders declared inside of them
    • A placeholder declared inside of a Module may not be used anywhere else.

Multiple Modifiers on an Element?

Should we apply multiple Module Modifiers to an element?
I'm thinking use this sparingly.

Should we apply multiple Element Modifiers to an element?
I'm thinking use this sparingly as well.

What are the use cases?

Siblings

Hey Gil ๐Ÿ˜„
what do you think about + ?

Is there a better way of doing this ? (assuming the sibling selector is needed)

.FlightLeg {
  &-row {
    & + & {
      // some styles
    }
  }
}

Walkthrough: typo on state classes

Hi! Thanks for sharing your model, this looks great!

I was going through the walkthrough and saw that your CSS example is missing a space between the state class and the module class.

<body ng-class="{isLoggedIn:userIsLoggedIn}">
  <div class="Header">...</div>
  <div class="Hero">...</div>
  <div class="FeatureGrid">...</div>
</body>
/* modules/_Header.scss */
.Header {
  ...
}
.isLoggedIn.Header {
  ...
}

.isLoggedIn.Header should be .isLoggedIn .Header (or the DOM elements must be have both classes).

If you want a PR for this or if I'm missing something, let me know!

Thanks.

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.