Ignore:
Timestamp:
06/29/12 19:56:22 (13 years ago)
Author:
tjcschipper
Message:
  • Finally fixed icon offsets and added a couple new icons for use in the Question/Survey? editors,as well as general purpose ones.
  • Styled the dropdown menu in the MainMenu?
  • Fixed a weird offset bug in the IndexMenu?
  • Included another way of colouring objects by their parent classes, not applied yet (in layout.css)
  • Styled the AccordionContainer?, to be used in Survey/Question? editors.
  • Removed default colour in LineWithActionsWidgetThijs?, this would override the colours inherited from parent elements (not desirable).
  • Drank a lot of coffee.
File:
1 edited

Legend:

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

    r346 r349  
    275275    width: 100px !important;
    276276}
     277
     278
     279/* Question editor/Survey Advanced editor */
     280.claro .QuestionEditor .PreviewWindow {
     281    /* Nothing yet, put preview window styling options here after we've decided on a format to follow! */
     282}
     283
     284.claro .dijitAccordionContainer {
     285    /* No styling for now, use this for margins and other layout-related business. This class does not affect the look of the AccordionContainer currently! */
     286}
     287.claro .dijitAccordionInnerContainer {
     288    /* This contains a title and a childWrapper. The two of these make up one "item" in the Accordion element */
     289    border: none;
     290    border-color: #333333;
     291    background-color: #0072bc;
     292    margin-bottom: 0;
     293}
     294.claro .dijitAccordionInnerContainer {
     295    background-color: transparent;
     296}
     297.claro .dijitAccordionTitle, .claro .dijitAccordionTitleSelected {
     298    background-color: #0072bc;
     299    background-image: none;
     300    color: #ffffff;
     301}
     302.claro .dijitAccordionTitle .rftIcon {
     303    width: 16px;
     304    height: 16px;
     305    background-image: url('images/icons/rftIcons16b.png');
     306    margin: 0 4px 2px 0;
     307}
     308.claro .dijitAccordionTitleSelected .rftIcon {
     309    background-image: url('images/icons/rftIcons16.png');
     310}
     311.claro .dijitAccordionContainer.blue .dijitAccordionTitle, .claro .dijitAccordionContainer.blue .dijitAccordionTitleSelected {
     312    background-color: #0072bc;
     313}
     314.claro .dijitAccordionContainer.blue .dijitAccordionTitleHover {
     315    background-color: #0794d1;
     316}
     317.claro .dijitAccordionContainer.orange .dijitAccordionTitle, .claro .dijitAccordionContainer.orange .dijitAccordionTitleSelected {
     318    background-color: #ff5b12;
     319}
     320.claro .dijitAccordionContainer.orange .dijitAccordionTitleHover {
     321    background-color: #ff9140;
     322}
     323.claro .dijitAccordionText {
     324    color: #ffffff;
     325}
     326.claro .dijitAccordionContainer .dijitAccordionChildWrapper {
     327    background-color: #444444;
     328    border: none !important;
     329    padding: 0;
     330    margin: 0;
     331}
     332.claro .dijitAccordionContainer .dijitAccordionInnerContainerSelectedHover .dijitAccordionChildWrapper,
     333.claro .dijitAccordionContainer .dijitAccordionInnerContainerSelectedActive .dijitAccordionChildWrapper {
     334    border: none;
     335    box-shadow: none;
     336    -moz-box-shadow: none;
     337    -webkit-box-shadow: none;
     338    /* Override the box shadow and offset on hover */
     339}
     340
     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 {
     353    background-color: #0794d1;
     354}
     355.claro div.orange.objectBgColor,
     356.claro .orange .objectBgColor {
     357    background-color: #ff5b12;
     358}
     359.claro div.lorange.objectBgColor,
     360.claro .lorange .objectBgColor {
     361    background-color: #ff9140;
     362}
     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 {
     377    background-color: #993dec;
     378}
     379.claro div.red.objectBgColor,
     380.claro .red .objectBgColor {
     381    background-color: #8c0310;
     382}
     383.claro div.lred.objectBgColor,
     384.claro .lred .objectBgColor {
     385    background-color: #bd0013;
     386}
     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*/
     398.claro .dijitMenuPopup {
     399
     400}
     401.claro .dijitMenuPopup .dijitMenu {
     402border: none;
     403background-color: #333333;
     404background-image: none;
     405color: #999999;   
     406}
     407.claro .dijitMenuPopup .dijitMenu .dijitMenuItem {
     408    color: #999999;
     409    background-image: none;
     410    background-color: transparent;
     411}
     412.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.blue,
     413.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.blue {
     414    background-color: #0072bc;
     415}
     416.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.orange,
     417.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.orange {
     418    background-color: #ff5b12;
     419}
     420.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.purple,
     421.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.purple {
     422    background-color: #6529b7;
     423}
     424.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.green,
     425.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.green {
     426    background-color: #3aa605;
     427}
     428.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover.red,
     429.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected.red {
     430    background-color: #8c0310;
     431}
     432.claro .dijitMenuPopup .dijitMenu .dijitMenuItemHover .dijitMenuItemLabel,
     433.claro .dijitMenuPopup .dijitMenu .dijitMenuItemActive .dijitMenuItemLabel,
     434.claro .dijitMenuPopup .dijitMenu .dijitMenuItemSelected .dijitMenuItemLabel {
     435    color: #ffffff;
     436}
     437.claro .dijitMenuPopup .dijitMenu .dijitMenuItem .rftIcon {
     438    height: 16px;
     439    width: 16px;
     440    margin: 0;
     441    margin-right: 4px;
     442    background-image: url('images/icons/rftIcons16.png');
     443}
     444.claro .dijitMenuPopup .dijitMenu .dijitMenuItemActive .rftIcon {
     445    background-image: url('images/icons/rftIcons16b.png');
     446}
Note: See TracChangeset for help on using the changeset viewer.