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

Emmet Style Reflector

by Ermes Enea Colella ST3 Top 100

Reflect Emmet HTML expansion in Sass/LESS

Details

Installs

  • Total 296K
  • Win 245K
  • Mac 34K
  • Linux 17K
Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17
Windows 12 13 16 16 21 24 3 7 21 15 18 18 31 11 28 15 15 5 15 15 7 2 20 17 16 19 16 10 7 9 16 8 7 12 10 11 20 16 20 7 18 12 19 19 15 17
Mac 1 0 1 0 2 1 1 0 1 2 0 1 4 0 0 0 1 0 2 2 2 2 0 1 2 4 0 0 0 0 1 1 0 3 1 1 1 0 0 2 2 0 0 0 3 1
Linux 0 1 0 2 1 1 0 0 0 0 0 2 0 0 0 1 1 0 0 0 0 0 4 0 0 1 0 0 0 0 1 1 0 0 0 1 2 2 2 0 0 0 0 0 1 1

Readme

Source
raw.​githubusercontent.​com

emmet-style-reflector

Dependency

Obviously, Emmet

Description

Reflect Emmet HTML expansion in Sass/LESS

How to use

Alt text for your video

Changelogs

v1.0.2

  • tag without class and id will have “>”

Expansions tested

  • Child: #first>ul>li
#first {

    >ul {

        >li {

        }

    }

}
  • Sibling: div+p+blockquote
>div {

}

>p {

}

>blockquote {

}
  • Climb-up: #first+#second>p>span+em^blockquote
#first {

}

#second {

    >p {

        >span {

        }

        >em {

        }

    }

    >blockquote {

    }

}
  • Grouping: #first>(header>ul>li*2>a)+footer>p
#first {

    header {

        >ul {

            >li {

                >a {

                }

            }

        }

    }

    footer {

        >p {

        }

    }

}
  • Video demo: header>(ul#menu>li*5>a)^div#home>div.rensponsive960>div.box>div.title+div.body
header {

    #menu {

        >li {

            >a {

            }

        }

    }

}

#home {

    .rensponsive960 {

        .box {

            .title {

            }

            .body {

            }

        }

    }

}
  • Extreme: #first>(header[title="Hello world!"]>ul#menu>li.menuItem$@-*5>a)+footer{bla bla bla}^script
#first {

    header {

        #menu {

            .menuItem {

                >a {

                }

            }

        }

    }

    footer {

    }

}

script {

}