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

Meav

She is my assistant.

Details

Installs

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