All Projects → webcyou → apbcss

webcyou / apbcss

Licence: other
APB CSS - Atomic Parts Base CSS -

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
SCSS
7915 projects
CSS
56736 projects

Projects that are alternatives of or similar to apbcss

hyper
🎨 Hyper: A component-first CSS design system.
Stars: ✭ 26 (-35%)
Mutual labels:  oocss, smacss
summernote-themes
Addon Themes for Summernote Lite WYSIWYG Editor
Stars: ✭ 42 (+5%)
Mutual labels:  icons
fcitx5-themes
fcitx5的简约风格皮肤——四季
Stars: ✭ 83 (+107.5%)
Mutual labels:  skin
aesto
Free Ghost theme with membership support. Minimal content focused design with multi author supported.
Stars: ✭ 31 (-22.5%)
Mutual labels:  icons
cryptofont
Cryptocurrency icon webfont and SVG
Stars: ✭ 149 (+272.5%)
Mutual labels:  icons
molecule-hetznercloud
Molecule Hetzner Cloud driver 💀
Stars: ✭ 21 (-47.5%)
Mutual labels:  molecule
atom-perl6-editor-tools
A collection of useful Perl 6 editor tools
Stars: ✭ 19 (-52.5%)
Mutual labels:  icons
semicon
A collection of icons for the Semantic Web and Linked Open Data world.
Stars: ✭ 20 (-50%)
Mutual labels:  icons
ansible-role-dns
Install and configure dns on your system.
Stars: ✭ 39 (-2.5%)
Mutual labels:  molecule
Sass-Starter
SASS Starter - SCSS boilerplate for SMACSS
Stars: ✭ 35 (-12.5%)
Mutual labels:  smacss
minimal-icons
Minimal Icons
Stars: ✭ 21 (-47.5%)
Mutual labels:  icons
fnf-osu-mania-skin
A Friday Night Funkin' skin for all osu! modes.
Stars: ✭ 45 (+12.5%)
Mutual labels:  skin
resources-for-web-developers
Resources for Web Developers
Stars: ✭ 77 (+92.5%)
Mutual labels:  icons
favicon
🖼 An attempt to capture all possible favicons for a web project.
Stars: ✭ 17 (-57.5%)
Mutual labels:  icons
WeatherIcon
Weather Icon for our API and SDK
Stars: ✭ 98 (+145%)
Mutual labels:  icons
svg-chameleon
Easily modify stroke-widths and colors of your SVGs via CSS!
Stars: ✭ 15 (-62.5%)
Mutual labels:  icons
elm-fontawesome
FontAwesome for Elm.
Stars: ✭ 32 (-20%)
Mutual labels:  icons
MolecularGraph.jl
Graph-based molecule modeling toolkit for cheminformatics
Stars: ✭ 144 (+260%)
Mutual labels:  molecule
Avalonia.IconPacks
Import of Visual Studio image library and MahApps.Metro.IconPacks for Avalonia
Stars: ✭ 121 (+202.5%)
Mutual labels:  icons
Black-VLC-Mac
A black theme for VLC for Mac
Stars: ✭ 26 (-35%)
Mutual labels:  skin

APB CSS - Atomic Parts Base CSS -

screen_shot_ogp.png

APB CSS - Atomic Parts Base CSS -

http://apbcss.com/


What is Atomic Parts Base CSS(APB CSS)

Atomic Design + OOCSS + SMACSS =

Atomic Parts Base CSS (APB CSS)

Atomic Parts Base CSS

Point

  • Simple
  • Predictable
  • General versatility
  • Reusable
  • Maintainable
  • Scalable
  • Interactive

Atoms Style Sheet

Atomic Design

Atomic Design

AtomicDesign

Atoms

Button

Atoms

button

HTML

<p class="btn primary"><a >Button</a></p>

CSS

