ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Meav

She is my assistant.

Details

Installs

  • Total 14
  • Win 6
  • OS X 7
  • Linux 1
Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28
Windows 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Meav

This is a package for SublimeText3. You can get class selector from html.

Usage

1. Coding HTML

<!DOCTYPE html>
<html>
<head>
  <title>foo bar</title>
</head>
<body>
  <section class="foo">
    <h1 class="foo__heading">foo bar</h1>
    <p class="foo__lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p>
    <ul class="foo__list">
      <li class="foo__list-item"><a class="foo__link" href="#">item 1</a></li>
      <li class="foo__list-item"><a class="foo__link" href="#">item 2</a></li>
      <li class="foo__list-item"><a class="foo__link" href="#">item 3</a></li>
      <li class="foo__list-item"><a class="foo__link" href="#">item 4</a></li>
      <li class="foo__list-item"><a class="foo__link" href="#">item 5</a></li>
    </ul>
  </section>
</body>
</html>

paste your html to new file.

go to next if you want to convert all.

select some html code if you want to convert partialy.

2. Use Meav Command

.foo{}
.foo__heading{}
.foo__lead{}
.foo__list{}
.foo__list-item{}
.foo__link{}

command + shift + PMeav-Flatten : Get flatten class selector for CSS

or

.foo{
    &__heading{}
    &__lead{}
    &__list{}
    &__list-item{}
    &__link{}
}

command + shift + PMeav-Structured : Get structured(BEM) class selector for SCSS

happy coding :)