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.
Location:
Dev/branches/rest-dojo-ui/client/rft/css
Files:
3 added
2 deleted
7 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}
  • Dev/branches/rest-dojo-ui/client/rft/css/rftButtons.css

    r346 r349  
    2222    background-image: url('images/icons/rftIcons24.png');
    2323}
     24.claro .rftLargeButton.black .rftIcon {
     25    background-image: url('images/icons/rftIcons24b.png');
     26}
    2427.claro .rftLargeButton .dijitButtonText {
    2528    line-height: 24px;
     
    6669    width: 16px !important;
    6770    background-image: url('images/icons/rftIcons16.png') !important;
    68     margin-right: 4px !important;
     71}
     72.claro .rftBlockButton .rftIcon.black {
     73    background-image: url('images/icons/rftIcons16b.png') !important;
    6974}
    7075.claro .rftBlockButton.rftBlockButtonHover .rftIcon {
    71     background-image: url('images/icons/rftIcons16black.png') !important;
     76    background-image: url('images/icons/rftIcons16b.png') !important;
    7277}
    7378.claro .rftBlockButton.rftBlockButtonHover .dijitButtonNode {
     
    145150}
    146151.claro .rftInlineButton.black .rftIcon {
    147     background-image: url('images/icons/rftIcons16black.png');
     152    background-image: url('images/icons/rftIcons16b.png');
     153}
     154.claro .rftInlineButton .rftIcon.black {
     155    background-image: url('images/icons/rftIcons16b.png');
     156}
     157.claro .rftInlineButton .rftIcon.white {
     158    background-image: url('images/icons/rftIcons16.png');
    148159}
    149160.claro .rftInlineButton.rftInlineButtonHover .rftIcon {
  • Dev/branches/rest-dojo-ui/client/rft/css/rftIcons.css

    r344 r349  
    1 /* 
     1\/* 
    22    The icon's parent element class decides the icon size and url. (.rftLargeButton .rftIcon / .rftInlineButton .rftIcon, for example)
    33    The icon gets two classes: .rftIcon (which sets general spacing/positioning, etc),
     
    2525    Also, if possible put common/shared icons at the start of the list to prevent excessively large spritesheets.
    2626*/
     27
     28/* Types */
    2729.rftIconApplication {
    2830    background-position: 0px 0px;
     
    6466    background-position: -384px 0px;
    6567}
     68/* Actions */
    6669.rftIconAccept {
    6770    background-position: -416px 0px;
     
    97100    background-position: -736px 0px;
    98101}
    99 .rftIconSettings {
     102.rftIconProperties {
    100103    background-position: -768px 0px;
    101104}
     
    121124    background-position: -992px 0px;
    122125}
    123 .rftIconFullArrowUp {
     126.rftIconTag {
    124127    background-position: -1024px 0px;
    125128}
    126 .rftIconFullArrowDown {
     129.rftIconImage {
    127130    background-position: -1056px 0px;
    128131}
    129 .rftIconFullArrowLeft {
     132.rftIconEdit {
    130133    background-position: -1088px 0px;
    131134}
    132 .rftIconFullArrowRight {
     135.rftIconLock {
    133136    background-position: -1120px 0px;
    134137}
    135 .rftIconHalfArrowUp {
     138.rftIconUnlock {
    136139    background-position: -1152px 0px;
    137140}
    138 .rftIconHalfArrowDown {
     141.rftIconPreset {
    139142    background-position: -1184px 0px;
    140143}
    141 .rftIconHalfArrowLeft {
     144.rftIconTextBlock {
    142145    background-position: -1216px 0px;
    143146}
     147.rftIconPageBreak {
     148    background-position: -1248px 0px;
     149}
     150.rftIconExternal {
     151    background-position: -1280px 0px;
     152}
     153.rftIconInput {
     154    background-position: -1312px 0px;
     155}
     156.rftIconPublish {
     157    background-position: -1344px 0px;
     158}
     159
     160/* Arrows */
     161.rftIconFullArrowUp {
     162    background-position: -1696px 0px;
     163}
     164.rftIconFullArrowDown {
     165    background-position: -1728px 0px;
     166}
     167.rftIconFullArrowLeft {
     168    background-position: -1760px 0px;
     169}
     170.rftIconFullArrowRight {
     171    background-position: -1792px 0px;
     172}
     173.rftIconHalfArrowUp {
     174    background-position: -1824px 0px;
     175}
     176.rftIconHalfArrowDown {
     177    background-position: -1856px 0px;
     178}
     179.rftIconHalfArrowLeft {
     180    background-position: -1888px 0px;
     181}
    144182.rftIconHalfArrowRight {
    145     background-position: -1248px 0px;
     183    background-position: -1920px 0px;
    146184}
    147185
  • Dev/branches/rest-dojo-ui/client/rft/css/rftLineWithButtons.css

    r344 r349  
    4444}
    4545.claro div.orange.rftLineWithButtons,
    46 .claro .orange .ftLineWithButtons {
     46.claro *.orange .rftLineWithButtons {
    4747    background-color: #ff5b12;
    4848    color: #ffffff;
Note: See TracChangeset for help on using the changeset viewer.