Skip to content

Commit

Permalink
Fix portrait mode styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Dec 31, 2018
1 parent b622448 commit 0c0ba6e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions theme/material/vaadin-login-overlay-styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,14 @@
[part="form"] ::slotted(*) {
position: relative;
bottom: 60px;
margin: auto;
}

[part="form"] h2 {
text-align: center;
font-weight: 500;
}

@media only screen
and (max-width: 500px) {
[part="overlay"],
[part="content"] {
height: 100%;
}
}

[part="card"] {
background: var(--material-secondary-background-color);
}
Expand Down Expand Up @@ -124,6 +117,12 @@
/* Small screen */
@media only screen
and (max-width: 500px) {
[part="overlay"],
[part="content"],
[part="card"] {
height: 100%;
}

[part="content"] {
min-height: 100%;
background: var(--material-background-color);
Expand Down

0 comments on commit 0c0ba6e

Please sign in to comment.