Normalize more-info bottom padding (#1682)

This commit is contained in:
randellhodges 2018-09-20 03:20:12 -05:00 committed by Paulus Schoutsen
parent d517cad6e6
commit 7f8c092dfc
3 changed files with 18 additions and 5 deletions

View File

@ -10,7 +10,6 @@ class HaLabeledSlider extends PolymerElement {
<style> <style>
:host { :host {
display: block; display: block;
padding-bottom: 16px;
} }
.title { .title {

View File

@ -29,9 +29,6 @@ class MoreInfoLight extends LocalizeMixin(EventsMixin(PolymerElement)) {
return html` return html`
<style include="iron-flex"></style> <style include="iron-flex"></style>
<style> <style>
.effect_list {
padding-bottom: 16px;
}
.effect_list, .brightness, .color_temp, .white_value { .effect_list, .brightness, .color_temp, .white_value {
max-height: 0px; max-height: 0px;
@ -61,6 +58,18 @@ class MoreInfoLight extends LocalizeMixin(EventsMixin(PolymerElement)) {
max-height: 84px; max-height: 84px;
} }
.has-brightness
.has-color_temp.is-on,
.has-white_value.is-on {
margin-top: -16px;
}
.has-brightness .brightness,
.has-color_temp.is-on .color_temp,
.has-white_value.is-on .white_value {
padding-top: 16px;
}
.has-color.is-on ha-color-picker { .has-color.is-on ha-color-picker {
max-height: 500px; max-height: 500px;
overflow: visible; overflow: visible;
@ -78,6 +87,7 @@ class MoreInfoLight extends LocalizeMixin(EventsMixin(PolymerElement)) {
paper-item { paper-item {
cursor: pointer; cursor: pointer;
} }
</style> </style>
<div class$="[[computeClassNames(stateObj)]]"> <div class$="[[computeClassNames(stateObj)]]">

View File

@ -55,8 +55,12 @@ class MoreInfoControls extends EventsMixin(PolymerElement) {
} }
} }
paper-dialog-scrollable {
padding-bottom: 16px;
}
:host([domain=camera]) paper-dialog-scrollable { :host([domain=camera]) paper-dialog-scrollable {
margin: 0 -24px -5px; margin: 0 -24px -21px;
} }
</style> </style>