Rakesh Roy
Rakesh Roy

Reputation: 970

How to write css class selector in scss

I want to write the below code for a scss like [class*="col-"] this one. i know how to write it in css but m using scss now.

My css code is here

@media only screen and (min-width : 768px) {
    .is-table-row {
        display: table;
    }
    .is-table-row [class*="col-"] {
        float: none;
        display: table-cell;
        vertical-align: top;
    }
}

Upvotes: 0

Views: 166

Answers (1)

Minal Chauhan
Minal Chauhan

Reputation: 6158

Try this:

@media only screen and (min-width : 768px) {
    .is-table-row {
        display: table;

       [class*="col-"] {
           float: none;
           display: table-cell;
           vertical-align: top;
     }
}

It has a some output as your css.

Upvotes: 1

Related Questions