Styles (CSS)
This chapter shows how to customize styles in CSS files.
General customizing
The general customizing of the CSS definitions affects all projects within your WebOffice 10.9 SP2 application.
|
The original *.css files used by the WebOffice core client are located within the WebOffice 10.9 SP2 application in the subdirectory \client_core\styles\. The original files may not be changed and should only be used as a help. |
There exist two different CSS files that can be used by the WebOffice core client, weboffice_user.css and weboffice_user_rtl.css (C:\Tomcat\webapps\WebOffice\pub\client_core\styles\). The CSS file with _rtl refers to menus designed from right to left. The default CSS definitions can be overwritten in the user defined CSS files for customizing your WebOffice core client projects.
|
By default the folder contains two empty CSS files. To activate them just remove the underline _ in front of the file name. |
Project specific customizing
The project specific customizing only affects one single WebOffice core client project. In this case it is also possible to use two different CSS files in C:\Tomcat\webapps\WebOffice\pub\client_core\styles\, <Project-Skin-Name>.css and <Project-Skin-Name>_rtl.css. The default CSS files can be taken and overwritten for project specific customizing.
Order of customized CSS files
Basically the CSS files from \pub\client_core\styles\ are loaded in the following order.
•weboffice_user.css (loaded if available)
•weboffice_user_rtl.css (loaded if available and the menu is from right to left)
•<Project-Skin-Name>.css (loaded if available and the project skin is configured in the WebOffice 10.9 SP2 project
•<Project-Skin-Name>_rtl.css (loaded if available, if the project skin is configured in the WebOffice 10.9 SP2 project and the menu is from right to left)
|
Please find more details for the configuration of the project skin in WebOffice core project in Customer Information. |
|
Please consider that CSS definitions from previous loaded CSS files will be overwritten with recent ones. |
Default value in weboffice.css |
Customized value in weboffice_user.css |
|---|---|
Change the background color of the left panel |
|
.leftpane_container { /* z-index: 900; */ left: 0; top: 0; width: 100%; height: auto; padding: 5px; background-color: rgba(255, 255, 255, 1); border-bottom: 0; box-sizing: border-box; }
|
.leftpane_container { /* z-index: 900; */ left: 0; top: 0; width: 100%; height: auto; padding: 5px; background-color: rgba(216,228,232, 1); border-bottom: 0; box-sizing: border-box; }
|
Active and inactive tabs |
|
.tundra .dijitTabContainerTop-tabs .dijitTab { /*tabs*/ line-height: normal; margin-right: 0; padding: 2px 8px 2px 9px; border: 0; }
.tundra .dijitTabContainerTop-tabs .dijitTabChecked, .tundra .dijitTabContainerLeft-tabs .dijitTabChecked, .tundra .dijitTabContainerRight-tabs .dijitTabChecked{ /*active tabs*/ color: rgba(0, 114, 198, 1); }
|
.tundra .dijitTabContainerTop-tabs .dijitTab { /*tabs*/ line-height: normal; margin-right: 0; padding: 2px 8px 2px 9px; border: 0; background-color: rgba(228,241,245, 1); }
.tundra .dijitTabContainerTop-tabs .dijitTabChecked, .tundra .dijitTabContainerLeft-tabs .dijitTabChecked, .tundra .dijitTabContainerRight-tabs .dijitTabChecked{ /*active tabs*/ color: rgba(0,0,0, 1); background-color: rgba(216,228,232, 1); }
|
Other important customization options in WebOffice core Client:
User-defined values in weboffice_user.css |
Description and examples |
|---|---|
body { color: rgb(255, 0, 0); } |
General font color
|
.tundra .dijitTabContainerTop-tabs .dijitTabChecked, .tundra .dijitTabContainerLeft-tabs .dijitTabChecked, .tundra .dijitTabContainerRight-tabs .dijitTabChecked { color: rgb(255, 0, 0); }
|
font color of the active Ribbons
|
.tundra .dijitTabContainerTop-dijitContentPane, .tundra .dijitTabContainerLeft-dijitContentPane, .tundra .dijitTabContainerBottom-dijitContentPane, .tundra .dijitTabContainerRight-dijitContentPane, .tundra .dijitAccordionContainer-dijitContentPane { background-color: #FFFF00; } |
Background color of the menu bar
|
.tundra .dijitSelect .dijitButtonContents, .tundra .dijitSelect, .tundra .dijitTextBox { background: #FFFF00; } |
Background color of the selected parameters in the drop-down menu
|
.tundra .dijitMenu { border: 5px solid rgb(85, 26, 139); background-color: rgb(255, 255, 0); } |
Frame color and Frame width as well as background color of the lists of selectable values in the drop-down menus
|
.tundra .dijitMenuPassive .dijitMenuItemHover, .tundra .dijitComboBoxMenu .dijitMenuItemHover, .tundra .dijitMenuItemSelected { background-color: rgb(255, 255, 0); color: rgb(255, 0, 0); } |
Background color and font color of the object in the drop-down menus on which the mouse cursor is positioned.
|
.ribbon, .inribbon { padding: 5px; box-sizing: border-box; height: inherit; overflow: hidden; background-color: rgba(255,255,0, 1); } |
Background color of the tool forms
|
.bottombar { position: absolute; bottom: 0; right: 0; left: 0; height: 26px; z-index: 1000; border-top: 1px solid rgba(0, 0, 0, 0.25); background-color: rgba(255, 255, 0, 1); } |
Background color of the Status Bar
|
#topbar_right { position: absolute; background-color: rgb( 255,255,0 ); right: 0; padding-right: 10px; padding-left: 10px; height: 31px; display: inline-block; white-space: nowrap; box-sizing: border-box; border-bottom: solid 1px rgb( 225,225,225 ); } |
Background color of the Project Settings
|
#mapnavigator_container { display: block; z-index: 300; position: absolute; background-color: rgb(255, 255, 0); border: 1px solid rgba(0, 0, 0, 0.25); } |
Background color of the Navigation Elements
|
.maptipWidgetTitleBar { min-height: 20px; cursor: move; background-color: rgb(255, 255, 0); } |
Background color of the title bar of the Maptip window
|
.maptipWidgetFooterBar { min-height: 20px; padding-left: 5px; padding-bottom: 3px; background-color: rgba(255, 255, 0, 1); } |
Background color of the footer bar of the Maptip window
|
.maptipWidget { position: absolute; box-sizing: content-box; border: 5px solid #FFFF00; z-index: 500; min-width: 230px; overflow: hidden; } |
Frame color and Frame width of the Maptip window
|
.tundra .dijitButtonDisabled .dijitButtonNode, .tundra .dijitToggleButtonDisabled .dijitButtonNode, .tundra .dijitDropDownButtonDisabled .dijitButtonNode, .tundra .dijitComboButtonDisabled .dijitButtonNode { border: 0; background-color: rgb(255, 255, 0); } |
Background color of non selectable buttons
|
.tundra .dijitDisabled .dijitButtonText { color: rgb(255, 0, 0); } |
Font color of non selectable buttons
|
.tundra .dijitDialogTitleBar { background: rgb(225, 255, 0); } |
Background color of the title bar of dialog boxes
|
.overview_container { display: block; z-index: 900; position: absolute; top: 5px; right: 5px; overflow: hidden; background-color: rgba(255, 255, 0, 1); border: 1px solid rgba(0, 0, 0, 0.25); } |
Background color of the Overview Map
|
.zoombox { position: absolute; top: 0; left: 0; width: 0; height: 0; border: 4px solid rgba(255, 255, 0, 0.75); display: none; box-sizing: border-box; } |
Frame color of the Zoom Box
|
.zoombox { position: absolute; top: 0; left: 0; width: 0; height: 0; border: 4px solid rgba(255, 255, 0, 0.75); background-color: rgba(255, 255, 0, 0.5); display: none; box-sizing: border-box; }
|
Background color and opacity of the Zoom Box
|
.toc_label { /*display: inline-block;*/ padding: 8px; } |
Height of the row of the Table Of Contents in pixels
|
.toc_outofscale { color: rgb( 184, 134, 11 ); } |
Map Service in the Table Of Contents outside the scale
|