scaffolding.less 1.21 KB
Newer Older
Indra Raja's avatar
Indra Raja committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
/* ------------------------------------------------------------------------------
*
*  # Scaffolding
*
*  Overrides for bootstrap scaffolding
*
*  Version: 1.3
*  Latest update: Mar 10, 2016
*
* ---------------------------------------------------------------------------- */


// HTML and BODY height reset
html {
    height: 100%;
}
body {
    position: relative;
    min-height: 100%;
}


// Links
a {
    cursor: pointer;

    // Remove outline on focus
    &:focus {
        outline: 0;
    }
}

// Figures
figure {
    position: relative;
}
figcaption {
    position: absolute;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    width: 100%;
    color: #fff;
    padding: 10px 15px;
    z-index: 2;
    background-color: fade(#000, 70%);
    .transition(all ease-in-out 0.2s);

    figure:hover & {
        opacity: 1;
        visibility: visible;
    }
}

// Rounded corners
.img-rounded {
    border-radius: @border-radius-base;
}

// Horizontal rules
.hr-condensed {
    margin-top: (@line-height-computed / 2);
    margin-bottom: (@line-height-computed / 2);
}

// Seamless row
.row-seamless {
    margin-left: 0;
    margin-right: 0;

    > div[class*=col-] {
        padding-left: 0;
        padding-right: 0;
    }
}