Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #11 from PolymerElements/shadow-dom
Browse files Browse the repository at this point in the history
fix shadow dom styling
  • Loading branch information
notwaldorf committed May 28, 2015
2 parents 8bb44f7 + 2cc7ba4 commit 37fd3bc
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
20 changes: 16 additions & 4 deletions date-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,25 @@
display: inline-block;
}

input[is="iron-input"], span {
text-align: center;
}

span {
@apply(--paper-input-container-font);
opacity: 0.33;
text-align: center;
}

input {
position: relative; /* to make a stacking context */
outline: none;
box-shadow: none;
padding: 0;
width: 100%;
background: transparent;
border: none;
color: var(--paper-input-container-input-color, --primary-text-color);
text-align: center;

@apply(--paper-font-subhead);
@apply(--paper-input-container-input);
}

</style>
Expand Down
3 changes: 3 additions & 0 deletions date-validator.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
],

validate: function(date) {
if (!date)
return false;

if (date.month > 11 || date.month < 0)
return false;

Expand Down

0 comments on commit 37fd3bc

Please sign in to comment.