/**
 * Stylesheets for the context bar
 */

i[class^='icon-'] {
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    min-width: 16px;
    min-height: 16px;
    margin: -2px 0 -4px 0;
    /* background-color: red; /* for debugging */
}

/* css classes for diff file status ... it'd be nice if css had a way to
   inherit from another class but alas, we must make sure this content is the
   same from the icon font file */

.icon-diff-M:before {
    font-family: 'kallithea';
    content: '\22a1';
    color: #d0b44c;
}

.icon-diff-D:before {
    font-family: 'kallithea';
    content: '\229f';
    color: #bd2c00;
}

.icon-diff-A:before {
    font-family: 'kallithea';
    content: '\229e';
    color: #6cc644;
}

.icon-diff-R:before {
    font-family: 'kallithea';
    content: '\e81f';
    color: #677a85;
}

#content #context-bar {
    position: relative;
    overflow: visible;
    background-color: #577632;
    padding: 0 5px;
    min-height: 36px;
}

#content #context-bar h2 {
    display: inline-block;
    color: #FFF;
}

#header #header-inner #quick a,
#content #context-bar,
#content #context-bar a {
    color: #FFFFFF;
}

#header #header-inner #quick a:hover,
#content #context-bar a:hover {
    text-decoration: none;
}

#content #context-bar .icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

ul.horizontal-list {
    display: block;
}

ul.horizontal-list > li {
    float: left;
    position: relative;
}

#header #header-inner #quick ul,
ul.horizontal-list > li ul {
    position: absolute;
    display: none;
    right: 0;
    z-index: 999;
}

#header #header-inner #quick li:hover > ul,
ul.horizontal-list li:hover > ul {
    display: block;
}

#header #header-inner #quick li ul li,
ul.horizontal-list ul li {
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
}

ul.horizontal-list > li ul ul {
    position: absolute;
    right: 100%;
    top: -1px;
    min-width: 200px;
    max-height: 400px;
    overflow-x: hidden;
    overflow-y: auto;
}

#header #header-inner #quick ul a,
ul.horizontal-list li a {
    white-space: nowrap;
}

#breadcrumbs {
    float: left;
    padding: 6px 0 5px 0;
    padding-left: 5px;
    font-weight: bold;
    font-size: 14px;
}

#breadcrumbs span {
    font-weight: bold;
    font-size: 1.4em;
}

#header #header-inner #quick ul,
#revision-changer,
#context-pages,
#context-pages ul {
    background: #3b6998; /* Old browsers */
    background: linear-gradient(to bottom, #577632 0%, #577632 100%); /* W3C */
}

#header #header-inner #quick a,
#context-actions a,
#context-pages a {
    background-repeat: no-repeat;
    background-position: 10px 50%;
    padding-left: 30px;
}

#quick a,
#context-pages ul ul a {
    padding-left: 10px;
}

ul#context-actions {
    display: inline-block;
    float: right;
    border-radius: 4px;
    background-image: linear-gradient(to bottom, #577632 0%, #577632 100%);
}

#content ul#context-actions li {
    padding: 0px;
    border-right: 1px solid rgba(0,0,0,0.1);
    border-left: 1px solid rgba(255,255,255,0.1);
}

#context-actions a {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    margin: 0px;
    height: auto;
    padding: 10px 10px 10px 30px;
    background-repeat: no-repeat;
    background-position: 10px 50%;
    font-size: 1em;
}

#context-actions a {
    padding: 11px 10px 12px 30px;
}

#header #header-inner #quick li:hover,
#revision-changer:hover,
#context-pages li:hover,
#context-actions li:hover,
#content #context-actions li:hover,
#header #header-inner #quick li.current,
#context-pages li.current {
    background: #6388ad; /* Old browsers */
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%); /* W3C */
}


#content #context-actions li:first-child {
    border-left: none;
    border-radius: 4px 0 0px 4px;
}

#content #context-actions li:last-child {
    border-right: none;
    border-radius: 0 4px 4px 0;
}

#content #context-actions .icon {
    margin: auto;
    margin-bottom: 5px;
    display: block;
    clear: both;
    float: none;
}

#content #context-pages .follow .show-following,
#content #context-pages .following .show-follow {
    display: none;
}

#context-pages {
    float: right;
    border-left: 1px solid rgba(0,0,0,0.1);
}

#content #context-pages .icon {
    margin-right: 5px;
}

#header #header-inner #quick li,
#content #context-pages li {
    border-right: 1px solid rgba(0,0,0,0.1);
    border-left: 1px solid rgba(255,255,255,0.1);
    padding: 0;
}

#header #header-inner #quick li:last-child,
#content #context-pages li:last-child {
    border-right: none;
}

#header #header-inner #quick > li:first-child {
    border-left: none;
}

#header #header-inner #quick > li:first-child > a {
    border-radius: 4px 0 0 4px;
}

#header #header-inner #quick a,
#context-pages a,
#context-pages .admin_menu a {
    display: block;
    padding: 0px 10px 1px 10px;
    line-height: 35px;
}

#header #header-inner #quick a.thin,
#context-pages a.thin,
#context-pages .admin_menu a.thin {
    line-height: 28px !important;
}

#header #header-inner #quick a#quick_login_link {
    padding-left: 0px;
}

#header #header-inner #quick a {
    overflow: hidden;
}
#quick a.childs:after,
#revision-changer:before,
#context-pages a.childs:after,
#context-pages a.dropdown:after {
    font-family: 'kallithea';
    content: ' \23f7';
}
#context-pages a.childs {
    padding-right: 30px;
}
#context-pages a.childs:after {
    position: absolute;
    float: right;
    padding-left: 5px;
    padding-right: 5px;
}

#revision-changer:before {
    position: absolute;
    top: 0px;
    right: 0px;
    border-right: 1px solid rgba(0,0,0,0.1);
    height: 25px;
    padding-top: 10px;
    padding-right: 10px;
}

#context-pages li:last-child a {
    padding-right: 10px;
}

#context-bar #revision-changer {
    position: relative;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    color: #FFFFFF;
    font-size: 0.85em;
    padding: 2px 15px;
    padding-bottom: 3px;
    padding-right: 30px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

#revision-changer .branch-name,
#revision-changer .revision {
    display: block;
    text-align: center;
    line-height: 1.5em;
}

#revision-changer .branch-name {
    font-weight: bold;
}

#revision-changer .revision {
    text-transform: uppercase;
}
