2.0.35 • Published 7 years ago

@ulule/owl-kit v2.0.35

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Owl-kit

SASS

Namespaces

b- Block indicate a block element of the new structure introducing namespace to our css is- Status tells us that the DOM currently has a temporary, optional, or short-lived style applied to it due to a certain state being invoked like is-open for a menu. js- JavaScript classes are for javascript manipulation and should not have any style associate.

Possible enhancement

o- Objects are abstract elements that can be used by lot of things like the media object. If you really must, be very careful when modifying one. c- Components are tiny concrete elements with one specific defined purpose like a button. b- Blocks are big concrete sections like the site header.

BEM

Owl-kit uses the block, element and modifier (BEM) methodology with namespace. The syntax is .block__element--modifier.

Let's see how it works with this silly example:

$block: '.c-narwhal';

#{$block} {
  float: left;

    &__horn {
      display: block;

      &--pretty-big {
        font-size: large;
    }
  }
}

Which produces this beautiful CSS:

.c-narwhal {
  float: left;
}

.c-narwhal__horn {
  display: block;
}

.c-narwhal__horn--pretty-big {
  font-size: large;
}

References

Styleguide

Installation

Node 8.1.4 +

cd styleguide && npm install

Tasks npm

Run application

npm run start
npm run css:compile

Run application and watch changes

npm run server
npm run css:watch

Note: you need to have nodemon installed

npm install -g nodemon

How to release a new version

It's easy!

Update the package version in the package.json file

And add a summary of the changes in the CHANGELOG.md file

After that, you just need to publish on npm:

$ npm publish
2.0.35

7 years ago

2.0.35-rc3

7 years ago

2.0.35-rc2

7 years ago

2.0.35-rc1

7 years ago

2.0.34

7 years ago

2.0.33

7 years ago

2.0.32

8 years ago

2.0.31-rc.1

8 years ago

2.0.31-a-0.0.1

8 years ago

2.0.31

8 years ago

2.0.30-c.0.5

9 years ago

2.0.30-c.0.4

9 years ago

2.0.30-c.0.3

9 years ago

2.0.30-c.0.2

9 years ago

2.0.30-c.0.1

9 years ago

2.0.30

9 years ago

2.0.29

9 years ago

2.0.28

9 years ago

2.0.27

9 years ago

2.0.26

9 years ago

2.0.25

9 years ago

2.0.24

9 years ago

2.0.23

9 years ago

2.0.22

9 years ago

2.0.21

9 years ago

2.0.20

9 years ago

2.0.19

9 years ago

2.0.18

9 years ago

2.0.17

9 years ago

2.0.16

9 years ago

2.0.15

9 years ago

2.0.14

9 years ago

2.0.13

9 years ago

2.0.12

9 years ago

2.0.11

9 years ago

2.0.10

9 years ago

2.0.9

9 years ago

2.0.8

9 years ago

2.0.7

9 years ago

2.0.6

9 years ago

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.17-dev

9 years ago

1.0.16-dev

9 years ago

1.0.15-dev

9 years ago

1.0.14-dev

9 years ago

1.0.13-dev

9 years ago

1.0.12-dev

10 years ago

1.0.11-dev

10 years ago

1.0.10-dev

10 years ago

1.0.9-dev

10 years ago

1.0.8-dev

10 years ago

1.0.7-dev

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago