Ignore:
Timestamp:
08/08/12 18:06:21 (13 years ago)
Author:
tjcschipper
Message:
  • Fixed inheritBgColor CSS classes. Now works for buttons as well. LineWithActions? and the classes that use it still need some changes. LWA needs to get rid of colour "modifier" property and always pass "inheritBgColor (light, optionally) to the buttons". Classes that use LWA need to stop passing modifiers to them;)
  • Improved SurveyEditorPreviewItem? design, less of an eyesore, and can now use the correct button colors.
Location:
Dev/branches/rest-dojo-ui/client/rft/ui/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/ui/templates/QuestionEditorPreviewItem.html

    r392 r395  
    1 <div class="inheritBgColor light">
    2         <div class="topBorder inheritBgColor light dojoDndHandle" data-dojo-attach-point="topBorderNode">
     1<div>
     2        <div class="topBorder inheritBgColor dojoDndHandle">
    33                <span class="title" data-dojo-attach-point="titleNode">Default title</span>
    4                 <span class="floatRight">
    5                         <button class="blue" data-dojo-type="dijit.form.Button" data-dojo-props="baseClass: 'rftBlockButton', showLabel: false, iconClass: 'rftIcon rftIconHalfArrowUp'" data-dojo-attach-point="foldButtonNode">Fold</button>
    6                         <button class="blue" data-dojo-type="dijit.form.Button" data-dojo-attach-point="removeButtonNode" data-dojo-props="baseClass: 'rftBlockButton', showLabel: false, iconClass: 'rftIcon rftIconDelete'">Remove</button>
     4                <span class="floatRight" data-dojo-attach-point="buttonsNode">
     5                        <button class="trans" data-dojo-type="dijit.form.Button" data-dojo-attach-point="editButtonNode" data-dojo-props="baseClass: 'rftBlockButton', iconClass: 'rftIcon rftIconEdit'">Edit</button>
     6                        <button class="trans" data-dojo-type="dijit.form.Button" data-dojo-attach-point="foldButtonNode" data-dojo-props="baseClass: 'rftBlockButton', showLabel: false, iconClass: 'rftIcon rftIconHalfArrowUp'">Fold</button>
     7                        <button class="trans" data-dojo-type="dijit.form.Button" data-dojo-attach-point="removeButtonNode" data-dojo-props="baseClass: 'rftBlockButton', showLabel: false, iconClass: 'rftIcon rftIconDelete'">Remove</button>
    78                </span>
    89        </div>
    910       
    1011        <div class="surveyEditorPreviewItemInner" data-dojo-attach-point="innerNode">
    11                 <div class="surveyEditorPreviewItemContent inheritBgColor" data-dojo-attach-point="containerNode">
     12                <div class="surveyEditorPreviewItemContent" data-dojo-attach-point="containerNode">
    1213                </div>
    1314        </div>
    14        
    15         <div class="bottomBorder inheritBgColor light" data-dojo-attach-point="bottomBorderNode">
    16                 <span class="floatRight">
    17                         <button class="trans" data-dojo-type="dijit.form.Button" data-dojo-attach-point="editButtonNode" data-dojo-props="baseClass: 'rftBlockButton', iconClass: 'rftIcon rftIconEdit'">Edit</button>
    18                 </span>
    19         </div>
    2015</div>
  • Dev/branches/rest-dojo-ui/client/rft/ui/templates/QuestionEditorToolkit.html

    r390 r395  
    99                                        <div data-dojo-attach-point="listNode" class="rftLineListView"></div>
    1010                                        <div data-dojo-attach-point="categoriesBoxNode"></div>
    11                                         <button data-dojo-type="dijit.form.Button" data-dojo-attach-event="onClick:onCategoryAdd" data-dojo-props="baseClass:'rftBlockButton', class:'orange', iconClass: 'rftIcon rftIconPlus'">Add</button><br>
     11                                        <button class="inheritBgColor light" data-dojo-type="dijit.form.Button" data-dojo-attach-event="onClick:onCategoryAdd" data-dojo-props="baseClass:'rftBlockButton', iconClass: 'rftIcon rftIconPlus'">Add</button><br>
    1212                                        <label>Topic:</label>
    1313                                        <div data-dojo-attach-point="topicBoxNode"></div>
Note: See TracChangeset for help on using the changeset viewer.