我想从 AngularDart Material Components 的 material-tab-components 中删除边距。我怎样才能做到这一点?
tab_component.html
@import 'package:angular_components/tree/master/lib/css/material/material';
@import 'package:angular_components/tree/master/lib/material_tab/mixins';
@include tab-panel-accent-color('.tab-panel', $mat-red);
@include tab-panel-tab-strip-width('material-tab-panel[centerStrip]', 400px);
tab_component.scss
material-tab-panel {
width: 400px;
}
material-tab {
width: 100vw;
}
.tab-background {
height: 100vh;
width: 100vw;
background-color: aqua;
}
tab_component.css
save()
答案 0 :(得分:0)
使用material-tab类设置填充。您可以通过在tab_component.css中覆盖它来更改它,如下所示:
material-tab.material-tab {
padding: 0px;
}