diff options
author | Marc Englund <marc@vaadin.com> | 2012-09-28 17:05:09 +0300 |
---|---|---|
committer | Marc Englund <marc@vaadin.com> | 2012-09-28 17:05:09 +0300 |
commit | d68d89de07ff79ec8629e3aa8c8310f1aa4a237d (patch) | |
tree | ba7f2dac03d0639a9f791503534479790d7713d5 /WebContent/VAADIN/themes/base/textfield | |
parent | a499ccaa61a8aa72a1ca4334e5ba3becc6ecfb79 (diff) | |
download | vaadin-framework-d68d89de07ff79ec8629e3aa8c8310f1aa4a237d.tar.gz vaadin-framework-d68d89de07ff79ec8629e3aa8c8310f1aa4a237d.zip |
Sass restructure: base theme with renameable components
Diffstat (limited to 'WebContent/VAADIN/themes/base/textfield')
-rw-r--r-- | WebContent/VAADIN/themes/base/textfield/textfield.scss | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/WebContent/VAADIN/themes/base/textfield/textfield.scss b/WebContent/VAADIN/themes/base/textfield/textfield.scss index dc6a4d9aa3..bb6765a60d 100644 --- a/WebContent/VAADIN/themes/base/textfield/textfield.scss +++ b/WebContent/VAADIN/themes/base/textfield/textfield.scss @@ -1,23 +1,23 @@ // textfield-normal.css -@mixin base-textfield { +@mixin base-textfield($name : v-textfield) { -.v-textfield { +.#{$name} { text-align: left; /* Force default alignment */ } .v-textarea { resize: none; white-space: pre-wrap; } -.v-textfield-focus, +.#{$name}-focus, .v-textarea-focus { } -input.v-textfield-prompt, +input.#{$name}-prompt, textarea.v-textarea-prompt { color: #999; font-style: italic; } -input.v-textfield-readonly, +input.#{$name}-readonly, textarea.v-textarea-readonly { background: transparent; border: none; @@ -27,20 +27,20 @@ input.v-disabled, textarea.v-disabled { resize: none; } -input.v-textfield-readonly:focus, +input.#{$name}-readonly:focus, textarea.v-textarea-readonly:focus { outline: none; } /* Disabled by default .v-textarea-error, -.v-textfield-error, +.#{$name}-error, .v-richtextarea-error iframe.gwt-RichTextArea { background: #FFE0E0; } */ /* Disabled by default .v-textarea-required, -.v-textfield-required, +.#{$name}-required, .v-richtextarea-required iframe.gwt-RichTextArea { background: #FFE0E0; } |