NeptuneDesign / vs-html-to-css

Generate CSS classes from HTML structure (Visual Studio Code)
6 stars 3 forks source link

Not generate classname #10

Closed cescnguyen closed 3 years ago

cescnguyen commented 3 years ago
<!DOCTYPE html>
<html lang="en">
    <head>
        <style type="text/css">
            .container1 {
            }
            .container2 {
            }
            .dropdown {
            }
            .dropdown-select {
            }
            .dropdown-value {
            }
            .dropdown-list {
            }
            .dropdown-item {
            }
        </style>
    </head>
    <body>
        <div class="container">test</div>
        <div class="container1">test 1</div>
        <div class="container2">
            <p>
                Lorem ipsum dolor sit amet consectetur adipisicing elit.
                Consequatur distinctio, molestias recusandae, maiores ex
                doloribus asperiores voluptatum assumenda veritatis, saepe ipsam
                esse veniam dolores itaque tenetur autem ratione doloremque
                dolore.
            </p>
            <div class="dropdown">
                <div class="dropdown-select">
                    <spam class="dropdown-value">Value</spam>
                </div>
                <div class="dropdown-list">
                    <div class="dropdown-item">Item 1</div>
                    <div class="dropdown-item">Item 2</div>
                    <div class="dropdown-item">Item 3</div>
                </div>
            </div>
        </div>
    </body>
</html>

Not generate classname container

NeptuneDesign commented 3 years ago

Hello, this is because by default the container class is ignored in the parameters. "vs-html-to-css.ignore": ["container", "row"],