﻿.button-light {
    width: 100%;
    background: none;
    flex: 1 1 auto;
    padding: .5em;
    border: 2px solid #bbb;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    color: initial;
    font-weight: bold;
    -webkit-text-decoration-line: none;
    text-decoration-line: none;
    z-index: 1;
}
    .button-light:after {
        position: absolute;
        transition: .3s;
        content: '';
        width: 0;
        left: 50%;
        bottom: 0;
        height: 3px;
        background: #33ccff;
        opacity: .5;
        height: 100%;
        z-index: -1;
    }
    .button-light:hover {
        color: initial;
    }
        .button-light:hover:after, .button-light:focus:after {
            left: 0;
            width: 100%;
        }

.button-light-red:after {
    background: red;
}

.button-light-green:after {
    background: #0f0;
}

.button-light-disabled {
    background: #ccc;
}

    .button-light-disabled:after {
        background: #ccc;
    }

/**For old div*/

.light-button {
    flex: 1 1 auto;
    padding: .5em;
    border: 2px solid #bbb;
    text-align: center;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    color: initial;
    font-weight: bold;
    -webkit-text-decoration-line: none;
    text-decoration-line: none;
    z-index: 1;
}
    .light-button:after {
        position: absolute;
        transition: .3s;
        content: '';
        width: 0;
        left: 50%;
        bottom: 0;
        height: 3px;
        background: #33ccff;
        opacity: .5;
        height: 100%;
        z-index: -1;
    }
    .light-button:hover {
        cursor: pointer;
        color: initial;
    }
        .light-button:hover:after {
            left: 0;
            width: 100%;
        }

.light-button-red:after {
    background: red;
}
.light-button-green:after {
    background: #0f0;
}
.light-button-disabled {
    background: #ccc;
}
.light-button-disabled:after {
    background: #ccc;
}