.btn {
  position: relative;
  width: 200px;
  height: 40px;
  border-radius: 6px;
  a {
    display: block;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
  }
  &.primary {
    background: #404040;
    @include background(linear-gradient(top, #404040, #282828));
    &:hover { background: #303030; }
  }
}

Icon

Atoms

Icon

HTML

<p class="icon social github"></p>

CSS

.icon {
  display: inline-block;
  &.social {
    width: 34px;
    height: 34px;
    background: url(SpriteImagePath) no-repeat;
    @include background-size(205px auto);
    &.github { background-position: -171px top; }
  }
}

Properties of the layout style is not included.


Molecules Style Sheet

Molecules

Molecules

Button + Icon

Button + Icon

HTML

<p class="btn primary"><a ><span class="icon social github"></span>Button</a></p>

CSS

.btn {
    .icon {
        &.social {
            margin: 0px 6px -11px -34px;
        }
    }
}

Molecules

Text + Icon

Text + Icon

HTML

<p class="text"><span class="icon ban"></span>text</p>

CSS

.text {
  .icon.ban {
    margin: 0 4px -10px 0;
  }
}

Layout property is generated when you became a molecule.


Multi Class (object-oriented)

OOCSS + SMACSS

OOCSS + SMACSS

Excerpts from the 「OOCSS」,「SMACSS 」

CSS Class Type

CSS Class Type

  • Atomic:Class name of atom
  • Module:UI package name
  • Skin:Class name of decoration
  • Number:Numbering of the class name
  • State:Class name that represents the state
  • Other:Other class name

Based on the atom name or module name, and grant the six types of class name.

CSS Class Type ~ Atomic ~

Atomic example Class Name

  • text
  • icon
  • btn
  • thumbnail
  • label
  • input
  • code
  • separate

CSS Class Type ~ Module ~

Module example Class Name

  • header
  • footer
  • contents
  • mainLogo
  • title
  • column
  • thumbnailList
  • textList
  • detailBox
  • modalWindow

CSS Class Type ~ Skin ~

Skin example Class Name Skin

  • red
  • blue
  • wide
  • high
  • low
  • stripe
  • subdued
  • small
  • middle

CSS Class Type ~ Number ~

Number example Class Name Number

  • one
  • two
  • no[nth]
  • type[nth]
  • first
  • last
  • odd
  • even

CSS Class Type ~ State ~

State example Class Name State

  • active
  • disable
  • tapped
  • success
  • error
  • highlight
  • checked
  • note
  • center
  • right

CSS Class Type ~ Other ~

Other example Class Name Other

  • Semantic name
  • wrap
  • Service name
  • Page name
  • Controller name
  • Namespace

etc..


Directory structure

SCSS Directory

SCSS

scss
  |- base
  |- pages
  |- parts
  _common_inc.scss
  _parts.scss
  style.scss
  • _common_inc.scss: import base and pages
  • _parts.scss: import parts files

base Directory

base

scss
  |- base
    |- _base.scss
    |- _mixin.scss
    |- _reset.scss
    |- _setting.scss
  • _base.scss: Define -based style of application
  • _mixin.scss: Define mixin style
  • _reset.scss: Initialize the style
  • _setting.scss: Define such as variables and prefix

parts Directory

parts

scss
  |- parts
    |- _button.scss
    |- _icon.scss
    |- _list.scss
    |- _paragraph.scss
    ....

File group that defines the atom and modules.

pages Directory

pages

scss
  |- pages
    |- _top.scss
    |- _info.scss
    |- _profile.scss
    |- _main_contents.scss
    ....

Defines page-specific layout style.

name space

HTML

<section id="top" class="top">

ID is the controller name(pages Directory name) The class name is the action name, provide a name space.


Sample

It is this page.

OfficalPage

http://apbcss.com/

Document

slideshare

Blog

web帳


Other

Author

Name : Daisuke Takayama

Country : Japan

Job : FrontEnd Engineer

twitter

@webcyou @panicdragon

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].