diff options
Diffstat (limited to 'WebContent/VAADIN/themes/base/button/button.scss')
-rw-r--r-- | WebContent/VAADIN/themes/base/button/button.scss | 162 |
1 files changed, 162 insertions, 0 deletions
diff --git a/WebContent/VAADIN/themes/base/button/button.scss b/WebContent/VAADIN/themes/base/button/button.scss new file mode 100644 index 0000000000..a9e7867268 --- /dev/null +++ b/WebContent/VAADIN/themes/base/button/button.scss @@ -0,0 +1,162 @@ +@mixin base-button { + +/* + * Default button (more customizable) + * -------------------------------------- */ +.v-button { + display: inline-block; + zoom: 1; + text-align: center !important; + text-decoration: none; + border: 2px outset #ddd; + background: #eee; + cursor: pointer; + white-space: nowrap; + margin: 0; + padding: .2em 1em; + color: inherit; + font: inherit; + line-height: normal; + -khtml-user-select: none; + -moz-user-select: none; + -ie-user-select: none; + user-select: none; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +.v-button.v-disabled { + cursor: default; +} + +.v-button-wrap, +.v-button-caption { + vertical-align: middle; + white-space: nowrap; + font: inherit; + color: inherit; + line-height: normal; + } + +.v-button .v-icon, +.v-nativebutton .v-icon { + vertical-align: middle; + margin-right: 3px; + border: none; + } + +.v-button .v-errorindicator, +.v-nativebutton .v-errorindicator { + display: inline-block; + zoom: 1; + vertical-align: middle; + float: none; +} + +/* Link style (we really should deprecate this) */ +.v-button-link, +.v-nativebutton-link { + border: none; + text-align: left !important; + background: transparent; + padding: 0; + color: inherit; + -khtml-user-select: text; + -moz-user-select: text; + -ie-user-select: text; + user-select: text; +} + +/* Inset Safari focus outline a bit */ +.v-sa .v-button-link:focus{ + outline-offset: -3px; + } + +.v-button-link .v-button-caption, +.v-nativebutton-link .v-nativebutton-caption { + text-decoration: underline; + color: inherit; + text-align: left; + } + + +/* + * NativeButton styles (html button element) + * -------------------------------------- */ +.v-nativebutton { + text-align: center !important; + cursor: pointer; + white-space: nowrap; + margin: 0; + color: inherit; + font: inherit; + line-height: normal; + } +.v-nativebutton .v-nativebutton-caption { + vertical-align: middle; + white-space: nowrap; + font: inherit; + color: inherit; + } + +.v-nativebutton .v-icon { + vertical-align: middle; + margin-right: 3px; + } + +.v-nativebutton .v-errorindicator { + display: inline-block; + zoom: 1; + float: none; +} +/* Fixes stretched buttons in IE7*/ +.v-ie .v-nativebutton { + overflow: visible; + padding-left: 1em; + padding-right: 1em; +} + +.v-ie .v-nativebutton-link { + padding: 0; +} + +/* + * Checkbox styles + * -------------------------------------- */ + + .v-checkbox { + display: block; + } + +.v-checkbox, +.v-checkbox label, +.v-checkbox input, +.v-checkbox .v-icon { + vertical-align: middle; + white-space: nowrap; +} + +.v-checkbox .v-icon { + margin: 0 2px; +} +.v-checkbox .v-errorindicator { + float: none; + display: inline; + display: inline-block; + zoom: 1; +} + + +/* Disabled by default +.v-checkbox-error { + background: #ffe0e0; +} +*/ +/* Disabled by default +.v-checkbox-required { + background: #ffe0e0; +} +*/ + +} |