@import "absolutelayout/absolutelayout.scss";
@import "accordion/accordion.scss";
@import "button/button.scss";
+@import "button/nativebutton.scss";
+@import "button/checkbox.scss";
@import "layout/layout.scss";
@import "caption/caption.scss";
@import "common/common.scss";
@include base-absolutelayout;
@include base-accordion;
@include base-button;
+ @include base-nativebutton;
+ @include base-checkbox;
@include base-caption;
// here for now to preserve old semantics
line-height: normal;
}
-.#{$name} .v-icon,
-.v-nativebutton .v-icon {
+.#{$name} .v-icon {
vertical-align: middle;
margin-right: 3px;
border: none;
}
-.#{$name} .v-errorindicator,
-.v-nativebutton .v-errorindicator {
+.#{$name} .v-errorindicator {
display: inline-block;
zoom: 1;
vertical-align: middle;
}
/* Link style (we really should deprecate this) */
-.#{$name}-link,
-.v-nativebutton-link {
+.#{$name}-link {
border: none;
text-align: left !important;
background: transparent;
outline-offset: -3px;
}
-.#{$name}-link .#{$name}-caption,
-.v-nativebutton-link .v-nativebutton-caption {
+.#{$name}-link .#{$name}-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;
-}
-*/
-
-}
+}
\ No newline at end of file
--- /dev/null
+@mixin base-checkbox($name : v-checkbox) {
+
+ .#{$name} {
+ display: block;
+ }
+
+.#{$name},
+.#{$name} label,
+.#{$name} input,
+.#{$name} .v-icon {
+ vertical-align: middle;
+ white-space: nowrap;
+}
+
+.#{$name} .v-icon {
+ margin: 0 2px;
+}
+.#{$name} .v-errorindicator {
+ float: none;
+ display: inline;
+ display: inline-block;
+ zoom: 1;
+}
+
+
+/* Disabled by default
+.#{$name}-error {
+ background: #ffe0e0;
+}
+*/
+/* Disabled by default
+.#{$name}-required {
+ background: #ffe0e0;
+}
+*/
+
+}
--- /dev/null
+@mixin base-nativebutton($name : v-nativebutton) {
+
+
+.#{$name} .v-icon {
+ vertical-align: middle;
+ margin-right: 3px;
+ border: none;
+ }
+
+.#{$name} .v-errorindicator {
+ display: inline-block;
+ zoom: 1;
+ vertical-align: middle;
+ float: none;
+}
+
+/* Link style (we really should deprecate this) */
+.#{$name}-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;
+}
+
+.#{$name}-link .#{$name}-caption {
+ text-decoration: underline;
+ color: inherit;
+ text-align: left;
+ }
+
+.#{$name} {
+ text-align: center !important;
+ cursor: pointer;
+ white-space: nowrap;
+ margin: 0;
+ color: inherit;
+ font: inherit;
+ line-height: normal;
+ }
+.#{$name} .#{$name}-caption {
+ vertical-align: middle;
+ white-space: nowrap;
+ font: inherit;
+ color: inherit;
+ }
+
+.#{$name} .v-icon {
+ vertical-align: middle;
+ margin-right: 3px;
+ }
+
+.#{$name} .v-errorindicator {
+ display: inline-block;
+ zoom: 1;
+ float: none;
+}
+/* Fixes stretched buttons in IE7*/
+.v-ie .#{$name} {
+ overflow: visible;
+ padding-left: 1em;
+ padding-right: 1em;
+}
+
+.v-ie .#{$name}-link {
+ padding: 0;
+}
+
+}
cursor: default;
}
-.#{$name}-link .#{$name}-caption,
-.v-nativebutton-link .v-nativebutton-caption {
+.#{$name}-link .#{$name}-caption {
line-height: inherit;
font-weight: normal;
color: #1b699f;
text-shadow: none;
}
-.#{$name}-link:focus .#{$name}-caption,
-.v-nativebutton-link:focus .v-nativebutton-caption {
+.#{$name}-link:focus .#{$name}-caption {
outline: 1px dotted #1b699f;
}
@import "button-small-style.scss";
@import "button-link-style.scss";
-/* Browser-specific corrections to the standard implementation */
-@import "button-ie.scss";
-
-@mixin reindeer-button {
+@mixin reindeer-button($name : v-button) {
// TODO use $exclude
@include reindeer-button-standard;
@include reindeer-button-primary-style;
@include reindeer-button-small-style;
@include reindeer-button-link-style;
-
- /* Browser-specific corrections to the standard implementation */
- @include reindeer-button-ie;
-
}
--- /dev/null
+/* Browser-specific corrections to the standard implementation */
+@import "button-ie.scss";
+
+@mixin reindeer-nativebutton-link($name : v-nativebutton) {
+
+.#{$name}-link .#{$name}-caption {
+ line-height: inherit;
+ font-weight: normal;
+ color: #1b699f;
+ font-size: 12px;
+ text-shadow: none;
+ }
+
+.#{$name}-link:focus .#{$name}-caption {
+ outline: 1px dotted #1b699f;
+ }
+
+}
+
+@mixin reindeer-nativebutton($name : v-nativebutton) {
+ @include reindeer-nativebutton-link($name);
+
+ /* Browser-specific corrections to the standard implementation */
+ @include reindeer-button-ie($name);
+}
\ No newline at end of file
@import "accordion/accordion.scss";
@import "a-sprite-definitions/a-sprite-definitions.scss";
@import "button/button.scss";
+@import "button/nativebutton.scss";
@import "common/common.scss";
@include reindeer-accordion;
// TODO @include a-sprite-definitions;
@include reindeer-button;
+ @include reindeer-nativebutton;
@include reindeer-common;
@include reindeer-datefield;
@include reindeer-formlayout;