+++ /dev/null
-/**
- Characteristics
-*/
-
-.xv-characteristics-widget {}
-
-.xv-characteristic-picker {
- border: none;
- .onyx-picker-decorator .onyx-button {
- width: 130px;
- }
-}
-
-.xv-characteristic-item {
- border-bottom: 1px solid @smoke;
- .onyx-input-decorator > input {
- width: 115px;
- margin-top: 10px;
- margin-bottom: 10px;
- }
- > .xv-input {
- border: none;
- }
-}
-
-.xv-characteristic-buttons {
- margin: 8px;
-}
-
-.xv-characteristic-button {
- margin-left: 4px;
- color: @slate-blue;
- font-size: 24px;
-}
/*
Styles relating to the grid box
*/
+@widgetFontSize: 13px;
+
/* Entire box including the grid and the summary panel */
.xv-grid-box {
}
.xv-grid-attr {
- // This limits the text to three lines
+ // This limits the text to four lines
overflow: hidden;
display: -webkit-box;
- -webkit-line-clamp: 3;
+ -webkit-line-clamp: 4;
-webkit-box-orient: vertical;
&.bold {
height: 26px;
padding-top: 3px;
width: 100%;
- font-size: 13px;
+ font-size: @widgetFontSize;
}
}
.xv-input {
+ padding-top: 6px;
+ width: 100%;
border: none;
+
}
- .xv-picker-label {
+ .xv-label, .xv-flexible-label, .xv-picker-label {
display: none;
}
- .xv-datewidget {
- margin-right: 10px;
- padding-top: 0;
+ .xv-relationwidget {
+ .xv-description {
+ margin: 0;
+ margin-top: 5px;
+ }
+ &.xv-private-item-site-widget {
+ border-bottom: 0;
+ }
.onyx-input-decorator {
- padding: 0;
- width: 100%;
- input {
- width: 85%;
- font-size: 13px;
- }
+ .tightened-input-decorator(85%);
}
}
- .xv-numberwidget {
- padding-top: 6px;
+ .xv-datewidget {
.onyx-input-decorator {
- .tightened-input-decorator;
+ .tightened-input-decorator(75%);
}
}
.xv-combobox {
- padding-left: 0;
- input {
- padding-top: 3px;
- width: 80px;
- font-size: 13px;
- }
- }
- .xv-moneywidget {
- padding-bottom: 0;
.onyx-input-decorator {
- .tightened-input-decorator;
+ .tightened-input-decorator(60%);
}
}
.xv-useraccount-widget {
- // Hack: we shouldn't have to force this.
- .xv-subinput {
+ .xv-input {
width: 80px;
height: 16px;
}
}
- .xv-subinput {
- width: 100%;
- }
- .xv-input {
- padding-top: 6px;
- width: 100%;
- border: none;
- }
- .xv-label, .xv-flexible-label {
- display: none;
- }
- .xv-relationwidget {
- .xv-description {
- margin: 0;
- margin-top: 5px;
- }
- .onyx-input-decorator {
- width: 100%;
- padding-top: 6px;
- }
- .onyx-input {
- width: 85%;
- padding-right: 4px;
- }
- }
- .xv-private-item-site-widget {
- border-bottom: 0;
- }
}
}
}
}
}
-.tightened-input-decorator (@width: 100%) {
+.tightened-input-decorator (@inputWidth: 100%) {
padding: 0;
- width: @width;
+ width: 100%;
margin: 0;
input {
- width: (@width);
- font-size: 13px;
+ width: @inputWidth;
+ font-size: @widgetFontSize;
}
}
+++ /dev/null
-/**
- Styles relating to misc widgets
-*/
-
-.onyx-input-decorator {
- border: 0;
- input {
- width: 150px;
- }
-}
-
-.xv-dependency-picker {
- .onyx-picker-decorator {
- .onyx-button {
- width: 280px;
- margin-left: 6px;
- }
- }
-}
-
-.xv-dependency-button {
- color: @slate-blue;
- font-size: 24px;
- border: none;
- background: transparent;
-}
.xv-grid-box .xv-grid-attr {
overflow: hidden;
display: -webkit-box;
- -webkit-line-clamp: 3;
+ -webkit-line-clamp: 4;
-webkit-box-orient: vertical;
}
.xv-grid-box .xv-grid-attr.bold {
font-size: 13px;
}
.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-input {
+ padding-top: 6px;
+ width: 100%;
border: none;
}
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-label,
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-flexible-label,
.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-picker-label {
display: none;
}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-datewidget {
- margin-right: 10px;
- padding-top: 0;
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-relationwidget .xv-description {
+ margin: 0;
+ margin-top: 5px;
}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-datewidget .onyx-input-decorator {
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-relationwidget.xv-private-item-site-widget {
+ border-bottom: 0;
+}
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-relationwidget .onyx-input-decorator {
padding: 0;
width: 100%;
+ margin: 0;
}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-datewidget .onyx-input-decorator input {
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-relationwidget .onyx-input-decorator input {
width: 85%;
font-size: 13px;
}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-numberwidget {
- padding-top: 6px;
-}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-numberwidget .onyx-input-decorator {
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-datewidget .onyx-input-decorator {
padding: 0;
width: 100%;
margin: 0;
}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-numberwidget .onyx-input-decorator input {
- width: 100%;
- font-size: 13px;
-}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-combobox {
- padding-left: 0;
-}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-combobox input {
- padding-top: 3px;
- width: 80px;
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-datewidget .onyx-input-decorator input {
+ width: 75%;
font-size: 13px;
}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-moneywidget {
- padding-bottom: 0;
-}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-moneywidget .onyx-input-decorator {
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-combobox .onyx-input-decorator {
padding: 0;
width: 100%;
margin: 0;
}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-moneywidget .onyx-input-decorator input {
- width: 100%;
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-combobox .onyx-input-decorator input {
+ width: 60%;
font-size: 13px;
}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-useraccount-widget .xv-subinput {
+.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-useraccount-widget .xv-input {
width: 80px;
height: 16px;
}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-subinput {
- width: 100%;
-}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-input {
- padding-top: 6px;
- width: 100%;
- border: none;
-}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-label,
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-flexible-label {
- display: none;
-}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-relationwidget .xv-description {
- margin: 0;
- margin-top: 5px;
-}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-relationwidget .onyx-input-decorator {
- width: 100%;
- padding-top: 6px;
-}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-relationwidget .onyx-input {
- width: 85%;
- padding-right: 4px;
-}
-.xv-grid-box .xv-grid-row.selected .xv-grid-column .xv-private-item-site-widget {
- border-bottom: 0;
-}
.xv-grid-box.xv-groupbox .xv-sales-summary-panel {
border: none;
margin-top: 0;
clear: function (options) {
this.setValue(false, options);
},
- /**
- @todo Document the create method.
- */
- create: function () {
- this.inherited(arguments);
- this.labelChanged();
- },
- disabledChanged: function () {
- this.inherited(arguments);
- this.$.label.addRemoveClass("disabled", this.getDisabled());
- },
- /**
- @todo Document the inputChanged method.
- */
+
inputChanged: function (inSender, inEvent) {
var input = this.$.input.getValue();
this.setValue(input);
},
/**
- @todo Document the labelChanged method.
- */
- labelChanged: function () {
- var label = (this.getLabel() || ("_" + this.attr || "").loc()) + ":";
- this.$.label.setContent(label);
- },
- /**
@todo Document the valueChanged method.
*/
valueChanged: function (value) {
name: "XV.ComboboxWidget",
kind: "XV.InputWidget",
published: {
+ attr: null,
collection: "",
filter: null,
disabled: false,
setDisabled: function (isDisabled) {
this.inherited(arguments);
this.$.iconButton.setDisabled(isDisabled);
- this.$.label.addRemoveClass("disabled", isDisabled);
},
/**
@todo Document the keyDown method.
kind: "XV.InputWidget",
classes: "xv-input xv-datewidget",
published: {
+ attr: null,
nullValue: null,
nullText: ""
},
/** @lends XV.FileInput# */{
name: "XV.FileInput",
kind: "XV.InputWidget",
+ showLabel: false,
+ type: "file",
events: {
onValueChange: "",
onNotify: ""
handlers: {
onValueChange: "valueChange"
},
- published: {
- attr: null
- },
components: [
- {name: "label", content: "", fit: true, classes: "xv-flexible-label"},
- {name: "input", type: "file", kind: "onyx.Input",
- classes: "xv-subinput", onchange: "inputChanged"},
+ {name: "label", fit: true, classes: "xv-label"},
+ {name: "input", kind: "onyx.Input", onchange: "inputChanged"},
{name: "scrim", kind: "onyx.Scrim", showing: false, floating: true}
],
],
create: function () {
this.inherited(arguments);
- this.labelChanged();
this.showSliderChanged();
- this.showLabelChanged();
},
/**
Decreases the value of the input field by an increment of
name: "XV.ToggleButtonWidget",
kind: "XV.InputWidget",
classes: "xv-inputwidget xv-checkboxwidget",
- published: {
- attr: null
- },
events: {
onValueChange: ""
},
onChange: "changed"
},
components: [
- {kind: "FittableColumns", components: [
+ {controlClasses: 'enyo-inline', components: [
{name: "label", content: "", classes: "xv-label"},
{kind: "onyx.InputDecorator", classes: "xv-input-decorator",
components: [