Ignore:
Timestamp:
08/09/12 17:09:46 (13 years ago)
Author:
tjcschipper
Message:
  • Modifiers property on LineWithActions? and selectors is gone! Yay! Colour handling now happens through a combination of up to four CSS classes.

    "red/blue/orange/green/purple/etc": These do not do anything in themselves, they just mark a certain element as being of that colour.
    "inheritBgColor": Any element that has this class assigned will adjust its color to the color class of their parents. A 'div.blue' has no colour itself, but a 'div.inheritBgColor' within that div will turn blue. It also adjusts text colour to white.
    "bg": Any element with this property will also take on any colour class assigned to itself. This overrides 'inheritBgColor' if the element has both classes, so you could still make an orange button in a 'blue' container if you wanted. If the element itself does not have a colour class, it will stay transparent. This also adjusts text colour to white.
    "light": This class modifies the inherited/set colour to its lighter version (see RFT Design Sheet). For example, it can be used when placing a blue BlockButton? on an already blue LineWithActions?: adding the light class will differentiate the button from the background.

For examples of how to implement/derive more specific style rules using these classes, see rftButtons.css.

  • Changed all widgets still using the 'modifiers' to assign proper colour classes where necessary. (For instance, changed Selector.js to always set its main buttons to "light".)
File:
1 edited

Legend:

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

    r395 r396  
    374374}
    375375
    376 /* Experimental background colour inheritance */
    377 .claro div.blue.inheritBgColor,
    378 .claro span.blue.inheritBgColor,
     376/****************************************************
     377/*  Self- and Inherit Colours
     378/***************************************************/
     379
     380/* InheritColours */
     381.claro .inheritBgColor,
     382.claro .bg {
     383    transition: all 0.2s;
     384    -moz-transition: all 0.2s;
     385    -webkit-transition: all 0.2s;
     386}
     387
    379388.claro .blue .inheritBgColor {
    380389    background-color: #0072bc;
    381390    color: #ffffff;
    382391}
    383 .claro div.green.inheritBgColor,
    384 .claro span.green.inheritBgColor,
     392.claro .blue.light .inheritBgColor,
     393.claro .blue .light.inheritBgColor {
     394    background-color: #0794d1;
     395    color: #ffffff;
     396}
    385397.claro .green .inheritBgColor {
    386398    background-color: #3aa605;
    387399    color: #ffffff;
    388400}
    389 .claro div.orange.inheritBgColor,
    390 .claro span.orange.inheritBgColor,
     401.claro .green.light .inheritBgColor,
     402.claro .green .light.inheritBgColor {
     403    background-color: #79ca0a;
     404    color: #ffffff;
     405}
    391406.claro .orange .inheritBgColor {
    392407    background-color: #ff5b12;
    393408    color: #ffffff;
    394409}
    395 .claro div.purple.inheritBgColor,
    396 .claro span.purple.inheritBgColor,
     410.claro .orange.light .inheritBgColor,
     411.claro .orange .light.inheritBgColor {
     412    background-color: #ff9140;
     413    color: #ffffff;
     414}
     415.claro .red .inheritBgColor {
     416    background-color: #8c0310;
     417    color: #ffffff;
     418}
     419.claro .red.light .inheritBgColor,
     420.claro .red .light.inheritBgColor {
     421   background-color: #bd0013;
     422   color: #ffffff;   
     423}
    397424.claro .purple .inheritBgColor {
    398425    background-color: #6529b7;
    399426    color: #ffffff;
    400427}
    401 .claro div.red.inheritBgColor,
    402 .claro span.red.inheritBgColor,
    403 .claro .red .inheritBgColor {
     428.claro .purple.light .inheritBgColor,
     429.claro .purple .light.inheritBgColor {
     430    background-color: #993dec;
     431    color: #ffffff;
     432}
     433.claro .white .inheritBgColor {
     434    background-color: #ffffff;
     435    color: #000000;
     436}
     437.claro .black .inheritBgColor {
     438    background-color: #000000;
     439    color: #ffffff;
     440}
     441.claro .trans .inheritBgColor {
     442    background: transparent;
     443    color: #ffffff;
     444}
     445
     446/*SelfColours! */
     447.claro .blue.bg {
     448    background-color: #0072bc;
     449    color: #ffffff;
     450}
     451.claro .blue.light.bg {
     452    background-color: #0794d1;
     453    color: #ffffff;
     454}
     455.claro .green.bg {
     456    background-color: #3aa605;
     457    color: #ffffff;
     458}
     459.claro .green.light.bg {
     460    background-color: #79ca0a;
     461    color: #ffffff;
     462}
     463.claro .orange.bg {
     464    background-color: #ff5b12;
     465    color: #ffffff;
     466}
     467.claro .orange.light.bg {
     468    background-color: #ff9140;
     469    color: #ffffff;
     470}
     471.claro .red.bg {
    404472    background-color: #8c0310;
    405473    color: #ffffff;
    406474}
    407 .claro div.trans.inheritBgColor,
    408 .claro span.trans.inheritBgColor,
    409 .claro .trans .inheritBgColor {
    410     background-color: transparent;
    411     color: #ffffff;
    412 }
    413 .claro div.blue.inheritBgColor.light,
    414 .claro span.blue.inheritBgColor.light,
    415 .claro .blue .inheritBgColor.light {
    416     background-color: #0794d1;
    417     color: #ffffff;
    418 }
    419 .claro div.green.inheritBgColor.light,
    420 .claro span.green.inheritBgColor.light,
    421 .claro .green .inheritBgColor.light {
    422     background-color: #79ca0a;
    423     color: #ffffff;
    424 }
    425 .claro div.orange.inheritBgColor.light,
    426 .claro span.orange.inheritBgColor.light,
    427 .claro .orange .inheritBgColor.light {
    428     background-color: #ff9140;
    429     color: #ffffff;
    430 }
    431 .claro div.purple.inheritBgColor.light,
    432 .claro span.purple.inheritBgColor.light,
    433 .claro .purple .inheritBgColor.light {
     475.claro .red.light.bg {
     476    background-color: #bd0013;
     477    color: #ffffff;   
     478}
     479.claro .purple.bg {
     480    background-color: #6529b7;
     481    color: #ffffff;
     482}
     483.claro .purple.light.bg {
    434484    background-color: #993dec;
    435485    color: #ffffff;
    436486}
    437 .claro div.red.inheritBgColor.light,
    438 .claro span.red.inheritBgColor.light,
    439 .claro .red .inheritBgColor.light {
    440     background-color: #bd0013;
    441     color: #ffffff;
    442 }
    443 
    444 /*TODO: Apply these classes to display elements that need to inherit the interface's object colour!
    445 Remove/disable other references to these colours from files like rftButtons, rftLineWithButtons, etc to make sure it works properly.
    446 Put these settings in a separate "colours.css" file to separate the concern of styling these objects from other layout-oriented properties.
    447 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.
    448 
    449 
    450 Dropdown menu on MenuBar*/
     487.claro .white.bg {
     488    background-color: #ffffff;
     489    color: #000000;
     490}
     491.claro .black.bg {
     492    background-color: #000000;
     493    color: #ffffff;
     494}
     495.claro .trans.bg {
     496    background: transparent;
     497    color: #ffffff;
     498}
     499
     500/*Dropdown menu on MenuBar */
    451501.claro .dijitMenuPopup {
    452502
     
    541591  padding-left: 5px;
    542592}
    543 
    544593.labelsAndValues-valueCell {
    545594  padding-left: 20px;
Note: See TracChangeset for help on using the changeset viewer.