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

更新时间:2020-02-25 12:20:05

Browse

Emmet Style Reflector

by Ermes Enea Colella ST3 Trending Top 100

Reflect Emmet HTML expansion in Sass/LESS

Details

Installs

  • Total 214K
  • Win 172K
  • Mac 27K
  • Linux 14K
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 Jan 11
Windows 26 133 91 93 104 130 128 133 137 102 83 105 103 106 122 104 93 82 89 119 131 115 108 79 87 93 101 90 99 79 79 61 78 81 110 86 99 91 59 76 96 77 91 88 73 87
Mac 2 6 11 5 10 18 15 15 15 10 4 9 10 11 16 17 7 12 7 10 11 17 10 5 7 12 8 11 6 5 5 3 9 7 5 7 9 8 7 8 12 14 8 17 8 5
Linux 0 4 8 3 9 9 4 6 3 6 3 6 6 6 3 5 5 6 1 5 1 7 3 8 2 7 7 3 8 5 2 5 3 6 3 4 3 4 2 4 5 4 4 8 1 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 {

}