Placeholder Mixin SCSS/CSS

前端 未结 6 813
挽巷
挽巷 2020-11-28 01:34

I\'m trying to create a mixin for placeholders in sass.

This is the mixin I\'ve created.

@mixin placeholder ($css) {
  ::-webkit-input-placeholder {         


        
6条回答
  •  温柔的废话
    2020-11-28 02:14

    I use exactly the same sass mixin placeholder as NoDirection wrote. I find it in sass mixins collection here and I'm very satisfied with it. There's a text that explains a mixins option more.

提交回复
热议问题