https://lovelacelee.github.io/cnTIL
This project is maintained by lovelacelee
Sass语法支持两种格式,scss/sass,两种语法可以互相加载
@mixin button-base() {
@include typography(button);
@include ripple-surface;
@include ripple-radius-bounded;
display: inline-flex;
position: relative;
height: $button-height;
border: none;
vertical-align: middle;
&:hover { cursor: pointer; }
&:disabled {
color: $mdc-button-disabled-ink-color;
cursor: default;
pointer-events: none;
}
}
{}
和;
的语法
```SASS
@mixin button-base()
@include typography(button)
@include ripple-surface
@include ripple-radius-boundeddisplay: inline-flex position: relative height: $button-height border: none vertical-align: middle
&:hover cursor: pointer
&:disabled color: $mdc-button-disabled-ink-color cursor: default pointer-events: none ```