/* =Tools
----------------------------------------------- */

@media screen {

/* highlight selected tool */
.mode_admin a.action.admin,
.mode_login a.action.login,
.mode_register a.action.register,
.mode_profile a.action.profile,
.mode_recent a.action.recent,
.mode_index a.action.index,
.mode_media a.action.media,
.mode_revisions a.action.revs,
.mode_backlink a.action.backlink,
.mode_subscribe a.action.subscribe {
    background-color: @ini_text_neu;
}

.page-tools {
    a span.icon {
        display: inline-block;
        width: 20px;
        height: 20px;
        -webkit-font-smoothing: antialiased;
        font-size: 20px;
        line-height: 1;
        font-family: 'Genericons';
        text-decoration: inherit;
        font-weight: normal;
        font-style: normal;
        vertical-align: top;
    }

    a           span.icon:before { content: '\f101'; }

    a.edit      span.icon:before { content: '\f411'; }
    a.create    span.icon:before { content: '\f510'; }
    a.show      span.icon:before { content: '\f403'; }
    a.source    span.icon:before { content: '\f462'; }
    a.draft     span.icon:before { content: '\f416'; }
    a.revs      span.icon:before { content: '\f303'; }
    a.backlink  span.icon:before { content: '\f107'; }
    a.top       span.icon:before { content: '\f435'; }
    a.revert    span.icon:before { content: '\f467'; }
    a.subscribe span.icon:before { content: '\f410'; }
}

.site-tools,
.user-tools {
    a span {
        display: inline-block;
        width: 20px;
        height: 20px;
        -webkit-font-smoothing: antialiased;
        font-size: 20px;
        line-height: 1;
        font-family: 'Genericons';
        text-decoration: inherit;
        font-weight: normal;
        font-style: normal;
        vertical-align: top;
    }

    a           span:before { content: '\f101'; }

    a.admin     span:before { content: '\f445'; }
    a.login     span:before { content: '\f427'; }
    a.logout    span:before { content: '\f470'; }
    a.register  span:before { content: '\f425'; }
    a.profile   span:before { content: '\f304'; }
    a.recent    span:before { content: '\f307'; }
    a.index     span:before { content: '\f507'; }
    a.media     span:before { content: '\f473'; }
}

} /* /@media */


@media only screen and (min-width: 960px) {

.page-tools {
    position: fixed;
    top: 40px;
    left: 320px;

    a span {
        width: 60px;
        display: block;
        text-align: center;
    }
    a span.icon {
        width: 60px;
        height: 60px;
        background: @ini_text_neu;
        color: @ini_background;
        font-size: 30px;
        line-height: 2;

        -webkit-border-radius: 50%;
        -moz-border-radius:    50%;
        border-radius:         50%;
        -webkit-transition: all 0.25s ease-in-out;
        -moz-transition:    all 0.25s ease-in-out;
        -ms-transition:     all 0.25s ease-in-out;
        -o-transition:      all 0.25s ease-in-out;
        transition:         all 0.25s ease-in-out;
    }

    a:hover span.icon {
        background: @ini_background;
        color: @ini_text_alt;
    }
}

.mode_revisions .page-tools a.revs span.icon,
.mode_backlink .page-tools a.backlink span.icon,
.mode_revert .page-tools a.revert span.icon,
.mode_subscribe .page-tools a.subscribe span.icon {
    background: @ini_background;
    color: @ini_text_alt;
    position: relative;

    &:after {
        content: '';
        z-index: 2;
        display: block;
        position: absolute;
        top: 25px;
        right: -25px;
        border-left: 5px solid @ini_text_alt;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
    }
}

} /* /@media */

@media only screen and (max-width: 959px) {
    .page-tools .a11y {
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        height: auto !important;
    }
}
