Improved layout of popups on small screens

pull/12/head
Paulus Schoutsen 2014-11-19 19:20:06 -08:00
parent 67bb64ab6b
commit 651d2dfd86
3 changed files with 19 additions and 1 deletions

View File

@ -29,6 +29,12 @@
} }
@media all and (max-width: 620px) { @media all and (max-width: 620px) {
paper-action-dialog {
margin: 0;
width: 100%;
height: 100%;
}
.eventContainer { .eventContainer {
display: none; display: none;
} }

View File

@ -30,6 +30,12 @@
} }
@media all and (max-width: 620px) { @media all and (max-width: 620px) {
paper-action-dialog {
margin: 0;
width: 100%;
height: 100%;
}
.serviceContainer { .serviceContainer {
display: none; display: none;
} }

View File

@ -9,7 +9,7 @@
<polymer-element name="state-set-dialog" attributes="api"> <polymer-element name="state-set-dialog" attributes="api">
<template> <template>
<paper-action-dialog id="dialog" heading="Set State" transition="core-transition-center" backdrop="true"> <paper-action-dialog id="dialog" heading="Set State" transition="core-transition-bottom" backdrop="true">
<style> <style>
:host { :host {
font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial; font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
@ -28,6 +28,12 @@
} }
@media all and (max-width: 620px) { @media all and (max-width: 620px) {
paper-action-dialog {
margin: 0;
width: 100%;
height: 100%;
}
.stateContainer { .stateContainer {
display: none; display: none;
} }