0

I have this code

input {
     border:1px solid black;
     color:#FFF;
}

and this one

.input {
     padding:0px 5px 0px 3px;
 }

how in result in SASS/SCSS to get

input.input

to apply .input class for input tag (without spaces between!)

4

1 回答 1

2

在 scss 中使用它

input {
     border:1px solid black;
     color:#FFF;
    &.input {
         padding:0px 5px 0px 3px;
     }

}

会变成css

input {
     border:1px solid black;
     color:#FFF;
}
input.input{
    padding:0px 5px 0px 3px;
}
于 2013-01-11T09:29:30.660 回答