Changeset 339
- Timestamp:
- 06/04/12 18:09:33 (13 years ago)
- Location:
- Dev/branches/rest-dojo-ui/client
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/rest-dojo-ui/client/mockup.html
r338 r339 48 48 }); 49 49 </script> 50 51 50 </head> 52 <body class="dijitReset gamelab">51 <body class="dijitReset claro"> 53 52 <div class="page" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"> 53 <!-- Top menu bar --> 54 54 <div class="topbar" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'top'"> 55 55 <h1>ResearchTool</h1> 56 <!-- And now the menu! -->57 56 <div data-dojo-type="dijit.MenuBar"> 58 57 <div data-dojo-type="dijit.MenuBarItem" class="rftMainMenuButton">Sessions</div> … … 67 66 </div> 68 67 </div> 69 68 <!-- Main content window --> 70 69 <div class="content" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"> 71 70 <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'center'" style="height: 500px;"> … … 80 79 Presets 81 80 </div> 82 <div data-dojo-type="dijit.layout.TabContainer" data-dojo-props="tabPosition:'left-h',region:'center'">81 <div data-dojo-type="dijit.layout.TabContainer" class="blue" data-dojo-props="tabPosition:'left-h',region:'center'"> 83 82 <div data-dojo-type="dijit.layout.ContentPane" title="Category One"> 84 83 <div data-dojo-type="rft.ui.SelectorThijs" data-dojo-props="Title:'Subcat one'"></div> … … 110 109 </div> 111 110 </div> 111 <!-- "Shopping cart" --> 112 112 <div data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="region:'right'" style="width: 300px"> 113 113 <div data-dojo-type="rft.ui.List" data-dojo-props="region:'center'"> 114 <div data-dojo-type="rft.ui.LineWithActionsWidgetThijs" data-dojo-props="title:'Question one', actions: {'Cancel':{callback: function(){}, properties: {blockButton: false, class:'black'}}}"></div> 115 <div data-dojo-type="rft.ui.LineWithActionsWidgetThijs" data-dojo-props="title:'Question two', actions: {'Cancel':{callback: function(){}, properties: {blockButton: false, class:'black'}}}"></div> 114 <!-- These would have to be dynamically generated instead of declared here! --> 115 <div data-dojo-type="rft.ui.LineWithActionsWidgetThijs" data-dojo-props="title:'Question one', actions: {'Cancel':{callback: function(){}, properties: {blockButton: false, modifiers:'white'}}}"></div> 116 <div data-dojo-type="rft.ui.LineWithActionsWidgetThijs" data-dojo-props="title:'Question two', actions: {'Cancel':{callback: function(){}, properties: {blockButton: false, modifiers:'white'}}}"></div> 116 117 </div> 117 118 </div> -
Dev/branches/rest-dojo-ui/client/rft/css/general.css
r337 r339 2 2 They are typically small fixes or tweaks to adjust spacing and/or borders/colours */ 3 3 4 . gamelab.dijitTabPaneWrapper {4 .claro .dijitTabPaneWrapper { 5 5 border: none; 6 6 } -
Dev/branches/rest-dojo-ui/client/rft/css/layout.css
r337 r339 9 9 background-color: #333333; 10 10 } 11 . gamelab{11 .claro { 12 12 font-family: 'Segoe UI', Verdana, Arial, Helvetica, sans-serif; 13 13 color: #ffffff; … … 15 15 16 16 /* Headings */ 17 . gamelabh1 {17 .claro h1 { 18 18 /* Main logo */ 19 19 float: left; … … 28 28 -moz-user-select: none; 29 29 } 30 . gamelabh2 {30 .claro h2 { 31 31 /* Content pane title */ 32 32 font-size: 22px; … … 35 35 padding: 0; 36 36 } 37 . gamelabh2 .rftIcon {37 .claro h2 .rftIcon { 38 38 float: left; 39 39 width: 32px; … … 42 42 margin-right: 8px; 43 43 } 44 . gamelabh3 {44 .claro h3 { 45 45 /* Section headers */ 46 46 font-size: 18px; 47 47 } 48 . gamelabh4 {48 .claro h4 { 49 49 /* Small text headers/paragraph headers */ 50 50 font-size: 16px; … … 137 137 width: 190px; 138 138 } 139 140 141 /* Tabs */ 142 .claro .dijitTabContainerLeft-tabs { 143 border: none; 144 } 145 .claro .dijitTabContainerLeft-tabs .dijitTab { 146 margin: 4px 0; 147 width: 200px; 148 height: 30px; 149 } 150 .claro .dijitTab { 151 color: #999999; 152 border: 1px solid #999999; 153 transition: all 0.3s; 154 -moz-transition: all 0.3s; 155 -webkit-transition: all 0.3s; 156 -o-transition: all 0.3s; 157 } 158 .claro .dijitTab.dijitTabHover { 159 color: #ffffff; 160 transition: all 0.1s; 161 -moz-transition: all 0.1s; 162 -webkit-transition: all 0.1s; 163 -o-transition: all 0.1s; 164 } 165 .claro .dijitTab.dijitTabActive { 166 color: #0072bc; 167 transition: all 0.1s; 168 -moz-transition: all 0.1s; 169 -webkit-transition: all 0.1s; 170 -o-transition: all 0.1s; 171 /* The delay on clicking is wrong, needs to be quicker! */ 172 } 173 .claro .dijitTab.dijitTabChecked { 174 color: #ffffff; 175 border: 1px solid transparent; 176 transition: all 0.1s; 177 -moz-transition: all 0.1s; 178 -webkit-transition: all 0.1s; 179 -o-transition: all 0.1s; 180 } 181 182 .claro .dijitTabContainer.blue .dijitTab.dijitTabChecked { 183 background-color: #0072bc; 184 } 185 .claro .dijitTabContainer.orange .dijitTab.dijitTabChecked { 186 background-color: #ff5b12; 187 } 188 .claro .dijitTabContainer.red .dijitTab.dijitTabChecked { 189 background-color: #8c0310; 190 } 191 .claro .dijitTabContainer.purple .dijitTab.dijitTabChecked { 192 background-color: #6529b7; 193 } 194 .claro .dijitTabContainer.green .dijitTab.dijitTabChecked { 195 background-color: #3aa605; 196 } 197 198 .claro .dijitTabContainer.blue .dijitTab.dijitTabActive { 199 color: #0072bc; 200 } 201 .claro .dijitTabContainer.orange .dijitTab.dijitTabActive { 202 color: #ff5b12; 203 } 204 .claro .dijitTabContainer.red .dijitTab.dijitTabActive { 205 color: #8c0310; 206 } 207 .claro .dijitTabContainer.purple .dijitTab.dijitTabActive { 208 color: #6529b7; 209 } 210 .claro .dijitTabContainer.green .dijitTab.dijitTabActive { 211 color: #3aa605; 212 } -
Dev/branches/rest-dojo-ui/client/rft/css/rftButtons.css
r337 r339 1 1 /* And now for the RFT specific stuff! */ 2 2 /*LargeButton*/ 3 . gamelab.rftLargeButton {3 .claro .rftLargeButton { 4 4 margin-right: 16px; 5 5 } 6 . gamelab.rftLargeButton .dijitButtonNode {6 .claro .rftLargeButton .dijitButtonNode { 7 7 border: none; 8 8 height: 24px; … … 17 17 -o-transition: color 0.3s; 18 18 } 19 . gamelab.rftLargeButton .rftIcon {19 .claro .rftLargeButton .rftIcon { 20 20 width: 24px; 21 21 height: 24px; 22 22 background-image: url('images/icons/rftIcons24.png'); 23 23 } 24 . gamelab.rftLargeButton .dijitButtonText {24 .claro .rftLargeButton .dijitButtonText { 25 25 line-height: 24px; 26 26 margin-left: 6px; 27 27 padding: 0; 28 28 } 29 . gamelab.rftLargeButton.rftLargeButtonHover .dijitButtonNode {29 .claro .rftLargeButton.rftLargeButtonHover .dijitButtonNode { 30 30 transition: color 0.1s; 31 31 -moz-transition: color 0.1s; … … 34 34 color: #ffffff; 35 35 } 36 . gamelab.rftLargeButton.rftLargeButtonActive .dijitButtonNode {36 .claro .rftLargeButton.rftLargeButtonActive .dijitButtonNode { 37 37 color: #0794d1; 38 38 transition: color 0.1s; … … 43 43 44 44 /*BlockButton*/ 45 . gamelab.rftBlockButton {45 .claro .rftBlockButton { 46 46 height: 24px; 47 47 margin: 0; 48 48 line-height: 20px; 49 49 } 50 . gamelab.rftBlockButton .dijitButtonNode {50 .claro .rftBlockButton .dijitButtonNode { 51 51 height: 24px; 52 52 padding: 0 4px; … … 62 62 -o-transition: background-color 0.3s; 63 63 } 64 . gamelab.rftBlockButton .rftIcon {64 .claro .rftBlockButton .rftIcon { 65 65 height: 16px; 66 66 width: 16px; 67 67 background-image: url('images/icons/rftIcons16.png'); 68 68 } 69 . gamelab.rftBlockButton.rftBlockButtonHover .rftIcon {69 .claro .rftBlockButton.rftBlockButtonHover .rftIcon { 70 70 background-image: url('images/icons/rftIcons16black.png'); 71 71 } 72 . gamelab.rftBlockButton.rftBlockButtonHover .dijitButtonNode {72 .claro .rftBlockButton.rftBlockButtonHover .dijitButtonNode { 73 73 /*background: #999999 !important;*/ 74 74 /* Currently not used, only applicable when all the different colours of BlockButton need the same background colour on hover */ … … 78 78 -o-transition: background-color 0.1s; 79 79 } 80 . gamelab.rftBlockButton.blue .dijitButtonNode {80 .claro .rftBlockButton.blue .dijitButtonNode { 81 81 background: #0794d1; 82 82 } 83 . gamelab.rftBlockButton.blue.rftBlockButtonHover .dijitButtonNode {83 .claro .rftBlockButton.blue.rftBlockButtonHover .dijitButtonNode { 84 84 background: #ffffff !important; /* This should be changed to an appropriate color once it is defined in the colour scheme! */ 85 85 color: #0794d1; 86 86 } 87 . gamelab.rftBlockButton.red .dijitButtonNode {87 .claro .rftBlockButton.red .dijitButtonNode { 88 88 background: #bd0013; 89 89 } 90 . gamelab.rftBlockButton.red.rftBlockButtonHover .dijitButtonNode {90 .claro .rftBlockButton.red.rftBlockButtonHover .dijitButtonNode { 91 91 background: #ffffff !important; /* This should be changed to an appropriate color once it is defined in the colour scheme! */ 92 92 color: #bd0013; 93 93 } 94 . gamelab.rftBlockButton.green .dijitButtonNode {94 .claro .rftBlockButton.green .dijitButtonNode { 95 95 background: #79ca0a; 96 96 } 97 . gamelab.rftBlockButton.green.rftBlockButtonHover .dijitButtonNode {97 .claro .rftBlockButton.green.rftBlockButtonHover .dijitButtonNode { 98 98 background: #ffffff !important; /* This should be changed to an appropriate color once it is defined in the colour scheme! */ 99 99 color: #79ca0a; 100 100 } 101 . gamelab.rftBlockButton.orange .dijitButtonNode {101 .claro .rftBlockButton.orange .dijitButtonNode { 102 102 background: #ff9140; 103 103 } 104 . gamelab.rftBlockButton.orange.rftBlockButtonHover .dijitButtonNode {104 .claro .rftBlockButton.orange.rftBlockButtonHover .dijitButtonNode { 105 105 background: #ffffff !important; /* This should be changed to an appropriate color once it is defined in the colour scheme! */ 106 106 color: #ff9140; 107 107 } 108 . gamelab.rftBlockButton.purple .dijitButtonNode {108 .claro .rftBlockButton.purple .dijitButtonNode { 109 109 background: #993dec; 110 110 } 111 . gamelab.rftBlockButton.purple.rftBlockButtonHover .dijitButtonNode {111 .claro .rftBlockButton.purple.rftBlockButtonHover .dijitButtonNode { 112 112 background: #ffffff !important; /* This should be changed to an appropriate color once it is defined in the colour scheme! */ 113 113 color: #993dec; … … 116 116 117 117 /* InlineButton */ 118 .gamelab .rftInlineButton { 118 .claro .rftInlineButton { 119 float: right; 119 120 height: 24px; 120 margin: 0 -6px 0 -2px;121 width: 24px; 121 122 } 122 . gamelab.rftInlineButton .dijitButtonNode {123 .claro .rftInlineButton .dijitButtonNode { 123 124 width: 24px; 124 125 height: 24px; … … 128 129 border: none; 129 130 } 130 . gamelab.rftInlineButton .rftIcon {131 .claro .rftInlineButton .rftIcon { 131 132 width: 16px; 132 133 height: 16px; 133 margin: 0 4px 0 4px;134 134 background-image: url('images/icons/rftIcons16.png'); 135 135 } 136 . gamelab.rftInlineButton.white .rftIcon {136 .claro .rftInlineButton.white .rftIcon { 137 137 background-image: url('images/icons/rftIcons16.png'); 138 138 } 139 . gamelab.rftInlineButton.black .rftIcon {139 .claro .rftInlineButton.black .rftIcon { 140 140 background-image: url('images/icons/rftIcons16black.png'); 141 141 } 142 .gamelab .rftInlineButton.rftInlineButtonHover .dijitButtonNode { 143 /* No changes so far */ 144 /*background-color: #ff00ff;*/ 145 } 146 .gamelab .rftInlineButton.rftInlineButtonHover .rftIcon { 142 .claro .rftInlineButton.rftInlineButtonHover .rftIcon { 147 143 /* We should use either the displacement or the background image change, not both! */ 148 144 /*background-image: url('../../icons/images/rftIcons16c.png');*/ 149 margin : 1px 4px -1px 4px;145 margin-top: 1px; 150 146 } 151 . gamelab.rftInlineButton.rftInlineButtonActive .rftIcon {147 .claro .rftInlineButton.rftInlineButtonActive .rftIcon { 152 148 /* This "afterclick" is optional. Check to see if people like it or not! */ 153 margin: 2px 4px -2px 4px;149 /* Good, the displacement on click does not come from these settings! */ 154 150 } 155 151 156 152 /* MainMenuButton */ 157 . gamelab.dijitMenuBar .rftMainMenuButton {153 .claro .dijitMenuBar .rftMainMenuButton { 158 154 border: none; 159 155 height: 30px; … … 173 169 -o-transition: all 0.3s; 174 170 } 175 . gamelab.dijitMenuBar .rftMainMenuButton.dijitMenuItemHover {171 .claro .dijitMenuBar .rftMainMenuButton.dijitMenuItemHover { 176 172 color: #ffffff; 177 173 font-size: 26px; … … 181 177 -o-transition: all 0.1s; 182 178 } 183 . gamelab.dijitMenuBar .rftMainMenuButton.dijitMenuItemActive {179 .claro .dijitMenuBar .rftMainMenuButton.dijitMenuItemActive { 184 180 color: #0794d1 !important; 185 181 font-size: 26px; … … 189 185 -o-transition: all 0.1s; 190 186 } 191 . gamelab.dijitMenuBar .rftMainMenuButton.dijitMenuItemSelected {187 .claro .dijitMenuBar .rftMainMenuButton.dijitMenuItemSelected { 192 188 color: #ffffff; 193 189 font-size: 26px; -
Dev/branches/rest-dojo-ui/client/rft/css/rftSelector.css
r338 r339 1 . gamelab.rftSelector {1 .claro .rftSelector { 2 2 margin: 4px; 3 3 font-size: 13px; 4 4 } 5 . gamelab.rftLineWithButtons {5 .claro .rftLineWithButtons { 6 6 height: 24px; 7 7 line-height: 24px; 8 8 font-size: 13px; 9 margin: 0;9 margin: 4px 0; 10 10 white-space: nowrap; 11 11 } 12 .gamelab .rftLineWithButtons .rftLineWithButtonsButtons { 12 .claro .rftSelector .rftLineWithButtons { 13 margin: 0; 14 } 15 .claro .rftLineWithButtons .rftLineWithButtonsButtons { 13 16 float: right; 14 17 height: 24px; … … 17 20 padding: 0; 18 21 } 19 . gamelab.rftLineWithButtons .rftLineWithButtonsButtons .rftBlockButton {22 .claro .rftLineWithButtons .rftLineWithButtonsButtons .rftBlockButton { 20 23 float: right; 21 24 clear: none; 22 25 } 23 . gamelab.rftLineWithButtons .rftLineWithButtonsTitle {26 .claro .rftLineWithButtons .rftLineWithButtonsTitle { 24 27 float: left; 25 28 margin: 0 8px 0 8px; 26 29 } 27 . gamelab.rftSelectorSelected .rftSelectorColor {30 .claro .rftSelectorSelected .rftSelectorColor { 28 31 width: 8px; 29 32 height: 24px; … … 32 35 } 33 36 37 /* Own standard colour settings */ 38 .claro .rftLineWithButtons.blue { 39 background-color: #0072bc; 40 color: #ffffff; 41 } 42 .claro .rftLineWithButtons.red { 43 background-color: #8c0310; 44 color: #ffffff; 45 } 46 .claro .rftLineWithButtons.green { 47 background-color: #3aa605; 48 color: #ffffff; 49 } 50 .claro .rftLineWithButtons.purple { 51 background-color: #6529b7; 52 color: #ffffff; 53 } 54 .claro .rftLineWithButtons.orange { 55 background-color: #ff5b12; 56 color: #ffffff; 57 } 58 34 59 /* Background colour settings for the various contexts of rftLineWithButtons */ 35 . gamelab.rftSelector .rftLineWithButtons {60 .claro .rftSelector .rftLineWithButtons { 36 61 background-color: #ffffff; 37 62 color: #000000; 38 63 } 39 . gamelab.blue.rftSelector .rftLineWithButtons {64 .claro .blue.rftSelector .rftLineWithButtons { 40 65 background-color: #0072bc; 41 66 color: #ffffff; 42 67 } 43 . gamelab.red.rftSelector .rftLineWithButtons {68 .claro .red.rftSelector .rftLineWithButtons { 44 69 background-color: #8c0310; 45 70 color: #ffffff; 46 71 } 47 . gamelab.green.rftSelector .rftLineWithButtons {72 .claro .green.rftSelector .rftLineWithButtons { 48 73 background-color: #3aa605; 49 74 color: #ffffff; 50 75 } 51 . gamelab.purple.rftSelector .rftLineWithButtons {76 .claro .purple.rftSelector .rftLineWithButtons { 52 77 background-color: #6529b7; 53 78 color: #ffffff; 54 79 } 55 . gamelab.orange.rftSelector .rftLineWithButtons {80 .claro .orange.rftSelector .rftLineWithButtons { 56 81 background-color: #ff5b12; 57 82 color: #ffffff; … … 59 84 60 85 /* Black-on-white setting for non-header lines in the rftSelector */ 61 . gamelab.rftSelector .rftSelectorSelected .rftLineWithButtons {86 .claro .rftSelector .rftSelectorSelected .rftLineWithButtons { 62 87 background-color: #ffffff; 63 88 color: #000000; 64 89 } 65 . gamelab.rftSelector .rftSelectorOptions .rftLineWithButtons {90 .claro .rftSelector .rftSelectorOptions .rftLineWithButtons { 66 91 background-color: #ffffff; 67 92 color: #000000; … … 69 94 70 95 /* Colour settings for the rftSelectorColor status indicator */ 71 . gamelab.rftSelectorSelected .rftSelectorColor.conflict {96 .claro .rftSelectorSelected .rftSelectorColor.conflict { 72 97 background-color: #ff0000; 73 98 } 74 . gamelab.rftSelectorSelected .rftSelectorColor.pending {99 .claro .rftSelectorSelected .rftSelectorColor.pending { 75 100 background-color: #ff8000; 76 101 } 77 . gamelab.rftSelectorSelected .rftSelectorColor.success {102 .claro .rftSelectorSelected .rftSelectorColor.success { 78 103 background-color: #00ff00; 79 104 } 80 81 /* NOT SURE WHAT THIS DOES ATM...KEEP HERE FOR FUTURE REFERENCE IF NON-SELECTOR LINES FAIL TO DISPLAY PROPERLY82 .gamelab .rftSelector .rftSelectorCategory .rftLineWithButtons {83 display: inline-block;84 width: 100% !important;85 }86 */ -
Dev/branches/rest-dojo-ui/client/rft/ui/LineWithActionsWidgetThijs.js
r338 r339 2 2 'dijit/_WidgetBase','dijit/_TemplatedMixin','dijit/_WidgetsInTemplateMixin', 3 3 'dojo/text!./templates/LineWithActionsWidget.html' 4 ],4 ], 5 5 function(declare,lang,on,dom,domClass,Button,_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin,templateString){ 6 6 return declare('rft.ui.LineWithActionsWidgetThijs',[_WidgetBase,_TemplatedMixin,_WidgetsInTemplateMixin],{ … … 8 8 baseClass: 'rftLineWithButtons', 9 9 title: '', 10 modifiers: " red",10 modifiers: "blue", 11 11 userObject: null, 12 12 actions: {}, … … 25 25 26 26 if (this.actions[action].properties.blockButton == true) { // BlockButton 27 var properties = lang.mixin( 28 { 27 var properties = lang.mixin({ 29 28 baseClass: 'rftBlockButton', 30 29 modifiers: this.modifiers, … … 38 37 this.actions[action].properties); 39 38 properties["class"] = properties.modifiers; 40 41 39 new Button(properties).placeAt(this.buttonsNode); 42 40 } else { //InlineButton 43 new Button( 44 lang.mixin({ 45 baseClass: 'rftInlineButton', 46 "class": "black", 47 showLabel: false, 48 iconClass: 'rftIcon rftIcon'+action, 49 title: action, 50 onClick: lang.hitch(this, function(){ 51 this.actions[action].callback(this.userObject); 52 }) 53 }, this.actions[action].properties)).placeAt(this.buttonsNode); 41 var properties = lang.mixin({ 42 baseClass: 'rftInlineButton', 43 modifiers: 'black', 44 showLabel: false, 45 iconClass: 'rftIcon rftIcon'+action, 46 title: action, 47 onClick: lang.hitch(this, function(){ 48 this.actions[action].callback(this.userObject); 49 }) 50 }, 51 this.actions[action].properties); 52 properties["class"] = properties.modifiers; 53 new Button(properties).placeAt(this.buttonsNode); 54 54 } 55 55 }
Note: See TracChangeset
for help on using the changeset viewer.