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

Emmet Style Reflector

Reflect Emmet HTML expansion in Sass/LESS

Details

Installs

  • Total 101K
  • Win 77K
  • OS X 15K
  • Linux 9K
Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 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
Windows 13 94 87 121 124 122 132 141 87 99 131 114 105 142 148 87 122 116 123 136 135 135 88 107 106 130 143 120 106 83 105 128 124 122 142 145 91 94 130 133 117 141 151 93 70 130
OS X 5 11 9 18 16 18 16 15 11 10 25 20 26 22 14 15 13 16 20 19 27 14 6 15 14 24 22 20 10 17 17 11 24 18 18 20 12 15 8 15 19 38 19 19 16 20
Linux 2 2 4 5 8 10 11 14 11 5 9 11 12 14 10 6 11 8 10 8 4 2 10 7 8 12 6 7 8 4 7 6 8 11 13 4 4 10 14 5 7 10 9 5 6 6

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 {

}