﻿/*

Styling for the button ribbon. See include/InitializeRibbon.js for the control, xslt/HtmlTransformer.xslt for the generated HTML.    
    
*/

.eConRibbonButtonIcon {
    background: url('../images/sprite.png') no-repeat;
}

.ui-ribbon-button-icon {
    width: 32px;
    height: 32px;
}

.eConRibbonButtonIcon-help {
    background-position: 0 0;
}
.eConRibbonButtonIcon-exit {
    background-position: -32px 0;
}
.eConRibbonButtonIcon-collapseall {
    background-position: -64px 0;
}
.eConRibbonButtonIcon-expandall {
    background-position: -96px 0;
}
.eConRibbonButtonIcon-post {
    background-position: -128px 0;
}
.eConRibbonButtonIcon-postandexit {
    background-position: -160px 0;
}
.eConRibbonButtonIcon-print {
    background-position: -192px 0;
}
.eConRibbonButtonIcon-process {
    background-position: -224px 0;
}
.eConRibbonButtonIcon-processandexit {
    background-position: -256px 0;
}
.eConRibbonButtonIcon-refresh {
    background-position: -288px 0;
}
.eConRibbonButtonIcon-restart {
    background-position: -320px 0;
}
.eConRibbonButtonIcon-save {
    background-position: -352px 0;
}
.eConRibbonButtonIcon-saveandexit {
    background-position: -384px 0;
}
.eConRibbonButtonIcon-saveastemplate {
    background-position: -416px 0;
}
.eConRibbonButtonIcon-savetemplateandexit {
    background-position: -448px 0;
}
.eConRibbonButtonIcon-delete {
    background-position: -480px 0;
}
.eConRibbonButtonIcon-new {
    background-position: -512px 0;
}
.eConRibbonButtonIcon-function {
    background-position: -544px 0;
}
.eConRibbonButtonIcon-ok {
    background-position: -576px 0;
}
.eConRibbonButtonIcon-cancel {
    background-position: -608px 0;
}
.eConRibbonButtonIcon-true {
    background-position: -640px 0;
}
.eConRibbonButtonIcon-false {
    background-position: -672px 0;
}
.eConRibbonButtonIcon-previous {
    background-position: -704px 0;
}
.eConRibbonButtonIcon-next {
    background-position: -736px 0;
}
.eConRibbonButtonIcon-last {
    background-position: -768px 0;
}
.eConRibbonButtonIcon-home {
    background-position: -800px 0;
}
.eConRibbonButtonIcon-wizard {
    background-position: -832px 0;
}
.eConRibbonButtonIcon-whatif.eConRibbonButtonIcon {
    background: url('../images/whatif.png') no-repeat;
}

.ui-ribbon-item .ui-button-text-icon-primary {
    font-size: 1em;
}
.ui-ribbon-item .ui-button-text-only {
    font-size: 1.15em;
}
.ui-ribbon-item {
    height: 83px; /*fix for IE*/
}
.ui-ribbon-button {
    margin: 2px 2px 0 2px;
    width: 70px;
    height: 80px;
}
.ui-button-text-icon-primary .ui-ribbon-button-text {
    height: 32px;
}
.ui-button-text-only .ui-ribbon-button-text {
    max-height: 50px;
    top: 30px;
}
.ui-ribbon-button:not(.ui-state-hover):not(.ui-state-active):not(.ui-state-focus) {
    border: 1px solid transparent;
    background: none;
}

.ui-ribbon.ui-widget-header {
    width: 100%;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    height: 87px;
    overflow: hidden;
}
.ui-ribbon ul {
    white-space: nowrap;
    padding: 0 5px;
    float:left;
}
.ui-ribbon-item {
    /*float: left;*/
    display: inline-block;
    overflow: hidden;
    margin: 0;
    padding: 0;
    *float: left; /* IE<8 fix */
}
.ui-ribbon-button {
    cursor: pointer;
    padding: 0;
    position: relative;
    display: block;
}
.ui-ribbon-button-icon {
    clear: both;
    display: block;
    float: none;
    margin: 0 auto 0 auto;
    position: absolute;
    top: 5px;
    left: 18px;
}
.ui-ribbon-button-text {
    clear: both;
    display: block;
    float: none;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
    position: absolute;
    top: 45px;
    left: 0;
    text-align: center;
    width: 100%;
}

#eConRibbonButtonsPopup {
    padding: 0px;
    overflow: hidden;
}

#eConRibbonButtonsPopup .ui-ribbon {
    height: auto;
}

#eConRibbonButtonsPopup .ui-ribbon-item {
    display: block;
}
.noTitleBar .ui-dialog-titlebar {
    display: none;
}

#overflowButton {
    width: 25px;
}
#overflowButton .ui-ribbon-button-text {
    top: 12px;
    font-size: 1.2em;
}
#overflowPopupFocusElement {
    height: 0px;
    width: 0px;
    position: absolute;
    opacity: 0;
    filter:alpha(opacity:0);
}