paper-dialog
对于我的生活,当我在顶部有一个应用程序工具栏时,我似乎无法从顶部删除愚蠢的边距。
我设法div
通过使用仅使用标准对其进行排序margin-top: 0px;
,但我不能对app-toolbar
.
Chrome 上开发人员模式的罪魁祸首似乎是这一行,但我无法理解......
代码
paper-dialog {
border-radius: 2px;
}
app-toolbar {
background: green;
margin-top: 0px;
}
.card-content {
margin-top: 0px;
}
<base href="https://polygit.org/polymer+polymer+v1.9.1/components/" />
<script src="webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="polymer/polymer.html" />
<link rel="import" href="paper-dialog/paper-dialog.html" />
<link rel="import" href="app-layout/app-toolbar/app-toolbar.html" />
<link rel="import" href="paper-input/paper-input.html" />
<link rel="import" href="neon-animation/animations/scale-up-animation.html" />
<paper-dialog modal alwaysOnTop opened horizontalAlign="auto" entry-animation="scale-up-animation" exit-animation="fade-out-animation">
<app-toolbar>Log in</app-toolbar>
<div class="card-content">
<paper-input placeholder="username or email"></paper-input>
<paper-input placeholder="password"></paper-input>
</div>
</paper-dialog>