Files @ ee3343f3658f
Branch filter:

Location: kallithea/kallithea/public/css/contextbar.css

mads
style: drop form-horizontal - our style is much closer to plain Bootstrap forms

form-horizontal is made for grid markup. It give form-groups a negative margin
to break out of the grid ... but the way we use it for settings, we have to do
weird things to undo that. The default styling for forms is much closer to what
we want. It looks ok without our custom styling and is easier to style to our
style.

If we want grid markup with form-horizontal, it would be correct to
re-introduce both at once.
/**
 * 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;
    min-height: 36px;
}

#content #context-bar .navbar-header {
    display: inline-block;
    color: #FFF;
    margin: 8px 15px 3px;
    padding-bottom: 2px;
}

#content #context-bar > .navbar-header > .navbar-brand {
    padding: 0;
}

nav.navbar #quick a,
#content #context-bar,
#content #context-bar a {
    color: #FFFFFF;
}

nav.navbar #quick a:hover,
#content #context-bar a:hover {
    text-decoration: none;
    background: inherit;
}

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

.navbar-text {
    margin-top: 0;
    margin-bottom: 0;
}

ul#quick ul.dropdown-menu > li,
ul#context-pages ul.dropdown-menu > li {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
}
ul#quick ul.dropdown-menu > li:first-child,
ul#context-pages ul.dropdown-menu > li:first-child {
    border-top: none;
}
ul#quick ul.dropdown-menu > li:last-child,
ul#context-pages ul.dropdown-menu > li:last-child {
    border-bottom: none;
}

#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;
}

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

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;
}

.repo-switcher-dropdown.select2-drop.select2-drop-active .select2-results .select2-highlighted,
ul.dropdown-menu li a:focus,
nav.navbar #quick li:hover,
#quick_login > .pull-right .list-group-item:hover,
#revision-changer:hover,
#context-pages li:hover,
#context-actions li:hover,
#content #context-actions li:hover,
nav.navbar #quick li.active,
nav.navbar #quick li a.menu_link:focus,
#context-pages li.active {
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%); /* W3C */
}

#quick_login > .pull-right .list-group-item {
    background-color: #577632;
    border: 0;
}

#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 {
    border-left: 1px solid rgba(0,0,0,0.1);
    margin-right: 15px;
}

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

nav.navbar #quick li,
nav.navbar #quick_login .pull-right,
#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;
}

.nav .open > a {
    background: inherit !important;
}

nav.navbar #quick li:last-child,
#content #context-pages li:last-child {
    border-right: none;
}

nav.navbar #quick > li:first-child {
    border-left: none;
}

nav.navbar #quick > li:first-child > a {
    border-radius: 4px 0 0 4px;
}

nav.navbar #quick > li > a,
nav.navbar #quick .select2-container .select2-choice .select2-chosen,
#context-pages > li > a,
#context-pages .select2-container .select2-choice .select2-chosen,
x#context-pages .dropdown-menu a {
    padding: 0px 10px 1px 10px;
    line-height: 43px;
}

nav.navbar #quick a.thin,
#context-pages a.thin,
#context-pages .dropdown-menu a.thin {
    line-height: 28px !important;
}

nav.navbar #quick a#quick_login_link {
    padding-left: 0px;
}

nav.navbar #quick a {
    overflow: hidden;
}
#context-pages a.dropdown-toggle: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-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;
}