Giter Club home page Giter Club logo

fbc-css's Introduction

CSS Architecture

  • 予測しやすい
  • 再利用しやすい
  • メンテナンスしやすい
  • 拡張しやすい

CSS Architecture

Predictable

Predictable CSS means your rules behave as you’d expect. When you add or update a rule, it shouldn’t affect parts of your site that you didn’t intend. On small sites that rarely change, this isn’t as important, but on large sites with tens or hundreds of pages, predictable CSS is a must.

Reusable

CSS rules should be abstract and decoupled enough that you can build new components quickly from existing parts without having to recode patterns and problems you’ve already solved.

Maintainable

When new components and features need to be added, updated or rearranged on your site, doing so shouldn’t require refactoring existing CSS. Adding component X to the page shouldn’t break component Y by its mere presence.

Scalable

As your site grows in size and complexity it usually requires more developers to maintain. Scalable CSS means it can be easily managed by a single person or a large engineering team. It also means your site’s CSS architecture is easily approachable without requiring an enormous learning curve. Just because you’re the only developer touching the CSS today doesn’t mean that will always be the case.

設計

CSSフレームワーク他

sass

reset.css

デザイン参考

fontawesome

display: flex

display: grid

IEなど各ブラウザ対応

break points

bootstrap

  • _breakpoints.scss

  • breakpoints

  • xs... 0 〜 575px

    • スマホ ポートレート
  • sm... 576px 〜 767px

    • スマホ ランドスケープ
  • md... 768px 〜 991px

    • タブレット ポートレート
  • lg... 992px 〜 1199px

    • タブレット ランドスケープ
  • xl... 1200px 〜 1399px

    • 小さいラップトップ
  • xxl... 1400px 〜 ∞

    • PC
@include media-breakpoint-down(md) {
  // md 以下
  font-size: 3rem;
}
@include media-breakpoint-up(md) {
  // md 以上
  font-size: 3rem;
}
@include media-breakpoint-only(md) {
  // md のみ
  font-size: 3rem;
}

fbc-css's People

Contributors

machida avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

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.