diff --git a/demo.html b/demo.html index 6631a07..ad95b6c 100644 --- a/demo.html +++ b/demo.html @@ -18,8 +18,13 @@ + + + + + @@ -162,6 +167,20 @@ +
+ + + + + + Croissant + Donut + Financier + Madeleine + + + +
diff --git a/paper-decorator-base.html b/paper-decorator-base.html new file mode 100644 index 0000000..8e683e9 --- /dev/null +++ b/paper-decorator-base.html @@ -0,0 +1,538 @@ + + + + + + + + + + + +.label-text, +.error { + color: {{g.paperInput.labelColor}}; +} + +::-webkit-input-placeholder { + color: {{g.paperInput.labelColor}}; +} + +::-moz-placeholder { + color: {{g.paperInput.labelColor}}; +} + +:-ms-input-placeholder { + color: {{g.paperInput.labelColor}}; +} + +.unfocused-underline { + background-color: {{g.paperInput.labelColor}}; +} + +:host([focused]) .floated-label .label-text { + color: {{g.paperInput.focusedColor}}; +} + +.focused-underline { + background-color: {{g.paperInput.focusedColor}}; +} + +:host(.invalid) .floated-label .label-text, +.error { + color: {{g.paperInput.invalidColor}}; +} + +:host(.invalid) .unfocused-underline, +:host(.invalid) .focused-underline { + background-color: {{g.paperInput.invalidColor}}; +} + + + + + + + + + + diff --git a/paper-dropdown-decorator.html b/paper-dropdown-decorator.html new file mode 100644 index 0000000..a453299 --- /dev/null +++ b/paper-dropdown-decorator.html @@ -0,0 +1,72 @@ + + + + + + + + diff --git a/paper-input-decorator.html b/paper-input-decorator.html index ef9a04c..b3c42e5 100644 --- a/paper-input-decorator.html +++ b/paper-input-decorator.html @@ -1,398 +1,10 @@ - - - - - - - - - - -.label-text, -.error { - color: {{g.paperInput.labelColor}}; -} - -::-webkit-input-placeholder { - color: {{g.paperInput.labelColor}}; -} - -::-moz-placeholder { - color: {{g.paperInput.labelColor}}; -} - -:-ms-input-placeholder { - color: {{g.paperInput.labelColor}}; -} - -.unfocused-underline { - background-color: {{g.paperInput.labelColor}}; -} - -:host([focused]) .floated-label .label-text { - color: {{g.paperInput.focusedColor}}; -} - -.focused-underline { - background-color: {{g.paperInput.focusedColor}}; -} - -:host(.invalid) .floated-label .label-text, -.error { - color: {{g.paperInput.invalidColor}}; -} - -:host(.invalid) .unfocused-underline, -:host(.invalid) .focused-underline { - background-color: {{g.paperInput.invalidColor}}; -} - - - - - - + +