﻿/* fixes for asp radio/checkbox lists */
.radio.radiobuttonlist input[type="radio"],
.checkbox.checkboxlist input[type="checkbox"]
{
	margin-left: 0;
}

.radio.radiobuttonlist label,
.checkbox.checkboxlist label
{
	margin-bottom: 4px;
	margin-left: 0;
}

.radio.radiobuttonlist input[type=radio],
.checkbox.checkboxlist input[type=checkbox]
{
	margin-bottom: 0 !important;
}

.checkbox.asp-checkbox input[type=checkbox],
.checkbox.asp-checkbox input[type=checkbox] + label
{
    margin-left: 0;
}

/* fix checkbox in an input addon */
.input-group-addon.checkbox > label {
    padding-top: 0;
    line-height: inherit;
    min-height: 0;
}


/* spinnable glyphicon for waiting indicator
    will rotate any glyphicon but intended to be used with glyphicon-refresh
*/
.glyphicon.glyphicon-spin {
    -webkit-animation: spin 1000ms infinite linear;
    animation: spin 1000ms infinite linear;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}


/* Collapsible panels */
.panel .panel-heading a[data-toggle=collapse] {
    text-decoration: none !important;
    color: inherit;
}

.panel.panel-collapsible > .panel-heading > .panel-title > *::before {
    font-family: 'Glyphicons Halflings';
    font-weight: normal;
    font-size: .9em;
    padding-right: 3px;
}

.panel.panel-collapsible > .panel-heading > .panel-title > [aria-expanded=false]::before,
.panel.panel-collapsible > .panel-heading[aria-expanded=false] > .panel-title > *:first-child::before {
    content: "\e080";   /* chevron right */
}
.panel.panel-collapsible > .panel-heading > .panel-title > [aria-expanded=true]::before,
.panel.panel-collapsible > .panel-heading[aria-expanded=true] > .panel-title > *:first-child::before {
    content: "\e114";   /* chevron down */
}

/* override bootstrap 3 class to remove scrollbar from modal backdrop
   when not necessary */
.modal-open[style] {
   padding-right: 0px !important;
}


/*BS3 sets display:block*/
input[type="file"] {
    display:inline-block;
}

.control-label.control-label-left-align {
    text-align:left;
}

/*use with asp checkbox lists to apply the same style as the checkbox class in BS3*/
.checkboxList input[type="checkbox"] {
    margin-top:10px;
    margin-bottom:10px;
}