2.0.35 • Published 6 years ago

@ulule/owl-kit v2.0.35

Weekly downloads
-
License
MIT
Repository
github
Last release
6 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

6 years ago

2.0.35-rc3

6 years ago

2.0.35-rc2

6 years ago

2.0.35-rc1

6 years ago

2.0.34

6 years ago

2.0.33

6 years ago

2.0.32

7 years ago

2.0.31-rc.1

7 years ago

2.0.31-a-0.0.1

7 years ago

2.0.31

7 years ago

2.0.30-c.0.5

8 years ago

2.0.30-c.0.4

8 years ago

2.0.30-c.0.3

8 years ago

2.0.30-c.0.2

8 years ago

2.0.30-c.0.1

8 years ago

2.0.30

8 years ago

2.0.29

8 years ago

2.0.28

8 years ago

2.0.27

8 years ago

2.0.26

8 years ago

2.0.25

8 years ago

2.0.24

8 years ago

2.0.23

8 years ago

2.0.22

8 years ago

2.0.21

8 years ago

2.0.20

8 years ago

2.0.19

8 years ago

2.0.18

8 years ago

2.0.17

8 years ago

2.0.16

8 years ago

2.0.15

8 years ago

2.0.14

8 years ago

2.0.13

8 years ago

2.0.12

8 years ago

2.0.11

8 years ago

2.0.10

8 years ago

2.0.9

8 years ago

2.0.8

8 years ago

2.0.7

8 years ago

2.0.6

8 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.17-dev

8 years ago

1.0.16-dev

8 years ago

1.0.15-dev

8 years ago

1.0.14-dev

8 years ago

1.0.13-dev

8 years ago

1.0.12-dev

9 years ago

1.0.11-dev

9 years ago

1.0.10-dev

9 years ago

1.0.9-dev

9 years ago

1.0.8-dev

9 years ago

1.0.7-dev

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago