Changeset 6608
- Timestamp:
- Nov 20, 2014, 8:58:36 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/clients/web/net/sf/basedb/clients/web/taglib/Button.java
r6603 r6608 203 203 public Button() 204 204 { 205 super("basicbutton button ");205 super("basicbutton button interactable"); 206 206 } 207 207 -
trunk/src/clients/web/net/sf/basedb/clients/web/taglib/tab/TabControl.java
r6576 r6608 321 321 if (!noTabs) 322 322 { 323 String className = "tab ";323 String className = "tab interactable"; 324 324 if (tab.getClazz() != null) className += " " + tab.getClazz(); 325 325 -
trunk/src/clients/web/net/sf/basedb/clients/web/taglib/table/Button.java
r6576 r6608 219 219 public Button() 220 220 { 221 super("button ");221 super("button interactable"); 222 222 } 223 223 -
trunk/www/admin/annotationtypes/edit_annotationtype.jsp
r6387 r6608 752 752 <td style="width: 50%;"> 753 753 <b>Enabled for</b><br> 754 <select name="enabled" id="enabled" multiple size="14" style="width: 99%;"754 <select name="enabled" id="enabled" multiple size="14" style="width: calc(100% - 10px);" 755 755 data-to-id="disabled" data-is-sorted="1"> 756 756 <% … … 786 786 <td style="width: 50%;"> 787 787 <b>Disabled for</b><br> 788 <select name="disabled" id="disabled" multiple size="14" style="width: 99%;"788 <select name="disabled" id="disabled" multiple size="14" style="width: calc(100% - 10px);" 789 789 data-to-id="enabled" data-is-sorted="1"> 790 790 <% -
trunk/www/common/calendar.js
r6342 r6608 123 123 cell.tabIndex = -1; 124 124 cell.theDate = null; 125 Doc.removeClass(cell, ' validdate');125 Doc.removeClass(cell, 'interactable'); 126 126 if (day == 0 && week > 4) Doc.hide('w' + week); 127 127 } … … 131 131 cell.tabIndex = 0; 132 132 cell.theDate = new Date(year, month, dayNum); 133 Doc.addClass(cell, ' validdate');133 Doc.addClass(cell, 'interactable'); 134 134 if (day == 0) Doc.show('w' + week); 135 135 } … … 147 147 if (year == currentDate.getFullYear() && month == currentDate.getMonth() && dayNum == currentDate.getDate()) 148 148 { 149 Doc.addClass(cell, ' current');149 Doc.addClass(cell, 'active'); 150 150 cell.focus(); 151 151 } 152 152 else 153 153 { 154 Doc.removeClass(cell, ' current');154 Doc.removeClass(cell, 'active'); 155 155 } 156 156 dayNum++; -
trunk/www/common/columns/configure.jsp
r6607 r6608 96 96 <td style="width: 45%;"> 97 97 <b>Visible columns</b><br> 98 <select name="visible" id="visible" multiple size="16" style="width: 97%;">98 <select name="visible" id="visible" multiple size="16" style="width: calc(100% - 10px);"> 99 99 </select> 100 100 </td> … … 118 118 <td style="width: 45%; padding-right: 5px;"> 119 119 <b>Hidden columns</b><br> 120 <select name="hidden" id="hidden" multiple size="16" style="width: 97%;">120 <select name="hidden" id="hidden" multiple size="16" style="width: calc(100% - 10px);"> 121 121 </select> 122 122 </td> -
trunk/www/common/overview/options.jsp
r6607 r6608 86 86 .selector 87 87 { 88 border: 2px solid transparent;88 padding: 2px; 89 89 border-radius: 4px; 90 90 } … … 93 93 { 94 94 cursor: pointer; 95 border-color: #2288AA; 95 border-width: 2px; 96 padding: 0; 96 97 } 97 98 … … 173 174 <tr id="grp.<%=grp%>"> 174 175 <th> 175 <div class="selector auto-init" data-auto-init="group-toggle" data-group-id="<%=grp%>"176 <div class="selector interactable auto-init" data-auto-init="group-toggle" data-group-id="<%=grp%>" 176 177 ><base:icon id="<%="grp."+grp+".icon"%>" image="move_right.png" /><%=HTML.encodeTags(title)%></div> 177 178 </th> -
trunk/www/common/plugin/configure.js
r6394 r6608 66 66 { 67 67 // Section header entry 68 pDiv.className = 'section ';68 pDiv.className = 'section interactable'; 69 69 pDiv.innerHTML = Strings.encodeTags(pp.label); 70 70 } … … 72 72 { 73 73 // Parameter entry 74 pDiv.className = 'param ';74 pDiv.className = 'param interactable'; 75 75 var icon = ''; 76 76 if (pp.values.length > 0) … … 170 170 { 171 171 // De-select current parameter 172 Doc.removeClass('parameter-'+selectedParameter.name+':prompt', ' selected');172 Doc.removeClass('parameter-'+selectedParameter.name+':prompt', 'active'); 173 173 Doc.hide('parameter-'+selectedParameter.name+':section'); 174 174 Doc.hide('valuecontainer'); … … 177 177 selectedParameter = parameter; 178 178 179 Doc.addClass('parameter-'+parameter.name+':prompt', ' selected');179 Doc.addClass('parameter-'+parameter.name+':prompt', 'active'); 180 180 Doc.show('parameter-'+parameter.name+':section'); 181 181 -
trunk/www/common/share/share.jsp
r6607 r6608 245 245 class="auto-init" data-auto-init="link-container" 246 246 data-initial-items="<%=HTML.encodeTags(jsonShare.toJSONString()) %>" 247 size="14" multiple style="width: 97%;"247 size="14" multiple style="width: calc(100% - 10px);" 248 248 <%=!writePermission ? "disabled" : ""%>> 249 249 </select> -
trunk/www/include/scripts/main-2.js
r6591 r6608 3598 3598 if (highlightedOption) 3599 3599 { 3600 Doc.removeClass(highlightedOption, ' selected');3600 Doc.removeClass(highlightedOption, 'active'); 3601 3601 } 3602 3602 highlightedOption = option; 3603 3603 if (highlightedOption) 3604 3604 { 3605 Doc.addClass(highlightedOption, ' selected');3605 Doc.addClass(highlightedOption, 'active'); 3606 3606 // Scroll the highlighted option into view 3607 3607 var parent = option.parentNode; … … 3638 3638 // Position the dropdown div relative the main element 3639 3639 var pos = Doc.getElementPosition(element); 3640 dropdownDiv.style.width = ((pos.width < 150 ? 150 : pos.width) -4)+'px';3640 dropdownDiv.style.width = ((pos.width < 150 ? 150 : pos.width))+'px'; 3641 3641 } 3642 3642 3643 3643 // Show it 3644 Doc.addClass(element, 'active'); 3644 3645 dropdownDiv.style.display = 'block'; 3645 3646 activeSelect = element; … … 3654 3655 if (!activeSelect) return; 3655 3656 select.highlightOption(null); 3657 Doc.removeClass(activeSelect, 'active'); 3656 3658 activeSelect.dropdownDiv.style.display = 'none'; 3657 3659 activeSelect = null; … … 3679 3681 var dropdown = element.getElementsByClassName("dropdown")[0]; 3680 3682 3683 Doc.addClass(element, 'interactable'); 3684 3681 3685 // Store cross-references between the main and child elements 3682 3686 element.hiddenField = hidden; … … 3721 3725 // Create the control panel 3722 3726 var controlDiv = document.createElement('div'); 3723 controlDiv.className = 'multioptioncontrol ';3727 controlDiv.className = 'multioptioncontrol bg-filled-100'; 3724 3728 3725 3729 // The 'submit' icon … … 3773 3777 { 3774 3778 var optionDiv = document.createElement('div'); 3775 optionDiv.className = 'multioption ' + (options[i].checked ? ' checked' : '');3779 optionDiv.className = 'multioption interactable' + (options[i].checked ? ' checked' : ''); 3776 3780 optionDiv.option = options[i]; 3777 3781 optionDiv.innerHTML = options[i].value; … … 3980 3984 // Position the dropdown div relative the main element 3981 3985 var pos = Doc.getElementPosition(element); 3982 dropdownDiv.style.width = ((pos.width < 150 ? 150 : pos.width) -4)+'px';3986 dropdownDiv.style.width = ((pos.width < 150 ? 150 : pos.width))+'px'; 3983 3987 } 3984 3988 3985 3989 // Show it 3990 Doc.addClass(element, 'active'); 3986 3991 dropdownDiv.style.display = 'block'; 3987 3992 activeEnum = element; … … 3999 4004 if (highlightedOption) 4000 4005 { 4001 Doc.removeClass(highlightedOption, ' selected');4006 Doc.removeClass(highlightedOption, 'active'); 4002 4007 } 4003 4008 highlightedOption = option; 4004 4009 if (highlightedOption) 4005 4010 { 4006 Doc.addClass(highlightedOption, ' selected');4011 Doc.addClass(highlightedOption, 'active'); 4007 4012 // Scroll the highlighted option into view 4008 4013 var parent = option.parentNode; … … 4099 4104 { 4100 4105 if (!activeEnum) return; 4106 Doc.removeClass(activeEnum, 'active'); 4101 4107 smartenum.highlightOption(null); 4102 4108 activeEnum.dropdownDiv.style.display = 'none'; … … 4130 4136 var dropdown = element.getElementsByClassName("dropdown")[0]; 4131 4137 4138 Doc.addClass(element, 'interactable'); 4139 4132 4140 // Store cross-references between the main and child elements 4133 4141 element.displayField = display; … … 4194 4202 { 4195 4203 var optionDiv = document.createElement('div'); 4196 optionDiv.className = 'smartoption ';4204 optionDiv.className = 'smartoption interactable'; 4197 4205 optionDiv.optionIndex = i; 4198 4206 optionDiv.innerHTML = options[i]; -
trunk/www/include/scripts/tabcontrol-2.js
r6400 r6608 110 110 { 111 111 Doc.removeClass(tabControl.activeTab, 'active'); 112 Doc.addClass(tabControl.activeTab, 'interactable'); 112 113 } 113 114 Doc.addClass(tab, 'active'); 115 Doc.removeClass(tab, 'interactable'); 114 116 115 117 tabControl.activeTab = tab; -
trunk/www/include/styles/calendar.css
r6607 r6608 68 68 } 69 69 70 .today, . current70 .today, .active 71 71 { 72 72 font-weight: bold; 73 background-color: #FFFFFF !important; 74 border: 1px solid #2288AA; 73 background-color: #FFFFFF; 74 color: #000000; 75 border-width: 1px; 76 border-style: solid; 75 77 border-radius: 3px; 76 78 padding: 1px; 77 79 } 78 80 79 . validdate:hover, .validdate:focus81 .date.interactable:hover, .date.interactable:focus 80 82 { 81 83 cursor: pointer; 82 border: 2px solid #2288AA; 84 border-width: 2px; 85 border-style: solid; 83 86 border-radius: 3px; 84 87 padding: 0; 85 outline: 0;86 88 } 87 89 -
trunk/www/include/styles/main.css
r6607 r6608 212 212 } 213 213 214 .button:hover, .button:focus, .tab:hover, .tab:focus 214 .interactable:focus 215 { 216 outline: 0; 217 } 218 219 .interactable:hover, .interactable:focus, .interactable.active, 220 input:hover, textarea:hover, select:hover, input:focus, textarea:focus, select:focus 215 221 { 216 222 border-color: #2288AA; 217 outline: 0;218 223 } 219 224 … … 478 483 input, textarea, select 479 484 { 485 /* content-box, otherwise the content will jump around when we modify border */ 480 486 box-sizing: content-box; 481 487 font-size: 1em; … … 485 491 padding: 1px 2px 1px 2px; 486 492 background: #FFFFFF; 487 } 488 489 490 /* Make a blue-ish border when mouse is over the field */ 491 input:hover, textarea:hover, select:hover, select:focus 492 { 493 border-color: #2288AA; 493 color: #000000; 494 } 495 496 select 497 { 498 padding: 0; 494 499 } 495 500 … … 499 504 margin: 0; 500 505 border-width: 2px; 501 border-color: #2288AA;502 506 outline: 0; 503 507 } … … 507 511 { 508 512 width: 98%; 513 width: calc(100% - 8px); 509 514 } 510 515 … … 521 526 input[type="radio"]:focus, input[type="checkbox"]:focus 522 527 { 523 outline: 1px dotted #2288AA; 528 outline-width: 1px; 529 outline-style: dotted; 524 530 } 525 531 … … 547 553 .input100 .selectionlist > table 548 554 { 555 width: 100%; 556 } 557 558 .input100 .selectionlist > table > tbody > tr > td:first-child 559 { 560 width: 90%; 561 padding-right: 5px; 562 } 563 564 .input100 .selectionlist select 565 { 549 566 width: 98%; 550 } 551 552 .input100 .selectionlist > table > tbody > tr > td:first-child 553 { 554 width: 98%; 555 padding-right: 5px; 556 } 557 558 .input100 .selectionlist select 559 { 560 width: 98%; 567 width: calc(100% - 10px); 561 568 } 562 569 … … 564 571 input.required, select.required, textarea.required 565 572 { 566 background : #D0F0FF;567 border-color: #2288AA !important;573 background-color: #D0F0FF; 574 border-color: #2288AA; 568 575 } 569 576 /* Unchangeable fields have a yellow-ish background */ … … 571 578 input.unchangeable, select.unchangeable, textarea.unchangeable, .unchangeable select 572 579 { 573 background : #FFF0D0;580 background-color: #FFF0D0; 574 581 } 575 582 … … 841 848 { 842 849 height: 95%; 850 height: calc(100% - 10px); 843 851 } 844 852 … … 872 880 div.smartinput, div.multiselect 873 881 { 874 border: 1px solid #A0A0A0; 882 border-width: 1px; 883 margin: 1px; 875 884 background: #FFFFFF; 876 885 border-radius: 4px; … … 882 891 width: 100%; 883 892 min-width: 120px; 884 } 885 886 /* Bluish border when mouse is over the element */ 887 div.smartinput:hover, div.multiselect:hover 888 { 889 border-color: #2288AA; 893 border-collapse: separate; 894 } 895 896 /* 'Interactive' border when mouse is over the element */ 897 div.smartinput.active, div.multiselect.active 898 { 899 border-width: 2px; 900 margin: 0px; 890 901 } 891 902 892 903 893 904 /* The underlying input field should not behave as other input fields */ 894 .multiselect input [type="text"], .multiselect input[type="text"]:hover, .multiselect input[type="text"]:focus, .smartinput input[type="text"], .smartinput input[type="text"]:hover, .smartinput input[type="text"]:focus895 { 896 width: 97%;905 .multiselect input, .multiselect input:hover, .multiselect input:focus, .smartinput input, .smartinput input:hover, .smartinput input:focus 906 { 907 box-sizing: border-box; 897 908 border: 0px; 898 909 border-radius: 0px; … … 903 914 div.smartinput .dropdown, div.multiselect .dropdown 904 915 { 905 border-left : 1px solid #A0A0A0;916 border-left-width: 0; 906 917 cursor: pointer; 907 width: 1 7px;918 width: 16px; 908 919 } 909 920 … … 912 923 { 913 924 position: absolute; 914 background: #FFFFFF; 915 border: 1px solid #A0A0A0; 925 background-color: #FFFFFF; 926 color: #000000; 927 border-width: 1px; 916 928 z-index: 999; 917 929 overflow: auto; 918 box-shadow: 3px 3px 5px #cccccc; 930 box-shadow: 3px 3px 5px #CCCCCC; 931 margin-left: -2px; 932 margin-top: 2px; 919 933 } 920 934 … … 928 942 { 929 943 cursor: pointer; 930 padding: 1px;944 padding: 2px; 931 945 white-space: nowrap; 932 946 overflow: hidden; 933 border: 1px solid transparent;934 947 border-radius: 4px; 935 948 } 936 949 937 /* Put bluishborder around the 'active' option */938 div.smartoption. selected, div.multioption.selected939 { 940 border : 2px solid #2288AA;941 padding: 0 px;950 /* Put 'interactive' border around the 'active' option */ 951 div.smartoption.active, div.multioption.active 952 { 953 border-width: 2px; 954 padding: 0; 942 955 } 943 956 … … 945 958 div.multioptioncontrol 946 959 { 947 border-bottom: 1px solid #A0A0A0; 948 background: #E8E8E8; 960 border-bottom-width: 1px; 949 961 padding: 2px; 950 962 } … … 958 970 div.multioptions.multiple .multioption:before 959 971 { 960 content: url('../../images/option_unselected. gif');972 content: url('../../images/option_unselected.png'); 961 973 vertical-align: -15%; 962 974 } … … 964 976 div.multioptions.multiple .multioption.checked:before 965 977 { 966 content: url('../../images/option_selected.gif'); 967 vertical-align: -15%; 978 content: url('../../images/option_selected.png'); 968 979 } 969 980 970 981 div.multioptions.single .multioption:before 971 982 { 972 content: url('../../images/option_single_unselected.gif'); 973 vertical-align: -15%; 983 content: url('../../images/option_single_unselected.png'); 974 984 } 975 985 976 986 div.multioptions.single .multioption.checked:before 977 987 { 978 content: url('../../images/option_single_selected.gif'); 979 vertical-align: -15%; 988 content: url('../../images/option_single_selected.png'); 980 989 } 981 990 -
trunk/www/include/styles/parameters.css
r6607 r6608 48 48 } 49 49 50 .parameterlist .param:hover 51 { 52 cursor: pointer; 53 border: 2px solid #2288AA; 54 padding: 0px; 55 margin: 0 0 -2px 0; 56 } 57 58 .parameterlist .param.selected 50 .parameterlist .param.active 59 51 { 60 52 color: #FFFFFF; 61 background : #2288AA;53 background-color: #2288AA; 62 54 font-weight: bold; 63 55 padding: 1px 2px 1px 2px; … … 66 58 } 67 59 68 .parameterlist .param.selected:hover 60 61 .parameterlist .param:hover 69 62 { 70 border: 0; 63 cursor: pointer; 64 border-width: 2px; 65 padding: 0; 66 margin: 0 0 -2px 0; 71 67 } 72 73 68 74 69 .parameterlist .param .icon … … 96 91 { 97 92 cursor: pointer; 98 border : 2px solid #2288AA;93 border-width: 2px; 99 94 padding: 0; 100 95 margin: 4px 0 -1px 0px; -
trunk/www/include/styles/table.css
r6606 r6608 184 184 .itemlist div.data th.propertyfilter input[type="text"] 185 185 { 186 width: 97%; 186 width: 95%; 187 width: calc(100% - 7px); 187 188 } 188 189
Note: See TracChangeset
for help on using the changeset viewer.