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

Emmet Style Reflector

Reflect Emmet HTML expansion in Sass/LESS

Details

Installs

  • Total 97K
  • Win 74K
  • OS X 15K
  • Linux 8K
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 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10
Windows 76 122 142 145 91 94 130 133 117 141 151 93 70 130 160 136 130 152 120 99 146 141 162 115 103 86 119 125 120 157 153 138 111 97 160 146 139 134 144 99 86 124 145 132 142 129
OS X 10 18 18 20 12 15 8 15 19 38 19 19 16 20 22 27 20 16 8 13 18 22 28 17 11 9 11 23 25 20 30 16 12 9 9 48 16 20 20 12 20 13 24 22 27 18
Linux 6 11 13 4 4 10 14 5 7 10 9 5 6 6 4 8 4 8 10 6 11 7 13 9 5 5 5 8 5 12 3 11 6 6 13 11 13 9 14 9 6 5 7 13 13 20

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 {

}