Skip to content

Commit b6675ab

Browse files
committed
Merge branch 'release/v2.0.0'
2 parents c2e6cf2 + 8969a29 commit b6675ab

File tree

9 files changed

+331
-242
lines changed

9 files changed

+331
-242
lines changed

CodeTree/Innovator/Client/customer/myStyles.css

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/*
22
Aras Labs
33
Eli Donahue - 10/27/16
4+
Updated for Aras 11 SP12 - 8/13/18
45
56
Custom CSS to override the default Aras form CSS
67
All sys_f_* classes can be found in Innovator\Client\styles\default.css
@@ -94,11 +95,35 @@ input[type="image"] {
9495
/* Custom class CSS */
9596

9697
.my_label {
97-
margin-bottom: 8px;
9898
font-weight: bold;
99+
font-size: 8pt;
99100
}
100101

101102
.my_select {
103+
background: rgba(255, 255, 255, .1);
104+
border: none;
105+
border-radius: 4px 0px 0px 4px;
106+
margin: 0;
107+
outline: 0;
108+
padding: 7px;
109+
box-sizing: border-box;
110+
-webkit-box-sizing: border-box;
111+
-moz-box-sizing: border-box;
112+
background-color: #e8eeef;
113+
color: #8a97a0;
114+
-webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset;
115+
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset;
116+
border: 1px solid #D9DEDF;
117+
color: #000;
118+
119+
-webkit-appearance: menulist-button;
120+
height: 30px;
121+
122+
/* subtract width of button from item and dropdown fields */
123+
width: calc(100% - 30px) !important;
124+
}
125+
126+
.my_custom_span {
102127
background: rgba(255, 255, 255, .1);
103128
border: none;
104129
border-radius: 4px;
@@ -126,6 +151,13 @@ input[type="image"] {
126151
border-radius: 4px 0px 0px 4px;
127152
}
128153

154+
.my_button {
155+
border-radius: 0px 4px 4px 0px;
156+
height: 30px !important;
157+
background-color: #3668b1 !important;
158+
width: 30px !important;
159+
}
160+
129161
.info_group {
130162
background: #E8EEEF;
131163
color: #000;

Import/CustomFormCss/Import/Method/labs_StyleForm.xml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
// get element associated with an item property's "button"
4747
getItemFieldButton = function (field) {
4848
var itms = document.getElementsByClassName(field);
49-
return itms[0].getElementsByClassName("sys_f_input_image");
49+
var parentEl = itms[0].parentElement;
50+
return parentEl.getElementsByTagName("button");
5051
};
5152
5253
// replace icon on an item property's "button"
@@ -62,13 +63,25 @@
6263
var labels = document.getElementsByClassName("sys_f_label");
6364
setAttributeOnAll(labels, 'style', '');
6465
appendAttributeOnAll(labels, 'class', 'my_label');
66+
67+
// required in 11 SP12+ to style dropdown fields & item fields
68+
labels = document.getElementsByClassName("aras-field__label");
69+
setAttributeOnAll(labels, 'style', '');
70+
appendAttributeOnAll(labels, 'class', 'my_label');
6571
6672
// default select style
67-
var selects = document.getElementsByClassName('sys_f_select');
68-
replaceClass(selects, 'sys_f_select', 'my_select');
69-
70-
selects = document.getElementsByClassName('sys_f_div_select');
71-
replaceClass(selects, 'sys_f_div_select', 'my_select_div');
73+
var selects = document.getElementsByClassName('aras-filter-list__input');
74+
replaceClass(selects, 'aras-filter-list__input', 'my_select ');
75+
76+
selects = document.getElementsByClassName('aras-dropdown-container');
77+
replaceClass(selects, 'aras-dropdown-container', ' my_select_div');
78+
79+
// style dropdown and item field buttons
80+
var buttons = document.getElementsByClassName('aras-filter-list__button');
81+
appendAttributeOnAll(buttons, 'class', 'my_button');
82+
83+
buttons = document.getElementsByClassName('aras-filter-list__button_ellipsis');
84+
appendAttributeOnAll(buttons, 'class', 'my_button');
7285
7386
// default date select style with custom button icon and class
7487
var cals = document.getElementsByClassName("sys_f_input_image_calendar_ff");

0 commit comments

Comments
 (0)