//Most of these topography controls are taken from http://getbootstrap.com/components/#input-groups

#g5-container {//wrapper

    .input-group {
        position: relative;
        display: table;
        border-collapse: separate;
        @include breakpoint(mobile-only) {
            width: 90%;
        }
        input {
            position: relative;
            z-index: 2;
        }
    }

    .input-group input, .input-group-addon, .input-group-btn {
        display: table-cell;
    }

    .input-group-addon:first-child {
        border-right: 0 none;
    }

    .input-group-addon:last-child {
        border-left: 0 none;
    }

    .input-group-addon, .input-group-btn {
        white-space: nowrap;
        vertical-align: middle;
    }

    .input-group-addon {
        padding: 6px 0;
        width: 42px;
        font-size: $core-font-size - 0.1;
        font-weight: 400;
        color: $core-text;
        text-align: center;
        background-color: #f6f6f6;
        border: 1px solid $medium-gray;
        border-radius: $core-border-radius;
    }

    .input-group-btn {
        position: relative;
        font-size: 0;
        white-space: nowrap;
        z-index: 1;
        @include breakpoint(mobile-only) {
            width: 42px;
        }

        button {
            outline: 0;
        }

        .button {
            position: relative;
            border: 1px solid $medium-gray;
            border-radius: $core-border-radius;
            margin: -1px;

            &:focus {
                box-shadow: none;
            }
        }
    }

    .input-group.append {
        input {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }
        .input-group-addon, .button {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }

        .button {
            border-left: 0
        }
    }

    .input-group.prepend {
        input {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
        .input-group-addon, .button {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }
        .button {
            border-right: 0;
        }
    }

}//endwrapper
