Ignore:
Timestamp:
07/09/12 19:24:56 (13 years ago)
Author:
tjcschipper
Message:
  • Made change to _Page.js to destroy the page's child widgets on page leave. This was causing widgets with identical names (such as "btnSave") to make regsitry throw a duplicate widget error.
  • survey.js/html now sorts loaded questions into categories and topics and creates or adds them to the proper TabPane/Selectors?. TODO: Allow for spaces in category titles.
  • Added "addQuestion()" method to Selector.js, to internalize question visualization logic.
  • Included surveyAdvanced page in run.js
  • Changes index to use proper button format, still need to figure out a way to bind content.goTo to the onclick field (since there is no index.js script being run!)
  • Various css tweaks.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/rft/css/layout.css

    r349 r354  
    281281    /* Nothing yet, put preview window styling options here after we've decided on a format to follow! */
    282282}
    283 
    284283.claro .dijitAccordionContainer {
    285284    /* No styling for now, use this for margins and other layout-related business. This class does not affect the look of the AccordionContainer currently! */
     
    339338}
    340339
    341 
    342 /* THIS IS AN EXPERIMENT !
    343  * This will allow to set one top colour, then all the "objectBgColor" or "objectHlColor" objects below it will inherit that colour, and apply it to the relevant CSS property.
    344  * Not applying these classes to an object will make it bypass the background settings.
    345 */
    346 
    347 .claro div.blue.objectBgColor,
    348 .claro .blue .objectBgColor {
    349     background-color: #0072bc;
    350 }
    351 .claro div.lblue.objectBgColor,
    352 .claro .lblue .objectBgColor {
     340/* Experimental background colour inheritance */
     341.claro div.blue.inheritBgColor,
     342.claro .blue .inheritBgColor,
     343.claro.blue .inheritBgColor {
     344    background-color: #0072bc;
     345}
     346.claro div.green.inheritBgColor,
     347.claro .green .inheritBgColor,
     348.claro.green .inheritBgColor {
     349    background-color: #3aa605;
     350}
     351.claro div.orange.inheritBgColor,
     352.claro .orange .inheritBgColor,
     353.claro.orange .inheritBgColor {
     354    background-color: #ff5b12;
     355}
     356.claro div.purple.inheritBgColor,
     357.claro .purple .inheritBgColor,
     358.claro.purple .inheritBgColor {
     359    background-color: #6529b7;
     360}
     361.claro div.red.inheritBgColor,
     362.claro .red .inheritBgColor,
     363.claro.red .inheritBgColor {
     364    background-color: #8c0310;
     365}
     366.claro div.trans.inheritBgColor,
     367.claro .trans .inheritBgColor,
     368.claro.trans .inheritBgColor {
     369    background-color: transparent;
     370}
     371.claro div.blue.inheritBgColor.light,
     372.claro .blue .inheritBgColor.light,
     373.claro.blue .inheritBgColor.light {
    353374    background-color: #0794d1;
    354375}
    355 .claro div.orange.objectBgColor,
    356 .claro .orange .objectBgColor {
    357     background-color: #ff5b12;
    358 }
    359 .claro div.lorange.objectBgColor,
    360 .claro .lorange .objectBgColor {
     376.claro div.green.inheritBgColor.light,
     377.claro .green .inheritBgColor.light,
     378.claro.green .inheritBgColor.light {
     379    background-color: #79ca0a;
     380}
     381.claro div.orange.inheritBgColor.light,
     382.claro .orange .inheritBgColor.light,
     383.claro.orange .inheritBgColor.light {
    361384    background-color: #ff9140;
    362385}
    363 .claro div.green.objectBgColor,
    364 .claro .green .objectBgColor {
    365     background-color: #3aa605;
    366 }
    367 .claro div.lgreen.objectBgColor,
    368 .claro .lgreen .objectBgColor {
    369     background-color: #79ca0a;
    370 }
    371 .claro div.purple.objectBgColor,
    372 .claro .purple .objectBgColor {
    373     background-color: #6529b7;
    374 }
    375 .claro div.lpurple.objectBgColor,
    376 .claro .lpurple .objectBgColor {
     386.claro div.purple.inheritBgColor.light,
     387.claro .purple .inheritBgColor.light,
     388.claro.purple .inheritBgColor.light {
    377389    background-color: #993dec;
    378390}
    379 .claro div.red.objectBgColor,
    380 .claro .red .objectBgColor {
    381     background-color: #8c0310;
    382 }
    383 .claro div.lred.objectBgColor,
    384 .claro .lred .objectBgColor {
     391.claro div.red.inheritBgColor.light,
     392.claro .red .inheritBgColor.light,
     393.claro.red .inheritBgColor.light {
    385394    background-color: #bd0013;
    386395}
    387 /* TODO: Apply these classes to display elements that need to inherit the interface's object colour!
    388     Remove/disable other references to these colours from files like rftButtons, rftLineWithButtons, etc to make sure it works properly.
    389     Put these settings in a separate "colours.css" file to separate the concern of styling these objects from other layout-oriented properties.
    390     When we add things like highlightColours, borders, etc, the list could become quite long, especially if more colours are added to the colour scheme in time.
    391  */
    392 
    393 
    394 
    395 
    396 
    397  /* Dropdown menu on MenuBar*/
     396
     397/*TODO: Apply these classes to display elements that need to inherit the interface's object colour!
     398Remove/disable other references to these colours from files like rftButtons, rftLineWithButtons, etc to make sure it works properly.
     399Put these settings in a separate "colours.css" file to separate the concern of styling these objects from other layout-oriented properties.
     400When we add things like highlightColours, borders, etc, the list could become quite long, especially if more colours are added to the colour scheme in time.
     401
     402
     403Dropdown menu on MenuBar*/
    398404.claro .dijitMenuPopup {
    399405
    400406}
    401407.claro .dijitMenuPopup .dijitMenu {
    402 border: none;
    403 background-color: #333333;
    404 background-image: none;
    405 color: #999999;   
     408    border: none;
     409    background-color: #333333;
     410    background-image: none;
     411    color: #999999;   
    406412}
    407413.claro .dijitMenuPopup .dijitMenu .dijitMenuItem {
     
    445451    background-image: url('images/icons/rftIcons16b.png');
    446452}
     453
     454
     455
     456
     457/* Alignment */
     458.claro .floatRight {
     459    float: right;
     460    margin: 0;
     461    padding: 0;
     462}
Note: See TracChangeset for help on using the changeset viewer.