common.less

@import "./variables.less";

html, body {
    /* Sticky footer requires body and html with this height */
    height: 100%
}
body {
    /* prevent horizontal scroll caused by overflowing background */
    overflow-x: hidden;
    color: #66595c;
    font-size: 16px;
    font-weight: normal;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

* {
    outline: none !important;
    border-radius: 0 !important;
}

h2 {
    font-size: 30px;
}

h1, h2, h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

a {
    color: #efeae1;
    text-decoration: none;
    &:focus, &:hover, &:visited {
        text-decoration: none;
    }
    &:hover {
        color: white;
    }
    &:visited {
        color: #efeae1;
    }
}

input {
    color: @secondary-color-dark;
    outline: none !important;
    border: none !important;
    border-bottom: 1px solid @color-grey-light !important;
    width: 100%;
    &:focus {
        color: @secondary-color-darker;
        border-bottom: 1px solid @secondary-color-darker !important;
    }
}

input[type='number'] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin: 0;
}

/* Bootstrap Override */
.clickable {
    cursor: pointer;
    cursor: hand;
}

/* Visibility */
@media screen and (max-width: 320px) {
    .hidden-very-xs {
        display: none !important;
    }
}

/* COLORS */
/* Backgrounds */
.ib-blue-bg {
    background: #00bfff;
    border: 1px solid #00bfff;
    color: #FFF;
    &:hover, &:focus {
        background: #FFF;
        color: #00bfff;
    }
}
.ib-blue-bg-only {
    background: #00bfff;
    border: 1px solid #00bfff;
    color: #FFF;
}
/* Texts */
.ib-pink-txt {
    color: #ff286d;
}

/* Layout */
.main-content-wrapper {
    // 131px = 56px (header height) + 55px(footer height) + 20px(footer top margin)
    min-height: ~"calc(100% - 108px)";
    height: auto !important;
    .full-content {
        padding: 0;
    }
}
.column {
    padding: 0;
}
.column.main-content {
    padding: 15px 0;
}

/* Common */
.noscroll {
    overflow: hidden;
}
.full-width {
    width: 100%;
}
.input-value-wrapper {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    .input-value {
        border-bottom: 1px dashed #ccc !important;
        display: inline-block;
        margin-right: 20px;
        &:last-child {
            margin-right: 0;
        }
    }
}

.inputfield {
    margin-top: 10px;
    &:first-child {
        margin-top: 0;
    }
    label.input-title {
        color: #777777;
        font-size: 0.75em;
        font-weight: normal;
        margin-bottom: 0;
        text-transform: uppercase;
    }
    .split-two {
        display: inline-block;
        width: ~"calc(50% - 8px)";
        &.first {
            margin-right: 5px;
        }
        &.second {
            margin-left: 5px;
        }
    }
}

.uppercase {
    text-transform: uppercase;
}

.choose-one, .choose-multiple {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.calendar-widget {
    border-bottom: 1px solid @color-grey-light !important;
    .show-date, .calendar-icon {
        display: inline-block;
    }
    .show-date {
        width: ~"calc(100% - 40px)";
    }
}

.panel {
    box-shadow: 0px 0px 5px 5px #dcdcdc;
    -moz-box-shadow: 0px 0px 5px 5px #dcdcdc;
    webkit-box-shadow: 0px 0px 5px 5px #dcdcdc;
    margin: 30px 0;
    padding: 1px 20px 20px 20px;

    .list-item {
        margin-top: 35px;
        &:first-child {
            margin-top: 0;
        }

        .index {
            border: 1px solid #acacac;
            background: #acacac;
            color: white;
            display: inline-block;
            padding: 5px 15px;
        }

        .sub-index {
            background: white;
            color: #777;
        }

        .underline {
            width: 100%;
            border-bottom: 1px dotted #acacac;
        }
    }
}

@media screen and (max-width: 550px) {
    .main-content-wrapper .full-content {
        padding: 0 15px;
    }

    .partial-content {
        width: 100% !important;
    }

    .split-two {
        width: 100% !important;
    }
}