2.0.35 • Published 5 years ago

@ulule/owl-kit v2.0.35

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

5 years ago

2.0.35-rc3

5 years ago

2.0.35-rc2

5 years ago

2.0.35-rc1

5 years ago

2.0.34

5 years ago

2.0.33

5 years ago

2.0.32

6 years ago

2.0.31-rc.1

6 years ago

2.0.31-a-0.0.1

6 years ago

2.0.31

6 years ago

2.0.30-c.0.5

6 years ago

2.0.30-c.0.4

6 years ago

2.0.30-c.0.3

6 years ago

2.0.30-c.0.2

6 years ago

2.0.30-c.0.1

6 years ago

2.0.30

6 years ago

2.0.29

6 years ago

2.0.28

6 years ago

2.0.27

7 years ago

2.0.26

7 years ago

2.0.25

7 years ago

2.0.24

7 years ago

2.0.23

7 years ago

2.0.22

7 years ago

2.0.21

7 years ago

2.0.20

7 years ago

2.0.19

7 years ago

2.0.18

7 years ago

2.0.17

7 years ago

2.0.16

7 years ago

2.0.15

7 years ago

2.0.14

7 years ago

2.0.13

7 years ago

2.0.12

7 years ago

2.0.11

7 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.4

7 years ago

2.0.3

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.17-dev

7 years ago

1.0.16-dev

7 years ago

1.0.15-dev

7 years ago

1.0.14-dev

7 years ago

1.0.13-dev

7 years ago

1.0.12-dev

7 years ago

1.0.11-dev

7 years ago

1.0.10-dev

7 years ago

1.0.9-dev

7 years ago

1.0.8-dev

8 years ago

1.0.7-dev

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago