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

Meav

She is my assistant.

Details

Installs

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