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

Meav

She is my assistant.

Details

Installs

  • Total 13
  • Win 5
  • OS X 7
  • Linux 1
Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3
Windows 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
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 :)