Fixes for RTL community events list

Fixes for RTL community events list

change direction of parag on the top of table and the direction of table's content

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

@import "../../sandstone/lib.less";

@font-face {
    font-family: 'Font Awesome';
    src: url('/media/fonts/fontawesome-webfont.eot?v4.01#iefix') format('embedded-opentype'),
         url('/media/fonts/fontawesome-webfont.woff?v4.01') format('woff'),
         url('/media/fonts/fontawesome-webfont.ttf?v4.01') format('truetype');
    font-weight: normal;
    font-style: normal;
}

// Some common colors
@mozillared:   #c13832;
@lightbeige:   #fcf9f4;
@darkbeige:    #d7d3c8;
@green:        #7abf88;

// Some common classes/mixins
.button-flat {
    .open-sans;
    background-color: @linkBlue;
    color: #fff;
    display: inline-block;
    border: 0;
    border-radius: .5em;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    .transition(all .15s ease-in-out);

    &:hover,
    &:focus,
    &:active {
        color: #fff;
        background-color: lighten(@linkBlue, 5%);
        text-decoration: none;
    }
}

.button-hollow {
    .button-flat;
    background-color: transparent;
    border: 2px solid;
    color: @linkBlue;

    &:hover,
    &:focus,
    &:active {
        border-color: @linkBlue;
    }
}

.go {
    .trailing-arrow;
}

// Forms
input[type='text'],
input[type='email'],
textarea {
    background: @lightbeige;
    border-radius: 6px;
    border: 2px solid @darkbeige;
    .font-size(@largeFontSize);
    padding: .5em 8px;
    width: 100%;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    .transition(border-color .2s ease);
}

input:focus,
textarea:focus {
    background: #fff;
}

.select {
    background: @lightbeige;
    border-radius: 6px;
    border: 2px solid @darkbeige;
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: auto;
    max-width: 100%;
    padding: .35em 8px;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    .transition(border-color .2s ease);

    select {
        background: none;
        border: none;
        .font-size(@largeFontSize);
        font-family: inherit;
        width: 100%;
        padding: 0 20% 0 0;
        outline: none;
        text-overflow: '';
        -webkit-appearance: none;
           -moz-appearance: window;
                appearance: none;

        &::-ms-expand {
          display: none;
        }

        &:-moz-focusring {
            color: transparent;
            text-shadow: 0 0 0 @textColorPrimary;
        }
    }

    &:after {
        color: #bbb;
        content: '\f0d7';
        display: block;
        font-family: 'Font Awesome';
        .font-size(20px);
        height: 100%;
        width: 30px;
        line-height: 32px;
        vertical-align: middle;
        padding:0;
        pointer-events: none;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        text-align: center;
    }
}

.select.focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(73, 173, 227, .4);
    border-color: #42a4e0;

    select {
        outline: 0;
        box-shadow: none;

        &:-moz-focusring {
            color: transparent;
            text-shadow: 0 0 0 @textColorPrimary;
        }
    }
}

/*-------------------------------------------------------------------------*/
// Generic @Sections
.section {
    position: relative;

    .container {
        padding: 40px 10px;
        position: relative;
    }
}

// A mixin for sections with dark backgrounds
.section-dark() {
    color: #fff;

    .section-title {
        color: #fff;
        text-shadow: none;
    }

    a {
        color: #fff;
    }
}

.section-title {
    .open-sans-light;
    letter-spacing: -.05em;
    line-height: 1.1;
    text-align: center;
    .font-size(42px);
    margin: 0 auto 30px;
}

.section-tagline {
    .font-size(28px);
    line-height: 1.2;
    text-align: center;
    .open-sans-light;
}

/*-------------------------------------------------------------------------*/
// Override sandstone base layout so we can have full-width blocks.
#wrapper,
#main-content {
    width: 100%;
    padding: 0;
}

#masthead,
.container {
    width: @widthDesktop - (@gridGutterWidth * 2);
    .clearfix();
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

#tabzilla {
    position: absolute;
    right: 0;
    z-index: 999;
}

/*-------------------------------------------------------------------------*/
// @Header
.page-head {
    padding: 11.714em 0 20px; /* 185px */
    margin-top: 0;
    background: #fff;

    h2 {
        text-align: center;
        line-height: 1.2;
    }
}

.page-title {
    .font-size(72px);
    text-align: center;
    color: @mozillared;
}

.head-stats {
    list-style: none;
    margin: 30px auto;
    .container;
    .clearfix;

    li {
        .span(4);
        text-align: center;
    }

    strong {
        display: block;
        .font-size(42px);
        font-weight: normal;
        line-height: 1.1;
        .open-sans-light;
    }
}

.country-form {
    position: absolute;
    right: 30px;
    bottom: 0;
    width: 135px;

    p {
        margin: 0;
    }

    label {
        .visually-hidden();
    }

    .select select {
        .font-size(@smallFontSize);
    }
}

.js .country-form button {
    .visually-hidden();
}

// @Navigation
.contribute-masthead {
    position: absolute;
    top: 0;
    z-index: 1;
    background: @mozillared;
    padding: 40px 0 10px;
    width: 100%;
    min-height: 40px;
    border-bottom: 1px solid darken(@mozillared, 5%);
    .section-dark;
    .clearfix;
}

.contribute-nav {
    .span(10);

    .toggle {
        display: none;
    }

    li {
        .span(2);
        display: block;
        font-weight: bold;
        line-height: 1.1;
        list-style: none;
        min-height: 40px;
        position: relative;
        text-align: center;
        text-shadow: 0 1px 0 rgba(0, 0, 0, .1);
        text-transform: uppercase;
        vertical-align: bottom;
    }

    a {
        border-radius: 3px;
        box-sizing: border-box;
        color: #e29fa0;
        display: block;
        padding: 10px;
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        .transition(all .15s ease-in-out);

        &:hover,
        &:focus,
        &:active {
            background-color: lighten(@mozillared, 10%);
            background-color: rgba(255, 255, 255, .1);
            color: #fff;
            text-decoration: none;
        }
    }

    .nav-cta {
        .span(3);

        a {
            .button-flat;
            border-radius: 6px;
            margin-top: 10px;
            background-color: darken(@mozillared, 10%);
            bottom: 10px;
            left: 10px;
            width: auto;
        }
    }
}

#landing .nav-landing,
#events .nav-events,
#stories .nav-stories {
    padding-bottom: 10px;
    margin-bottom: -10px;

    a {
        color: #fff;
        bottom: 10px;
    }

    &:after {
        border-style: solid;
        border-width: 13px;
        border-color: transparent;
        border-top-color: @mozillared;
        content: '';
        height: 0;
        left: 50%;
        margin-left: -13px;
        pointer-events: none;
        position: absolute;
        top: 100%;
        width: 0;
    }
}

/*-------------------------------------------------------------------------*/
// @Landing page

// Intro
.landing-intro {
    min-height: 340px;
    overflow: hidden;
    .section-dark;

    .cta {
        position: absolute;
        bottom: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        z-index: 1000;

        a {
            .button-flat;
            .trailing-arrow;
            .font-size(18px);
            padding: 20px 40px;
            min-width: 240px;
        }
    }
}

// Slideshow
#slideshow {
    height: 340px;
    background: #000;

    .slide {
        height: 300px;
        padding-bottom: 100px;
        width: 100%;
        text-align: center;
        background-color: #000;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .container {
        z-index: 3;
    }

    .section-title {
        margin-left: @gridColumnWidth;
        margin-right: @gridColumnWidth;
    }
}

.slide-one {
    .section-title {
        margin-top: 1em;
    }
    background-image: url(/media/img/contribute/bg-slide1-2000.jpg);
}

.slide-two {
    background-image: url(/media/img/contribute/bg-slide2-2000.jpg);
}

.slide-three {
    background-image: url(/media/img/contribute/bg-slide3-2000.jpg);
}

.cycle-pager {
    width: 100%;
    height: 25px;
    text-align: center;
    position: absolute;
    bottom: 25px;
    z-index: 1000;

    span {
        display: inline-block;
        margin: 0 5px;
        width: 15px;
        height: 15px;
        border: 2px solid #fff;
        border-radius: 50%;
        text-indent: -999em;
        overflow: hidden;
        cursor: pointer;
        .transition(background-color .2s ease-in-out);

        &:hover {
            background: rgba(255, 255, 255, .5);
        }

        &.cycle-pager-active {
            background: #fff;
        }
    }
}

/*-------------------------------------------------------------------------*/
// Our mission
.landing-mission {
    .mission-content {
        .span(6);
        .font-size(@largeFontSize);
        margin-top: 20px;
        text-align: center;

        h2 {
            .font-size(28px);
        }

        .mission-cta {
            text-align: center;
            text-transform: uppercase;
            font-weight: bold;
            font-style: normal;

            a:before {
                font-family: 'Font Awesome';
                content: '\f01d'; /* play circle */
                margin-right: 8px;
                font-weight: normal;
                .font-size(@largeFontSize);
                text-decoration: none;
            }
        }
    }

    .mission-video {
        .span(6);
        position: relative;

        a:focus {
            outline: 0;
        }

        a:before {
            .transition(background-color .2s ease);
            background-color: @linkBlue;
            background-color: fade(@linkBlue, 80%);
            border-radius: 100%;
            border: 3px solid #fff;
            color: #fff;
            content: '\f04b'; /* play */
            display: block;
            font-family: 'Font Awesome';
            .font-size(42px);
            text-align: center;
            text-indent: 8px;
            line-height: 95px;
            height: 90px;
            width: 90px;
            position: absolute;
            left: 50%;
            top: 70px;
            margin-left: -47px;
        }

        a:hover:before,
        a:focus:before {
            background-color: @linkBlue;
        }
    }

}

.video {
    display: none;
    width: auto;

    video {
        margin: 0 auto;
    }
}

#modal .video {
    display: block;
    margin: 0 auto;

    video {
        width: 100%;
        height: auto;
    }
}

/*-------------------------------------------------------------------------*/
// @Stories
.landing-stories {
    background: #fff;
}

.stories {
    list-style: none;
    margin: 0;
    text-align: center;
    .clearfix;

    .person {
        .span(3);
        position: relative;
        padding: 210px 40px 0;
        margin-bottom: 40px;

        &:nth-child(3n + 1) {
            clear: left;
        }

        .fn {
            font-weight: bold;
            .font-size(18px);
            letter-spacing: normal;
            margin: 0 0 .25em;
        }

        a {
            .button-hollow;
            width: 160px;
            border-color: @darkbeige;

            &:hover,
            &:focus,
            &:active {
                background: #fff;
                color: @linkBlue;
                border-color: @linkBlue;
            }
        }

        img {
            position: absolute;
            top: 0;
            left: 50%;
            margin-left: -95px;
            width: 180px;
            height: 180px;
            border: 5px solid @mozillared;
            border-radius: 100%;
        }
    }
}

/*-------------------------------------------------------------------------*/
// How to start
.landing-howto {
    text-align: center;

    .cta {
        margin-top: 40px;

        a {
            .button-flat;
            .trailing-arrow;
            .font-size(18px);
            min-width: 240px;
            padding: 20px 30px;
        }
    }
}

.steps {
    list-style: none;
    margin: 0;
    .clearfix;

    li {
        .span(3);
        position: relative;
        padding: 140px 40px 0;
        text-align: center;
        background-repeat: no-repeat;
        background-position: center top;

        &:after {
            content: '\f178'; // long right arrow
            font-family: 'Font Awesome';
            .font-size(45px);
            color: @darkbeige;
            position: absolute;
            right: -35px;
            top: 50px;
        }

        &:last-child:after {
            content: '';
        }
    }

    .step1 {
        background-image: url(/media/img/contribute/step1-select.png);
    }

    .step2 {
        background-image: url(/media/img/contribute/step2-notify.png);
    }

    .step3 {
        background-image: url(/media/img/contribute/step3-profile.png);
    }
}

.next-steps .step1 {
    background-image: url(/media/img/contribute/step1-select-done.png);
    color: lighten(@textColorPrimary, 40%);

    &:after {
        color: @mozillared;
    }
}

/*-------------------------------------------------------------------------*/
// Not ready?
.landing-notready {
    background: #3e2610 url(/media/img/contribute/bg-notready-2000.jpg) center -50px no-repeat;
    .section-dark;

    .section-tagline {
        font-style: italic;
    }

    .other-actions {
        .span(8);
        float: none;
        margin: 0 auto;

        li {
            width: 45%;
            float: left;
            margin: 0 2% 20px;
        }

        a {
            border-color: #fff;
            color: #fff;
        }
    }
}

.other-actions {
    .clearfix;
    list-style: none;
    margin: 0 auto;

    li {
        .span(3);
        margin-bottom: 20px;
        text-align: center;

        &:nth-child(2n+1) {
            clear: left;
        }
    }

    a {
        .button-hollow;
        .trailing-arrow;
        line-height: 1.2;
        display: block;

        &:before {
            font-family: 'Font Awesome';
            font-weight: normal;
            margin: 0 10px 0 -10px;
            display: inline-block;
            line-height: 1;
        }

        &:hover,
        &:focus,
        &:active {
            border-color: lighten(@linkBlue, 5%);
        }
    }
}

.other-donate:before {
    content: '\f004';
}

.other-read:before {
    content: '\f06e'
}

.other-shop:before {
    content: '\f07a'
}

.other-twitter:before {
    content: '\f099'
}

.other-facebook:before {
    content: '\f09a';
}

.other-download:before {
    content: '\f019';
}

/*-------------------------------------------------------------------------*/
// Extras
.contrib-extra {
    .clearfix;

    .billboard {
        width: auto;
        background: transparent;
        padding: 0;
        margin: 0;
        border: 0;
        box-shadow: none;
    }
}

.extra-event,
.extra-links,
.extra-newsletter {
    .span(4);
    text-align: left;
}

.extra-event {
    text-align: center;

    .event-date {
        .open-sans-light;
        width: 170px;
        height: 170px;
        text-align: center;
        display: block;
        border: 5px solid @mozillared;
        border-radius: 100%;
        background: @mozillared;
        color: #fff;
        line-height: 1.1;
        position: relative;
        left: 50%;
        margin: 0 0 20px -90px;
        .font-size(32px);
        .transition(background .15s ease);

        abbr {
            display: block;
            padding-top: 50px;
        }
    }

    .date-day {
        display: block;
        .font-size(44px);
    }

    .event-title {
        .font-size(20px);
        font-weight: bold;
    }

    .event-link p {
        color: @textColorPrimary;
    }

    .event-link:hover,
    .event-link:focus,
    .event-link:active {
        text-decoration: none;

        .event-date {
            background: lighten(@mozillared, 5%);
        }

        .event-title,
        p {
            color: darken(@linkBlue, 10%);
            text-decoration: underline;
        }
    }

    .events-all a {
        .button-hollow;
        .trailing-arrow;
        display: block;
        margin: 0 30px;
        text-align: center;
        border-color: @darkbeige;

        &:hover,
        &:focus,
        &:active {
            background: transparent;
            color: @linkBlue;
            border-color: @linkBlue;
        }
    }
}

.extra-links li,
.extra-actions li {
    list-style: none;
    .font-size(@largeFontSize);
    margin: 0 0 .5em;
    padding: 0;

    a {
        .trailing-arrow;
    }
}

.extra-actions a {
    padding-left: 20px;

    &:before {
        width: 20px;
        margin-left: -20px;
        margin-right: 5px;
    }
}

#newsletter-form {
    width: auto;
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;

    .form-contents,
    .form-submit {
        float: none;
        margin: 0;
    }

    .button {
        .button-flat;
        background-image: none;
        box-shadow: none;
        text-shadow: none;
    }
}

.thank h3 {
    .font-size(@largeFontSize);
    letter-spacing: normal;
    font-weight: bold;
}

/*-------------------------------------------------------------------------*/
// @Inquiry form

.inquiry {
    background: #fff;

    .container {
        padding-top: 0;
    }

    // old inquiry form
    .billboard {
        border-bottom: none;
        margin: 0;
        padding: 0;
    }
}

.inquiry-form {
    ul {
        list-style: none;
    }

    .section-title {
        text-align: left;
        margin-left: 10px;
    }

    .areas {
        text-align: left;
        padding: 20px 10px;
        margin: 0 -10px;
        background: #f5f1e8;
        border-radius: 6px;

        .section-title {
            .visually-hidden();
        }

        label {
            display: block;
            .font-size(32px);
            line-height: 1.1;
            .open-sans-light;
            letter-spacing: -.01em;
            margin: 0 0 .5em;
        }

        p {
            margin: 0 10px;
        }

    }

    .personal {
        .clearfix;
        padding: 30px 0;

        li {
            .span(4);
            text-align: left;
            margin-bottom: 20px;
        }

        label,
        .label {
            display: block;
            margin: 0 0 .25em;
            .font-size(@largeFontSize);
        }

        label.inline,
        .inline label {
            display: inline-block;
        }

        .form-message {
            .span-all();
            clear: both;
            margin-bottom: 20px;
        }

        .form-agree {
            width: auto;
            clear: both;
            float: none;
            margin: 0 10px 20px;

            label {
                .font-size(@baseFontSize);
            }
        }

        .form-format {
            width: auto;
            clear: both;
            float: none;
            margin: 0 10px 20px;

            .label {
                display: inline;
                margin-right: 30px;
            }

            label {
                margin-right: 10px;
                .font-size(@baseFontSize);
            }
        }

        .form-newsletter {
            width: auto;
            clear: both;
            float: none;
            margin: 0 10px 20px;
            text-align: center;
        }

        .select {
            width: 100%;
        }
    }

    .submit {
        text-align: center;
        margin: 0 10px;
        padding-top: 90px;
        position: relative;

        button {
            .button-flat;
            .trailing-arrow;
            .font-size(18px);
            width: 440px;
            padding: 20px 40px;
            position: absolute;
            top: 0;
            left: 50%;
            margin-left: -220px;
        }
    }

    input[type='checkbox'] {
        width: 16px;
        height: 16px;
        .font-size(@largeFontSize);
    }

    .errorlist {
        margin: 0;
        padding: .25em 0;
        color: @mozillared;

        li {
            width: auto;
            float: none;
            margin: 0 0 .5em;
        }
    }

}

.option-list {
    margin: 0 auto;
    width: auto;
    .clearfix;

    .option {
        .span(3);
        padding: 205px 0 1.4em;
        margin-bottom: 20px;
        .font-size(@largeFontSize);
        line-height: 1.2;
        text-align: center;
        position: relative;

        &:nth-child(4n+1) {
            clear: left;
        }
    }

    input {
        .visually-hidden();
    }

    label {
        position: relative;
        display: block;

        &:before {
            background-color: transparent;
            border: 5px solid @mozillared;
            color: @mozillared;
            cursor: pointer;
            display: block;
            font-family: 'Font Awesome';
            .font-size(80px);
            line-height: 155px;
            text-align: center;
            height: 150px;
            width: 150px;
            margin-left: -85px;
            padding: 5px;
            position: absolute;
            left: 50%;
            top: -180px;
            .border-radius(100%);
            .transition(background-color .15s ease);
        }

        &.category-coding:before {
            content: '\f121'; /* </> */
        }

        &.category-writing:before {
            content: '\f040'; /* pencil */
        }

        &.category-testing:before {
            content: '\f188'; /* bug */
        }

        &.category-teaching:before {
            content: '\f0e6'; /* word balloons */
        }

        &.category-helping:before {
            content: '\f1cd'; /* life preserver */
        }

        &.category-translating:before {
            content: '\f1ab'; /* languages */
        }

        &.category-activism:before {
            content: '\f0a1'; /* bullhorn */
        }

        &.category-dontknow:before {
            content: '\f128'; /* ? */
        }

        &:hover:before,
        &.hover:before {
            background-color: #f2d6d6;
        }

        &.selected:before {
            border-color: @green;
            color: @green;
            content: '\f00c'; /* check */
            background-color: transparent;

            &:hover,
            &.hover {
                background-color: transparent;
            }
        }
    }

    .info {
        position: relative;
        top: 4px;
        right: -10px;
        display: inline-block;
        height: 20px;
        width: 20px;
        overflow: hidden;
        text-indent: 120%;
        white-space: nowrap;
        margin-right: -20px;

        &:after {
            background: @linkBlue;
            border-radius: 100%;
            content: '\f129'; /* i */
            color: #fff;
            display: block;
            font-family: 'Font Awesome';
            .font-size(@baseFontSize);
            text-align: center;
            line-height: 22px;
            text-indent: 0;
            height: 20px;
            width: 20px;
            position: absolute;
            right: 0;
            bottom: 0;
        }
    }

    .tooltip {
        display: none;
        width: 230px;
        position: absolute;
        top: 40px;
        left: -20px;
        background: #eee;
        color: @textColorPrimary;
        .font-size(@smallFontSize);
        font-weight: normal;
        text-shadow: none;
        border: 1px solid #dfdfdf;
        box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
        text-align: left;
        z-index: 99;

        &:after {
            border: 0;
        }
    }
}

.category-info {
    .info-content {
        margin: 0 80px;
        padding-left: 80px;
        min-height: 60px;
        position: relative;

        &:before {
            font-family: 'Font Awesome';
            .font-size(40px);
            line-height: 60px;
            width: 60px;
            height: 60px;
            border: 4px solid;
            border-radius: 100%;
            position: absolute;
            left: -4px;
            top: 0;
            text-align: center;
            color: @mozillared;
        }
    }

    #info-coding:before {
        content: '\f121'; /* </> */
    }

    #info-writing:before {
        content: '\f040'; /* pencil */
    }

    #info-testing:before {
        content: '\f188'; /* bug */
    }

    #info-teaching:before {
        content: '\f0e6'; /* word balloons */
    }

    #info-helping:before {
        content: '\f1cd'; /* life preserver */
    }

    #info-translating:before {
        content: '\f1ab'; /* languages */
    }

    #info-activism:before {
        content: '\f0a1'; /* bullhorn */
    }

    #info-dontknow:before {
        content: '\f128'; /* ? */
    }

}

.js .category-info {
    display: none;
}

.js #modal .category-info {
    display: block;
    min-height: 220px;

    h2 {
        display: none;
    }
}

.js .areas,
.js .areas .area {
    display: none;
}

// @modal dialog
#modal {
    background-color: rgba(0, 0, 0, .75);
}

#modal .window .inner header {
    background-color: @mozillared;
}

#modal-close .button {
    background: darken(@mozillared, 10%);
    box-shadow: none;
}

.modal-nav {
    button {
        background: transparent;
        position: absolute;
        top: 0;
        width: 40px;
        height: 100%;
        border: 0;
        text-indent: 50px;
        overflow: hidden;
        display: block;
        cursor: pointer;
        .transition(color .15s ease);

        &:before {
            font-family: 'Font Awesome';
            .font-size(30px);
            position: absolute;
            top: 180px;
            width: 40px;
            text-align: center;
            text-indent: 0;
            left: 0;
            color: @darkbeige;
        }

        &:hover:before,
        &:focus:before {
            color: darken(@darkbeige, 10%);
        }
    }

    .button-prev {
        left: 0;

        &:before {
            content: '\f053'; /* < */
        }
    }

    .button-next {
        right: 0;

        &:before {
            content: '\f054'; /* > */
        }
    }
}

/*-------------------------------------------------------------------------*/
// @Confirmation

#thankyou {
    .page-head {
        padding-bottom: 60px;
    }

    .page-title {
        margin: 0 (@gridColumnWidth + @gridGutterWidth) 20px;
    }

    .section-tagline {
        margin: 0 80px 20px;
    }

}

.confirm-body {
    padding-left: 480px;
    text-align: center;

    .section-title {
        color: @mozillared;
        margin: 0 0 .15em;
    }

    .section-tagline {
        .font-size(24px);
        font-style: italic;
        margin: 0 0 30px;
    }

    .cta-other button {
        .button-hollow;
        border: 0;
        padding: 20px 40px;
        .font-size(@baseFontSize);

        &:hover,
        &:focus,
        &:active {
            background: transparent;
            color: @linkBlue;
            text-decoration: underline;
        }
    }

    .cta-mozillians a {
        .button-flat;
        padding: 20px 40px;
        margin-bottom: -10px;
    }

    #other {
        float: right;
        margin: -10px -20px 20px;
        padding: 20px 20px 0;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 2px 2px rgba(0, 0, 0, .1);

        h3 {
            .font-size(24px);
            line-height: 1.4;
            font-style: italic;
        }

        .other-actions li {
            .font-size(@smallFontSize);
        }
    }

}

.js .confirm-body #other {
    display: none;
}

.mozillians-profile {
    width: 450px;
    height: 450px;
    border: 5px solid @mozillared;
    border-radius: 100%;
    background: #fff url('/media/img/contribute/mozillians-profile.png') center center no-repeat;
    float: left;
    margin-left: -480px;
    margin-top: -75px;
    position: relative;
    text-align: left;
    line-height: 1.1;

    .profile-greeting {
        position: absolute;
        left: 245px;
        bottom: 330px;
        width: 160px;
        .font-size(24px);
        font-weight: bold;
        color: @linkBlue;
    }

    .profile-name {
        width: 160px;
        position: absolute;
        left: 60px;
        bottom: 225px;
        font-weight: bold;
        color: @linkBlue;
    }
}

/*-------------------------------------------------------------------------*/
// @Events
#map {
    background: rgba(149, 211, 241, .5);
    width: 100%;
    height: 380px;
}

.attribution {
    clear: both;
    .font-size(@smallFontSize);
    margin: 20px 10px -20px;
    color: #666;
}

.events-list {
    background: #fff;
    text-align: left;

    .ical-link {
        position: relative;
        margin-bottom: 20px;

        a:before {
            content: url(/media/img/contribute/logos/ical.png);
            position: absolute;
            left: 0;
        }

        a {
            margin-left: 25px;
        }
    }
}

.events-head {
    .clearfix;
    margin: 0 0 30px;
}

#events-filter {
    margin: 0 -10px;

    legend {
        padding-left: 10px;
    }

    p {
        .span(4);
    }

    label,
    .label {
        display: block;
        margin: 0 0 .25em;
    }

    input[type='text'],
    input[type='search'] {
        background: @lightbeige;
        border-radius: 6px;
        border: 2px solid @darkbeige;
        .font-size(inherit);
        padding: .5em 2%;
        width: 95%;
    }

    .form-submit {
        padding-top: 1.5em;
        button {
            .font-size(@baseFontSize);
            width: 100%;
        }
    }
}

.events-table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 auto 40px;

    td,
    th {
        text-align: left;
        vertical-align: top;
        padding: 10px;
    }

    thead th {
        text-transform: uppercase;
        .font-size(@smallFontSize);
        background: #edebe4;
    }

    tbody th {
        font-weight: normal;
    }

    tbody tr:nth-child(even) {
        background: #f8f8f8;
    }

    .event-date {
        width: 20%;
    }

    .event-name {
        width: 40%;
    }
}

[dir='rtl'] {
    .events-list .ical-link {
        float: right;

        a {
            margin-left: 0;
            margin-right: 25px;

            &:before {
                left: auto;
                right: 0;
            }
        }
    }

    .events-table {
        td,
        th {
            text-align: right;
        }
    }
}

/*-------------------------------------------------------------------------*/
// Mozillian @Stories
.stories-intro {
    .section-dark;
    background: #000 url(/media/img/contribute/bg-stories-2000.jpg) center top no-repeat;
    padding-bottom: 100px;
}

.story-main .container {
    .font-size(@largeFontSize);
    padding-top: 140px;
}

.story-intro,
.story-areas,
.story-links {
    .span(4);
}

.story-intro .photo {
    width: 220px;
    height: 220px;
    border: 8px solid @mozillared;
    border-radius: 100%;
    position: absolute;
    left: 50%;
    top: -120px;
    margin-left: -114px;
}

.story-areas h3 {
    .open-sans;
    .font-size(1em);
    font-weight: bold;
    letter-spacing: normal;
}

.story-areas ul {
    font-style: italic;
}

.story-links {
    list-style: none;

    li {
        width: 60px;
        float: left;
        margin: 0 10px 20px 0;

        &:nth-child(4n+1) {
            clear: left;
        }
    }

    a {
        width: 55px;
        height: 55px;
        display: block;
        .image-replaced();
        border: 2px solid @darkbeige;
        border-radius: 100%;
        position: relative;
        .transition(all .2s linear);

        &:after {
            font-family: 'Font Awesome';
            .font-size(30px);
            line-height: 55px;
            width: 55px;
            text-align: center;
            position: absolute;
            left: 0;
            top: 0;
            text-indent: 0;
        }

        &:hover,
        &:focus,
        &:active {
            color: @linkBlue;
            border-color: @linkBlue;
        }

        &:hover:after,
        &:focus:after,
        &:active:after {
            color: @linkBlue;
            border-color: @linkBlue;
        }
    }

    .twitter:after {
        content: '\f099';
        left: 2px;
        top: 2px;
    }

    .instragram:after {
        content: '\f16d';
    }

    .facebook:after {
        content: '\f09a';
    }

    .email:after {
        content: '\f0e0';
    }

    .website:after {
        content: '\f0c1';
        top: 2px;
    }

    .flickr:after {
        content: '\f16e';
    }

    .github:after {
        content: '\f113';
    }
}

.story-title {
    .font-size(48px);
    line-height: 1.2;
    text-align: center;
    margin: 0 0 40px;

    .name {
        font-weight: bold;
        color: @mozillared;
    }

    .country {
        font-weight: bold;
    }
}

.more-toggle {
    clear: both;
    text-align: center;

    button {
        border: 0;
        background: transparent none;
        color: @linkBlue;
        cursor: pointer;
        font-family: inherit;
        .font-size(@baseFontSize);
        font-weight: bold;
        text-transform: uppercase;

        &:after {
            display: inline-block;
            margin: 0 5px;
            font-family: 'Font Awesome';
            content: '\f103'; /* double down arrow */
        }
    }

    .open:after {
        content: '\f102'; /* douple up arrow */
    }
}

.story-more {
    clear: both;
    padding: 0 10px;
}

.stories-other {
    background: #fff;
}

/*-------------------------------------------------------------------------*/
// @RTL - right to left
[dir='rtl'] {

    .select {
        select {
            padding-left: 20%;
            padding-right: 6px;
        }

        &:after {
            right: auto;
            left: 0;
        }
    }

    #tabzilla {
        right: auto;
        left: 0;
    }

    .country-form {
        right: auto;
        left: 30px;
    }

    .contribute-nav {
        float: right;

        li {
            float: right;
        }

        .nav-cta {
            float: right;
            left: auto;
            right: 10px;
        }
    }

    .head-stats li {
        float: right;
    }

    .landing-mission {
        .mission-content,
        .mission-video {
            float: right;
        }

        .mission-video {
            a:before {
                text-indent: -8px;
            }
        }
    }

    .steps li {
        float: right;

        &:after {
            content: '\f177'; // long left arrow
            left: -35px;
            right: auto;
        }

        &:last-child:after {
            content: '';
        }
    }

    .other-actions li {
        float: right;

        a:before {
            margin: 0 -10px 0 10px;
        }
    }

    .extra-event,
    .extra-links,
    .extra-newsletter {
        text-align: right;
        float: right;
    }

    .extra-event {
        text-align: center;

        .event-date {
            right: 50%;
            left: auto;
            margin: 0 -90px 20px 0;
        }
    }

    .story-intro,
    .story-areas,
    .story-links {
        float: right;
    }

    .story-areas li {
        margin-left: 0;
        margin-right: 20px;
    }

    .story-links li {
        float: right;

        &:nth-child(4n+1) {
            clear: right;
        }
    }

    .inquiry-form {
        .section-title,
        .areas {
            text-align: right;
        }

        .personal {
            li {
                float: right;
                text-align: right;
            }

            .form-message,
            .form-format,
            .form-newsletter {
                float: none;
            }
        }

        .form-format {
            .label {
                margin-right: 0;
                margin-left: 30px;
            }

            label {
                margin-right: 0;
                margin-left: 10px;
            }
        }

        .submit button {
            left: auto;
            right: 50%;
            margin-left: auto;
            margin-right: -220px;
        }
    }

    .option-list .option {
        float: right;

        &:nth-child(4n+1) {
            clear: right;
        }
    }

    .option-list .info {
        right: auto;
        left: -10px;
        margin-right: 0;
        margin-left: -20px;
    }

}

/*-------------------------------------------------------------------------*/
// @Tablet Layout: 760px
@media only screen and (min-width: @breakTablet) and (max-width: @breakDesktop) {

    #masthead,
    .container {
        width: @widthTablet - (@gridGutterWidth * 2);
    }

    .page-title {
        .font-size(60px);
    }

    .contribute-nav {
        .span_narrow(10);

        li {
            .span_narrow(2);
        }

        .nav-cta {
            .span_narrow(3);
        }
    }

    .head-stats {
        width: @widthTablet - (@gridGutterWidth * 2);

        li {
            .span_narrow(4);
        }
    }

    #slideshow .section-title {
        margin-left: 0;
        margin-right: 0;
    }

    .landing-mission {
        .mission-content {
            .span_narrow(6);
        }

        .mission-video {
            .span_narrow(6);

            a:before {
                width: 70px;
                height: 70px;
                top: 50px;
                margin-left: -38px;
                .font-size(36px);
                line-height: 72px;
            }
        }
    }

    .stories .person {
        .span_narrow(3);
        padding: 210px 30px 0;

        a {
            width: auto;
            margin: 0 -30px;
        }
    }

    .story-intro,
    .story-areas,
    .story-links {
        .span_narrow(4);
    }

    .steps li {
        .span_narrow(3);
        padding: 140px 30px 0;
    }

    .landing-notready {
        .section-tagline {
            margin-left: 120px;
            margin-right: 120px;
        }

        .other-actions {
            .span_narrow(8);
            float: none;
            margin: 0 auto;
        }
    }

    .option-list {
        .option {
            .span_narrow(3);
            padding-top: 170px;

            label:before {
                top: -145px;
                width: 120px;
                height: 120px;
                .font-size(60px);
                line-height: 125px;
                margin-left: -70px;
            }
        }

        .tooltip {
            width: 170px;
        }
    }

    .inquiry-form {
        .personal li {
            .span_narrow(4);
            margin-bottom: 20px;
        }
    }

    #thankyou .page-head {
        padding-bottom: 40px;
    }

    .confirm-body {
        padding-left: 380px;
    }

    .mozillians-profile {
        width: 350px;
        height: 350px;
        margin-left: -380px;
        margin-top: -65px;
        -webkit-background-size: 350px 350px;
                background-size: 350px 350px;

        .profile-greeting {
            .font-size(18px);
            left: 190px;
            bottom: 255px;
        }

        .profile-name {
            .font-size(11px);
            left: 70px;
            bottom: 175px;
        }
    }

    .extra-event,
    .extra-links,
    .extra-newsletter {
        .span_narrow(4);
    }

}

/*-------------------------------------------------------------------------*/
// @Mobile Layout: 320px
@media only screen and (max-width: @breakTablet) {

    #masthead,
    .container {
        width: @widthMobile - (@gridGutterWidth * 2);
    }

    #tabzilla {
        right: -10px;
    }

    .section .container {
        padding: 20px 10px;
    }

    .page-head {
        padding-top: 80px;
    }

    .contribute-masthead {
        min-height: 0;
    }

    .contribute-nav {
        width: auto;
        float: none;
        position: absolute;
        left: -10px;
        top: 0;

        .toggle {
            position: absolute;
            left: 0;
            top: -30px;
            display: block;
            width: 32px;
            height: 32px;
            text-indent: 50px;
            overflow: hidden;
            cursor: pointer;
            margin: 0;

            &:after {
                font-family: 'Font Awesome';
                content: '\f0c9';
                .font-size(30px);
                color: #fff;
                position: absolute;
                left: 0;
                top: 0;
                text-indent: 3px;
                line-height: 1;
            }
        }
    }

    #landing .nav-landing:after,
    #events .nav-events:after,
    #stories .nav-stories:after {
        content: none;
    }

    #contribute-nav-menu {
        display: none;
        width: 160px;
        background: @mozillared;
        padding: 0 5px 5px;
        border-radius: 6px;
        left: 0;

        li {
            width: auto;
            margin: 5px 0 0;
            float: none;
            display: block;
        }

        .nav-cta {
            padding-bottom: 8px;
        }
    }

    .page-title {
        .font-size(34px);
    }

    .section-title {
        .font-size(30px);
    }

    .section-tagline {
        .font-size(20px);
    }

    .head-stats {
        width: auto;
        margin: 30px auto 0;

        li {
            width: auto;
            float: none;
            margin: 0 0 1em;
            text-align: left;
            .clearfix;
        }

        strong {
            display: inline;
            .font-size(18px);
            font-weight: bold;
        }
    }

    #slideshow {
        height: 280px;

        .section-title {
            margin-left: 0;
            margin-right: 0;
        }
    }

    .landing-intro {
        min-height: 280px;

        .section-title {
            .font-size(24px);
        }

        .cta a {
            min-width: 0;
            padding: 10px 30px;
            .font-size(@largeFontSize);
        }
    }

    .landing-mission {
        .mission-content {
            width: auto;
            float: none;
            margin: 0 0 30px;
        }

        .mission-video {
            width: auto;
            float: none;
            margin: 0;

            a:before {
                top: 24px;
            }
        }
    }

    .stories .person {
        width: auto;
        float: none;
        margin: 0 0 40px;
        padding: 0 0 0 100px;
        text-align: left;

        &:nth-child(3n + 1) {
            clear: none;
        }

        a {
            width: auto;
            padding: 10px 20px;
        }

        img {
            width: 80px;
            height: 80px;
            left: -3px;
            margin: 0;
            border-width: 3px;
        }
    }

    .steps {
        li {
            width: auto;
            float: none;
            padding: 10px 0 10px 90px;
            margin-bottom: 30px;
            text-align: left;

            &:after {
                content: '\f078'; // down chevron
                .font-size(30px);
                right: 0;
                bottom: -35px;
                top: auto;
                width: 100%;
                text-align: center;
            }
        }

        .step1 {
            background: url(/media/img/contribute/step1-select-sm.png) left center no-repeat;
        }

        .step2 {
            background: url(/media/img/contribute/step2-notify-sm.png) left center no-repeat;
        }

        .step3 {
            background: url(/media/img/contribute/step3-profile-sm.png) 5px center no-repeat;
        }
    }

    .landing-howto .cta a {
        min-width: 0;
    }

    .landing-notready .other-actions {
        width: auto;

        li {
            width: auto;
            float: none;
        }
    }

    .extra-event,
    .extra-links,
    .extra-newsletter,
    .extra-actions {
        width: auto;
        float: none;
        margin-bottom: 30px;
    }

    .events-table {
        thead {
            display: none;
        }

        th,
        td {
            display: block;
            padding: .25em 10px;
        }

        .event-date,
        .event-name {
            width: auto;
        }

        tr {
            display: block;
            margin: 0 0 20px;
        }

        tbody .event-name {
            .font-size(@largeFontSize);
            font-weight: bold;
        }

        tbody .event-date {
            .font-size(@smallFontSize);
        }
    }

    .story-main .container {
        .font-size(inherit);
    }

    .story-intro,
    .story-areas,
    .story-links {
        width: auto;
        float: none;
    }

    .story-intro .photo {
        width: 180px;
        height: 180px;
        border-width: 5px;
        top: -100px;
        margin-left: -95px;
    }

    .story-title {
        .font-size(32px);
        margin: 90px 0 20px;
    }

    .inquiry-form {
        .section-title {
            margin-left: 0;
        }

        .areas {
            margin: 0 0 20px;

            label {
                .font-size(24px);
            }
        }

        .personal {
            li,
            .form-message,
            .form-agree,
            .form-format,
            .form-newsletter {
                width: auto;
                float: none;
                margin: 0 0 20px;
            }
        }

        .submit button {
            padding: 10px 20px;
            width: 260px;
            margin-left: -130px;
        }
    }

    .option-list {
        .option {
            width: auto;
            float: none;
            margin: 0 0 10px;
            padding: 10px 0 10px 80px;
            min-height: 30px;
            text-align: left;
        }

        label:before {
            .font-size(26px);
            width: 30px;
            height: 30px;
            border-width: 3px;
            left: -55px;
            top: -10px;
            margin: 0;
            line-height: 30px;
            text-align: center;
        }

        .info:after {
            text-align: center;
        }

        .tooltip {
            left: -70px;
        }
    }

    #thankyou {
        .page-head {
            padding-bottom: 0;
        }

        .page-title,
        .section-tagline {
            margin: 0 0 20px;
        }
    }

    .confirm-body {
        padding-left: 0;
    }

    .mozillians-profile {
        display: none;
    }

    [dir='rtl'] {
        .contribute-nav {
            left: auto;
            right: -10px;

            .toggle {
                left: auto;
                right: 0;
            }

            .nav-cta {
                right: auto;
            }
        }

        .option-list {
            .option {
                float: none;
                padding: 10px 80px 10px 0;
                text-align: right;

                label:before {
                    left: auto;
                    right: -60px;
                }
            }

            .tooltip {
                left: auto;
                right: -70px;
            }
        }

        .inquiry-form .submit button {
            margin-right: -130px;
        }

        .steps li{
            float: none;

            &:after {
                content: '\f078'; // down chevron
                right: 0;
            }
        }
    }

}

/*-------------------------------------------------------------------------*/
// @Wide mobile Layout: 480px
@media only screen and (min-width: @breakMobileLandscape) and (max-width: @breakTablet) {

    #masthead,
    .container {
        width: @widthMobileLandscape - (@gridGutterWidth * 2);
    }

    .landing-mission .mission-video a:before {
        top: 54px;
    }

}

// Change images at certain breakpoints
@media only screen and (max-width: 960px) {

    .slide-one {
        background-image: url(/media/img/contribute/bg-slide1-1000.jpg);
    }

    .slide-two {
        background-image: url(/media/img/contribute/bg-slide2-1000.jpg);
    }

    .slide-three {
        background-image: url(/media/img/contribute/bg-slide3-1000.jpg);
    }

    .landing-notready {
        background-image: url(/media/img/contribute/bg-notready-1000.jpg);
    }

    .stories-intro {
        background-image: url(/media/img/contribute/bg-stories-1000.jpg);
    }

}

@media only screen and (max-width: 480px) {

    .slide-one {
        background-image: url(/media/img/contribute/bg-slide1-600.jpg);
    }

    .slide-two {
        background-image: url(/media/img/contribute/bg-slide2-600.jpg);
    }

    .slide-three {
        background-image: url(/media/img/contribute/bg-slide3-600.jpg);
    }

    .landing-notready {
        background-image: url(/media/img/contribute/bg-notready-600.jpg);
    }

    .stories-intro {
        background-image: url(/media/img/contribute/bg-stories-600.jpg);
    }

}

// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

@import "../../sandstone/lib.less";

@font-face {
    font-family: 'Font Awesome';
    src: url('/media/fonts/fontawesome-webfont.eot?v4.01#iefix') format('embedded-opentype'),
         url('/media/fonts/fontawesome-webfont.woff?v4.01') format('woff'),
         url('/media/fonts/fontawesome-webfont.ttf?v4.01') format('truetype');
    font-weight: normal;
    font-style: normal;
}

// Some common colors
@mozillared:   #c13832;
@lightbeige:   #fcf9f4;
@darkbeige:    #d7d3c8;
@green:        #7abf88;

// Some common classes/mixins
.button-flat {
    .open-sans;
    background-color: @linkBlue;
    color: #fff;
    display: inline-block;
    border: 0;
    border-radius: .5em;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    .transition(all .15s ease-in-out);

    &:hover,
    &:focus,
    &:active {
        color: #fff;
        background-color: lighten(@linkBlue, 5%);
        text-decoration: none;
    }
}

.button-hollow {
    .button-flat;
    background-color: transparent;
    border: 2px solid;
    color: @linkBlue;

    &:hover,
    &:focus,
    &:active {
        border-color: @linkBlue;
    }
}

.go {
    .trailing-arrow;
}

// Forms
input[type='text'],
input[type='email'],
textarea {
    background: @lightbeige;
    border-radius: 6px;
    border: 2px solid @darkbeige;
    .font-size(@largeFontSize);
    padding: .5em 8px;
    width: 100%;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    .transition(border-color .2s ease);
}

input:focus,
textarea:focus {
    background: #fff;
}

.select {
    background: @lightbeige;
    border-radius: 6px;
    border: 2px solid @darkbeige;
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: auto;
    max-width: 100%;
    padding: .35em 8px;
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
    .transition(border-color .2s ease);

    select {
        background: none;
        border: none;
        .font-size(@largeFontSize);
        font-family: inherit;
        width: 100%;
        padding: 0 20% 0 0;
        outline: none;
        text-overflow: '';
        -webkit-appearance: none;
           -moz-appearance: window;
                appearance: none;

        &::-ms-expand {
          display: none;
        }

        &:-moz-focusring {
            color: transparent;
            text-shadow: 0 0 0 @textColorPrimary;
        }
    }

    &:after {
        color: #bbb;
        content: '\f0d7';
        display: block;
        font-family: 'Font Awesome';
        .font-size(20px);
        height: 100%;
        width: 30px;
        line-height: 32px;
        vertical-align: middle;
        padding:0;
        pointer-events: none;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        text-align: center;
    }
}

.select.focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(73, 173, 227, .4);
    border-color: #42a4e0;

    select {
        outline: 0;
        box-shadow: none;

        &:-moz-focusring {
            color: transparent;
            text-shadow: 0 0 0 @textColorPrimary;
        }
    }
}

/*-------------------------------------------------------------------------*/
// Generic @Sections
.section {
    position: relative;

    .container {
        padding: 40px 10px;
        position: relative;
    }
}

// A mixin for sections with dark backgrounds
.section-dark() {
    color: #fff;

    .section-title {
        color: #fff;
        text-shadow: none;
    }

    a {
        color: #fff;
    }
}

.section-title {
    .open-sans-light;
    letter-spacing: -.05em;
    line-height: 1.1;
    text-align: center;
    .font-size(42px);
    margin: 0 auto 30px;
}

.section-tagline {
    .font-size(28px);
    line-height: 1.2;
    text-align: center;
    .open-sans-light;
}

/*-------------------------------------------------------------------------*/
// Override sandstone base layout so we can have full-width blocks.
#wrapper,
#main-content {
    width: 100%;
    padding: 0;
}

#masthead,
.container {
    width: @widthDesktop - (@gridGutterWidth * 2);
    .clearfix();
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

#tabzilla {
    position: absolute;
    right: 0;
    z-index: 999;
}

/*-------------------------------------------------------------------------*/
// @Header
.page-head {
    padding: 11.714em 0 20px; /* 185px */
    margin-top: 0;
    background: #fff;

    h2 {
        text-align: center;
        line-height: 1.2;
    }
}

.page-title {
    .font-size(72px);
    text-align: center;
    color: @mozillared;
}

.head-stats {
    list-style: none;
    margin: 30px auto;
    .container;
    .clearfix;

    li {
        .span(4);
        text-align: center;
    }

    strong {
        display: block;
        .font-size(42px);
        font-weight: normal;
        line-height: 1.1;
        .open-sans-light;
    }
}

.country-form {
    position: absolute;
    right: 30px;
    bottom: 0;
    width: 135px;

    p {
        margin: 0;
    }

    label {
        .visually-hidden();
    }

    .select select {
        .font-size(@smallFontSize);
    }
}

.js .country-form button {
    .visually-hidden();
}

// @Navigation
.contribute-masthead {
    position: absolute;
    top: 0;
    z-index: 1;
    background: @mozillared;
    padding: 40px 0 10px;
    width: 100%;
    min-height: 40px;
    border-bottom: 1px solid darken(@mozillared, 5%);
    .section-dark;
    .clearfix;
}

.contribute-nav {
    .span(10);

    .toggle {
        display: none;
    }

    li {
        .span(2);
        display: block;
        font-weight: bold;
        line-height: 1.1;
        list-style: none;
        min-height: 40px;
        position: relative;
        text-align: center;
        text-shadow: 0 1px 0 rgba(0, 0, 0, .1);
        text-transform: uppercase;
        vertical-align: bottom;
    }

    a {
        border-radius: 3px;
        box-sizing: border-box;
        color: #e29fa0;
        display: block;
        padding: 10px;
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        .transition(all .15s ease-in-out);

        &:hover,
        &:focus,
        &:active {
            background-color: lighten(@mozillared, 10%);
            background-color: rgba(255, 255, 255, .1);
            color: #fff;
            text-decoration: none;
        }
    }

    .nav-cta {
        .span(3);

        a {
            .button-flat;
            border-radius: 6px;
            margin-top: 10px;
            background-color: darken(@mozillared, 10%);
            bottom: 10px;
            left: 10px;
            width: auto;
        }
    }
}

#landing .nav-landing,
#events .nav-events,
#stories .nav-stories {
    padding-bottom: 10px;
    margin-bottom: -10px;

    a {
        color: #fff;
        bottom: 10px;
    }

    &:after {
        border-style: solid;
        border-width: 13px;
        border-color: transparent;
        border-top-color: @mozillared;
        content: '';
        height: 0;
        left: 50%;
        margin-left: -13px;
        pointer-events: none;
        position: absolute;
        top: 100%;
        width: 0;
    }
}

/*-------------------------------------------------------------------------*/
// @Landing page

// Intro
.landing-intro {
    min-height: 340px;
    overflow: hidden;
    .section-dark;

    .cta {
        position: absolute;
        bottom: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        z-index: 1000;

        a {
            .button-flat;
            .trailing-arrow;
            .font-size(18px);
            padding: 20px 40px;
            min-width: 240px;
        }
    }
}

// Slideshow
#slideshow {
    height: 340px;
    background: #000;

    .slide {
        height: 300px;
        padding-bottom: 100px;
        width: 100%;
        text-align: center;
        background-color: #000;
        background-position: center top;
        background-repeat: no-repeat;
    }

    .container {
        z-index: 3;
    }

    .section-title {
        margin-left: @gridColumnWidth;
        margin-right: @gridColumnWidth;
    }
}

.slide-one {
    .section-title {
        margin-top: 1em;
    }
    background-image: url(/media/img/contribute/bg-slide1-2000.jpg);
}

.slide-two {
    background-image: url(/media/img/contribute/bg-slide2-2000.jpg);
}

.slide-three {
    background-image: url(/media/img/contribute/bg-slide3-2000.jpg);
}

.cycle-pager {
    width: 100%;
    height: 25px;
    text-align: center;
    position: absolute;
    bottom: 25px;
    z-index: 1000;

    span {
        display: inline-block;
        margin: 0 5px;
        width: 15px;
        height: 15px;
        border: 2px solid #fff;
        border-radius: 50%;
        text-indent: -999em;
        overflow: hidden;
        cursor: pointer;
        .transition(background-color .2s ease-in-out);

        &:hover {
            background: rgba(255, 255, 255, .5);
        }

        &.cycle-pager-active {
            background: #fff;
        }
    }
}

/*-------------------------------------------------------------------------*/
// Our mission
.landing-mission {
    .mission-content {
        .span(6);
        .font-size(@largeFontSize);
        margin-top: 20px;
        text-align: center;

        h2 {
            .font-size(28px);
        }

        .mission-cta {
            text-align: center;
            text-transform: uppercase;
            font-weight: bold;
            font-style: normal;

            a:before {
                font-family: 'Font Awesome';
                content: '\f01d'; /* play circle */
                margin-right: 8px;
                font-weight: normal;
                .font-size(@largeFontSize);
                text-decoration: none;
            }
        }
    }

    .mission-video {
        .span(6);
        position: relative;

        a:focus {
            outline: 0;
        }

        a:before {
            .transition(background-color .2s ease);
            background-color: @linkBlue;
            background-color: fade(@linkBlue, 80%);
            border-radius: 100%;
            border: 3px solid #fff;
            color: #fff;
            content: '\f04b'; /* play */
            display: block;
            font-family: 'Font Awesome';
            .font-size(42px);
            text-align: center;
            text-indent: 8px;
            line-height: 95px;
            height: 90px;
            width: 90px;
            position: absolute;
            left: 50%;
            top: 70px;
            margin-left: -47px;
        }

        a:hover:before,
        a:focus:before {
            background-color: @linkBlue;
        }
    }

}

.video {
    display: none;
    width: auto;

    video {
        margin: 0 auto;
    }
}

#modal .video {
    display: block;
    margin: 0 auto;

    video {
        width: 100%;
        height: auto;
    }
}

/*-------------------------------------------------------------------------*/
// @Stories
.landing-stories {
    background: #fff;
}

.stories {
    list-style: none;
    margin: 0;
    text-align: center;
    .clearfix;

    .person {
        .span(3);
        position: relative;
        padding: 210px 40px 0;
        margin-bottom: 40px;

        &:nth-child(3n + 1) {
            clear: left;
        }

        .fn {
            font-weight: bold;
            .font-size(18px);
            letter-spacing: normal;
            margin: 0 0 .25em;
        }

        a {
            .button-hollow;
            width: 160px;
            border-color: @darkbeige;

            &:hover,
            &:focus,
            &:active {
                background: #fff;
                color: @linkBlue;
                border-color: @linkBlue;
            }
        }

        img {
            position: absolute;
            top: 0;
            left: 50%;
            margin-left: -95px;
            width: 180px;
            height: 180px;
            border: 5px solid @mozillared;
            border-radius: 100%;
        }
    }
}

/*-------------------------------------------------------------------------*/
// How to start
.landing-howto {
    text-align: center;

    .cta {
        margin-top: 40px;

        a {
            .button-flat;
            .trailing-arrow;
            .font-size(18px);
            min-width: 240px;
            padding: 20px 30px;
        }
    }
}

.steps {
    list-style: none;
    margin: 0;
    .clearfix;

    li {
        .span(3);
        position: relative;
        padding: 140px 40px 0;
        text-align: center;
        background-repeat: no-repeat;
        background-position: center top;

        &:after {
            content: '\f178'; // long right arrow
            font-family: 'Font Awesome';
            .font-size(45px);
            color: @darkbeige;
            position: absolute;
            right: -35px;
            top: 50px;
        }

        &:last-child:after {
            content: '';
        }
    }

    .step1 {
        background-image: url(/media/img/contribute/step1-select.png);
    }

    .step2 {
        background-image: url(/media/img/contribute/step2-notify.png);
    }

    .step3 {
        background-image: url(/media/img/contribute/step3-profile.png);
    }
}

.next-steps .step1 {
    background-image: url(/media/img/contribute/step1-select-done.png);
    color: lighten(@textColorPrimary, 40%);

    &:after {
        color: @mozillared;
    }
}

/*-------------------------------------------------------------------------*/
// Not ready?
.landing-notready {
    background: #3e2610 url(/media/img/contribute/bg-notready-2000.jpg) center -50px no-repeat;
    .section-dark;

    .section-tagline {
        font-style: italic;
    }

    .other-actions {
        .span(8);
        float: none;
        margin: 0 auto;

        li {
            width: 45%;
            float: left;
            margin: 0 2% 20px;
        }

        a {
            border-color: #fff;
            color: #fff;
        }
    }
}

.other-actions {
    .clearfix;
    list-style: none;
    margin: 0 auto;

    li {
        .span(3);
        margin-bottom: 20px;
        text-align: center;

        &:nth-child(2n+1) {
            clear: left;
        }
    }

    a {
        .button-hollow;
        .trailing-arrow;
        line-height: 1.2;
        display: block;

        &:before {
            font-family: 'Font Awesome';
            font-weight: normal;
            margin: 0 10px 0 -10px;
            display: inline-block;
            line-height: 1;
        }

        &:hover,
        &:focus,
        &:active {
            border-color: lighten(@linkBlue, 5%);
        }
    }
}

.other-donate:before {
    content: '\f004';
}

.other-read:before {
    content: '\f06e'
}

.other-shop:before {
    content: '\f07a'
}

.other-twitter:before {
    content: '\f099'
}

.other-facebook:before {
    content: '\f09a';
}

.other-download:before {
    content: '\f019';
}

/*-------------------------------------------------------------------------*/
// Extras
.contrib-extra {
    .clearfix;

    .billboard {
        width: auto;
        background: transparent;
        padding: 0;
        margin: 0;
        border: 0;
        box-shadow: none;
    }
}

.extra-event,
.extra-links,
.extra-newsletter {
    .span(4);
    text-align: left;
}

.extra-event {
    text-align: center;

    .event-date {
        .open-sans-light;
        width: 170px;
        height: 170px;
        text-align: center;
        display: block;
        border: 5px solid @mozillared;
        border-radius: 100%;
        background: @mozillared;
        color: #fff;
        line-height: 1.1;
        position: relative;
        left: 50%;
        margin: 0 0 20px -90px;
        .font-size(32px);
        .transition(background .15s ease);

        abbr {
            display: block;
            padding-top: 50px;
        }
    }

    .date-day {
        display: block;
        .font-size(44px);
    }

    .event-title {
        .font-size(20px);
        font-weight: bold;
    }

    .event-link p {
        color: @textColorPrimary;
    }

    .event-link:hover,
    .event-link:focus,
    .event-link:active {
        text-decoration: none;

        .event-date {
            background: lighten(@mozillared, 5%);
        }

        .event-title,
        p {
            color: darken(@linkBlue, 10%);
            text-decoration: underline;
        }
    }

    .events-all a {
        .button-hollow;
        .trailing-arrow;
        display: block;
        margin: 0 30px;
        text-align: center;
        border-color: @darkbeige;

        &:hover,
        &:focus,
        &:active {
            background: transparent;
            color: @linkBlue;
            border-color: @linkBlue;
        }
    }
}

.extra-links li,
.extra-actions li {
    list-style: none;
    .font-size(@largeFontSize);
    margin: 0 0 .5em;
    padding: 0;

    a {
        .trailing-arrow;
    }
}

.extra-actions a {
    padding-left: 20px;

    &:before {
        width: 20px;
        margin-left: -20px;
        margin-right: 5px;
    }
}

#newsletter-form {
    width: auto;
    background: transparent;
    padding: 0;
    border: 0;
    box-shadow: none;

    .form-contents,
    .form-submit {
        float: none;
        margin: 0;
    }

    .button {
        .button-flat;
        background-image: none;
        box-shadow: none;
        text-shadow: none;
    }
}

.thank h3 {
    .font-size(@largeFontSize);
    letter-spacing: normal;
    font-weight: bold;
}

/*-------------------------------------------------------------------------*/
// @Inquiry form

.inquiry {
    background: #fff;

    .container {
        padding-top: 0;
    }

    // old inquiry form
    .billboard {
        border-bottom: none;
        margin: 0;
        padding: 0;
    }
}

.inquiry-form {
    ul {
        list-style: none;
    }

    .section-title {
        text-align: left;
        margin-left: 10px;
    }

    .areas {
        text-align: left;
        padding: 20px 10px;
        margin: 0 -10px;
        background: #f5f1e8;
        border-radius: 6px;

        .section-title {
            .visually-hidden();
        }

        label {
            display: block;
            .font-size(32px);
            line-height: 1.1;
            .open-sans-light;
            letter-spacing: -.01em;
            margin: 0 0 .5em;
        }

        p {
            margin: 0 10px;
        }

    }

    .personal {
        .clearfix;
        padding: 30px 0;

        li {
            .span(4);
            text-align: left;
            margin-bottom: 20px;
        }

        label,
        .label {
            display: block;
            margin: 0 0 .25em;
            .font-size(@largeFontSize);
        }

        label.inline,
        .inline label {
            display: inline-block;
        }

        .form-message {
            .span-all();
            clear: both;
            margin-bottom: 20px;
        }

        .form-agree {
            width: auto;
            clear: both;
            float: none;
            margin: 0 10px 20px;

            label {
                .font-size(@baseFontSize);
            }
        }

        .form-format {
            width: auto;
            clear: both;
            float: none;
            margin: 0 10px 20px;

            .label {
                display: inline;
                margin-right: 30px;
            }

            label {
                margin-right: 10px;
                .font-size(@baseFontSize);
            }
        }

        .form-newsletter {
            width: auto;
            clear: both;
            float: none;
            margin: 0 10px 20px;
            text-align: center;
        }

        .select {
            width: 100%;
        }
    }

    .submit {
        text-align: center;
        margin: 0 10px;
        padding-top: 90px;
        position: relative;

        button {
            .button-flat;
            .trailing-arrow;
            .font-size(18px);
            width: 440px;
            padding: 20px 40px;
            position: absolute;
            top: 0;
            left: 50%;
            margin-left: -220px;
        }
    }

    input[type='checkbox'] {
        width: 16px;
        height: 16px;
        .font-size(@largeFontSize);
    }

    .errorlist {
        margin: 0;
        padding: .25em 0;
        color: @mozillared;

        li {
            width: auto;
            float: none;
            margin: 0 0 .5em;
        }
    }

}

.option-list {
    margin: 0 auto;
    width: auto;
    .clearfix;

    .option {
        .span(3);
        padding: 205px 0 1.4em;
        margin-bottom: 20px;
        .font-size(@largeFontSize);
        line-height: 1.2;
        text-align: center;
        position: relative;

        &:nth-child(4n+1) {
            clear: left;
        }
    }

    input {
        .visually-hidden();
    }

    label {
        position: relative;
        display: block;

        &:before {
            background-color: transparent;
            border: 5px solid @mozillared;
            color: @mozillared;
            cursor: pointer;
            display: block;
            font-family: 'Font Awesome';
            .font-size(80px);
            line-height: 155px;
            text-align: center;
            height: 150px;
            width: 150px;
            margin-left: -85px;
            padding: 5px;
            position: absolute;
            left: 50%;
            top: -180px;
            .border-radius(100%);
            .transition(background-color .15s ease);
        }

        &.category-coding:before {
            content: '\f121'; /* </> */
        }

        &.category-writing:before {
            content: '\f040'; /* pencil */
        }

        &.category-testing:before {
            content: '\f188'; /* bug */
        }

        &.category-teaching:before {
            content: '\f0e6'; /* word balloons */
        }

        &.category-helping:before {
            content: '\f1cd'; /* life preserver */
        }

        &.category-translating:before {
            content: '\f1ab'; /* languages */
        }

        &.category-activism:before {
            content: '\f0a1'; /* bullhorn */
        }

        &.category-dontknow:before {
            content: '\f128'; /* ? */
        }

        &:hover:before,
        &.hover:before {
            background-color: #f2d6d6;
        }

        &.selected:before {
            border-color: @green;
            color: @green;
            content: '\f00c'; /* check */
            background-color: transparent;

            &:hover,
            &.hover {
                background-color: transparent;
            }
        }
    }

    .info {
        position: relative;
        top: 4px;
        right: -10px;
        display: inline-block;
        height: 20px;
        width: 20px;
        overflow: hidden;
        text-indent: 120%;
        white-space: nowrap;
        margin-right: -20px;

        &:after {
            background: @linkBlue;
            border-radius: 100%;
            content: '\f129'; /* i */
            color: #fff;
            display: block;
            font-family: 'Font Awesome';
            .font-size(@baseFontSize);
            text-align: center;
            line-height: 22px;
            text-indent: 0;
            height: 20px;
            width: 20px;
            position: absolute;
            right: 0;
            bottom: 0;
        }
    }

    .tooltip {
        display: none;
        width: 230px;
        position: absolute;
        top: 40px;
        left: -20px;
        background: #eee;
        color: @textColorPrimary;
        .font-size(@smallFontSize);
        font-weight: normal;
        text-shadow: none;
        border: 1px solid #dfdfdf;
        box-shadow: 0 2px 2px rgba(0, 0, 0, .2);
        text-align: left;
        z-index: 99;

        &:after {
            border: 0;
        }
    }
}

.category-info {
    .info-content {
        margin: 0 80px;
        padding-left: 80px;
        min-height: 60px;
        position: relative;

        &:before {
            font-family: 'Font Awesome';
            .font-size(40px);
            line-height: 60px;
            width: 60px;
            height: 60px;
            border: 4px solid;
            border-radius: 100%;
            position: absolute;
            left: -4px;
            top: 0;
            text-align: center;
            color: @mozillared;
        }
    }

    #info-coding:before {
        content: '\f121'; /* </> */
    }

    #info-writing:before {
        content: '\f040'; /* pencil */
    }

    #info-testing:before {
        content: '\f188'; /* bug */
    }

    #info-teaching:before {
        content: '\f0e6'; /* word balloons */
    }

    #info-helping:before {
        content: '\f1cd'; /* life preserver */
    }

    #info-translating:before {
        content: '\f1ab'; /* languages */
    }

    #info-activism:before {
        content: '\f0a1'; /* bullhorn */
    }

    #info-dontknow:before {
        content: '\f128'; /* ? */
    }

}

.js .category-info {
    display: none;
}

.js #modal .category-info {
    display: block;
    min-height: 220px;

    h2 {
        display: none;
    }
}

.js .areas,
.js .areas .area {
    display: none;
}

// @modal dialog
#modal {
    background-color: rgba(0, 0, 0, .75);
}

#modal .window .inner header {
    background-color: @mozillared;
}

#modal-close .button {
    background: darken(@mozillared, 10%);
    box-shadow: none;
}

.modal-nav {
    button {
        background: transparent;
        position: absolute;
        top: 0;
        width: 40px;
        height: 100%;
        border: 0;
        text-indent: 50px;
        overflow: hidden;
        display: block;
        cursor: pointer;
        .transition(color .15s ease);

        &:before {
            font-family: 'Font Awesome';
            .font-size(30px);
            position: absolute;
            top: 180px;
            width: 40px;
            text-align: center;
            text-indent: 0;
            left: 0;
            color: @darkbeige;
        }

        &:hover:before,
        &:focus:before {
            color: darken(@darkbeige, 10%);
        }
    }

    .button-prev {
        left: 0;

        &:before {
            content: '\f053'; /* < */
        }
    }

    .button-next {
        right: 0;

        &:before {
            content: '\f054'; /* > */
        }
    }
}

/*-------------------------------------------------------------------------*/
// @Confirmation

#thankyou {
    .page-head {
        padding-bottom: 60px;
    }

    .page-title {
        margin: 0 (@gridColumnWidth + @gridGutterWidth) 20px;
    }

    .section-tagline {
        margin: 0 80px 20px;
    }

}

.confirm-body {
    padding-left: 480px;
    text-align: center;

    .section-title {
        color: @mozillared;
        margin: 0 0 .15em;
    }

    .section-tagline {
        .font-size(24px);
        font-style: italic;
        margin: 0 0 30px;
    }

    .cta-other button {
        .button-hollow;
        border: 0;
        padding: 20px 40px;
        .font-size(@baseFontSize);

        &:hover,
        &:focus,
        &:active {
            background: transparent;
            color: @linkBlue;
            text-decoration: underline;
        }
    }

    .cta-mozillians a {
        .button-flat;
        padding: 20px 40px;
        margin-bottom: -10px;
    }

    #other {
        float: right;
        margin: -10px -20px 20px;
        padding: 20px 20px 0;
        background: #fff;
        border-radius: 6px;
        box-shadow: 0 2px 2px rgba(0, 0, 0, .1);

        h3 {
            .font-size(24px);
            line-height: 1.4;
            font-style: italic;
        }

        .other-actions li {
            .font-size(@smallFontSize);
        }
    }

}

.js .confirm-body #other {
    display: none;
}

.mozillians-profile {
    width: 450px;
    height: 450px;
    border: 5px solid @mozillared;
    border-radius: 100%;
    background: #fff url('/media/img/contribute/mozillians-profile.png') center center no-repeat;
    float: left;
    margin-left: -480px;
    margin-top: -75px;
    position: relative;
    text-align: left;
    line-height: 1.1;

    .profile-greeting {
        position: absolute;
        left: 245px;
        bottom: 330px;
        width: 160px;
        .font-size(24px);
        font-weight: bold;
        color: @linkBlue;
    }

    .profile-name {
        width: 160px;
        position: absolute;
        left: 60px;
        bottom: 225px;
        font-weight: bold;
        color: @linkBlue;
    }
}

/*-------------------------------------------------------------------------*/
// @Events
#map {
    background: rgba(149, 211, 241, .5);
    width: 100%;
    height: 380px;
}

.attribution {
    clear: both;
    .font-size(@smallFontSize);
    margin: 20px 10px -20px;
    color: #666;
}

.events-list {
    background: #fff;
    text-align: left;

    .ical-link {
        position: relative;
        margin-bottom: 20px;

        a:before {
            content: url(/media/img/contribute/logos/ical.png);
            position: absolute;
            left: 0;
        }

        a {
            margin-left: 25px;
        }
    }
}

.events-head {
    .clearfix;
    margin: 0 0 30px;
}

#events-filter {
    margin: 0 -10px;

    legend {
        padding-left: 10px;
    }

    p {
        .span(4);
    }

    label,
    .label {
        display: block;
        margin: 0 0 .25em;
    }

    input[type='text'],
    input[type='search'] {
        background: @lightbeige;
        border-radius: 6px;
        border: 2px solid @darkbeige;
        .font-size(inherit);
        padding: .5em 2%;
        width: 95%;
    }

    .form-submit {
        padding-top: 1.5em;
        button {
            .font-size(@baseFontSize);
            width: 100%;
        }
    }
}

.events-table {
    border-collapse: collapse;
    width: 100%;
    margin: 0 auto 40px;

    td,
    th {
        text-align: left;
        vertical-align: top;
        padding: 10px;
    }

    thead th {
        text-transform: uppercase;
        .font-size(@smallFontSize);
        background: #edebe4;
    }

    tbody th {
        font-weight: normal;
    }

    tbody tr:nth-child(even) {
        background: #f8f8f8;
    }

    .event-date {
        width: 20%;
    }

    .event-name {
        width: 40%;
    }
}

/*-------------------------------------------------------------------------*/
// Mozillian @Stories
.stories-intro {
    .section-dark;
    background: #000 url(/media/img/contribute/bg-stories-2000.jpg) center top no-repeat;
    padding-bottom: 100px;
}

.story-main .container {
    .font-size(@largeFontSize);
    padding-top: 140px;
}

.story-intro,
.story-areas,
.story-links {
    .span(4);
}

.story-intro .photo {
    width: 220px;
    height: 220px;
    border: 8px solid @mozillared;
    border-radius: 100%;
    position: absolute;
    left: 50%;
    top: -120px;
    margin-left: -114px;
}

.story-areas h3 {
    .open-sans;
    .font-size(1em);
    font-weight: bold;
    letter-spacing: normal;
}

.story-areas ul {
    font-style: italic;
}

.story-links {
    list-style: none;

    li {
        width: 60px;
        float: left;
        margin: 0 10px 20px 0;

        &:nth-child(4n+1) {
            clear: left;
        }
    }

    a {
        width: 55px;
        height: 55px;
        display: block;
        .image-replaced();
        border: 2px solid @darkbeige;
        border-radius: 100%;
        position: relative;
        .transition(all .2s linear);

        &:after {
            font-family: 'Font Awesome';
            .font-size(30px);
            line-height: 55px;
            width: 55px;
            text-align: center;
            position: absolute;
            left: 0;
            top: 0;
            text-indent: 0;
        }

        &:hover,
        &:focus,
        &:active {
            color: @linkBlue;
            border-color: @linkBlue;
        }

        &:hover:after,
        &:focus:after,
        &:active:after {
            color: @linkBlue;
            border-color: @linkBlue;
        }
    }

    .twitter:after {
        content: '\f099';
        left: 2px;
        top: 2px;
    }

    .instragram:after {
        content: '\f16d';
    }

    .facebook:after {
        content: '\f09a';
    }

    .email:after {
        content: '\f0e0';
    }

    .website:after {
        content: '\f0c1';
        top: 2px;
    }

    .flickr:after {
        content: '\f16e';
    }

    .github:after {
        content: '\f113';
    }
}

.story-title {
    .font-size(48px);
    line-height: 1.2;
    text-align: center;
    margin: 0 0 40px;

    .name {
        font-weight: bold;
        color: @mozillared;
    }

    .country {
        font-weight: bold;
    }
}

.more-toggle {
    clear: both;
    text-align: center;

    button {
        border: 0;
        background: transparent none;
        color: @linkBlue;
        cursor: pointer;
        font-family: inherit;
        .font-size(@baseFontSize);
        font-weight: bold;
        text-transform: uppercase;

        &:after {
            display: inline-block;
            margin: 0 5px;
            font-family: 'Font Awesome';
            content: '\f103'; /* double down arrow */
        }
    }

    .open:after {
        content: '\f102'; /* douple up arrow */
    }
}

.story-more {
    clear: both;
    padding: 0 10px;
}

.stories-other {
    background: #fff;
}

/*-------------------------------------------------------------------------*/
// @RTL - right to left
[dir='rtl'] {

    .select {
        select {
            padding-left: 20%;
            padding-right: 6px;
        }

        &:after {
            right: auto;
            left: 0;
        }
    }

    #tabzilla {
        right: auto;
        left: 0;
    }

    .country-form {
        right: auto;
        left: 30px;
    }

    .contribute-nav {
        float: right;

        li {
            float: right;
        }

        .nav-cta {
            float: right;
            left: auto;
            right: 10px;
        }
    }

    .head-stats li {
        float: right;
    }

    .landing-mission {
        .mission-content,
        .mission-video {
            float: right;
        }

        .mission-video {
            a:before {
                text-indent: -8px;
            }
        }
    }

    .steps li {
        float: right;

        &:after {
            content: '\f177'; // long left arrow
            left: -35px;
            right: auto;
        }

        &:last-child:after {
            content: '';
        }
    }

    .other-actions li {
        float: right;

        a:before {
            margin: 0 -10px 0 10px;
        }
    }

    .extra-event,
    .extra-links,
    .extra-newsletter {
        text-align: right;
        float: right;
    }

    .extra-event {
        text-align: center;

        .event-date {
            right: 50%;
            left: auto;
            margin: 0 -90px 20px 0;
        }
    }

    .story-intro,
    .story-areas,
    .story-links {
        float: right;
    }

    .story-areas li {
        margin-left: 0;
        margin-right: 20px;
    }

    .story-links li {
        float: right;

        &:nth-child(4n+1) {
            clear: right;
        }
    }

    .inquiry-form {
        .section-title,
        .areas {
            text-align: right;
        }

        .personal {
            li {
                float: right;
                text-align: right;
            }

            .form-message,
            .form-format,
            .form-newsletter {
                float: none;
            }
        }

        .form-format {
            .label {
                margin-right: 0;
                margin-left: 30px;
            }

            label {
                margin-right: 0;
                margin-left: 10px;
            }
        }

        .submit button {
            left: auto;
            right: 50%;
            margin-left: auto;
            margin-right: -220px;
        }
    }

    .option-list .option {
        float: right;

        &:nth-child(4n+1) {
            clear: right;
        }
    }

    .option-list .info {
        right: auto;
        left: -10px;
        margin-right: 0;
        margin-left: -20px;
    }

}

/*-------------------------------------------------------------------------*/
// @Tablet Layout: 760px
@media only screen and (min-width: @breakTablet) and (max-width: @breakDesktop) {

    #masthead,
    .container {
        width: @widthTablet - (@gridGutterWidth * 2);
    }

    .page-title {
        .font-size(60px);
    }

    .contribute-nav {
        .span_narrow(10);

        li {
            .span_narrow(2);
        }

        .nav-cta {
            .span_narrow(3);
        }
    }

    .head-stats {
        width: @widthTablet - (@gridGutterWidth * 2);

        li {
            .span_narrow(4);
        }
    }

    #slideshow .section-title {
        margin-left: 0;
        margin-right: 0;
    }

    .landing-mission {
        .mission-content {
            .span_narrow(6);
        }

        .mission-video {
            .span_narrow(6);

            a:before {
                width: 70px;
                height: 70px;
                top: 50px;
                margin-left: -38px;
                .font-size(36px);
                line-height: 72px;
            }
        }
    }

    .stories .person {
        .span_narrow(3);
        padding: 210px 30px 0;

        a {
            width: auto;
            margin: 0 -30px;
        }
    }

    .story-intro,
    .story-areas,
    .story-links {
        .span_narrow(4);
    }

    .steps li {
        .span_narrow(3);
        padding: 140px 30px 0;
    }

    .landing-notready {
        .section-tagline {
            margin-left: 120px;
            margin-right: 120px;
        }

        .other-actions {
            .span_narrow(8);
            float: none;
            margin: 0 auto;
        }
    }

    .option-list {
        .option {
            .span_narrow(3);
            padding-top: 170px;

            label:before {
                top: -145px;
                width: 120px;
                height: 120px;
                .font-size(60px);
                line-height: 125px;
                margin-left: -70px;
            }
        }

        .tooltip {
            width: 170px;
        }
    }

    .inquiry-form {
        .personal li {
            .span_narrow(4);
            margin-bottom: 20px;
        }
    }

    #thankyou .page-head {
        padding-bottom: 40px;
    }

    .confirm-body {
        padding-left: 380px;
    }

    .mozillians-profile {
        width: 350px;
        height: 350px;
        margin-left: -380px;
        margin-top: -65px;
        -webkit-background-size: 350px 350px;
                background-size: 350px 350px;

        .profile-greeting {
            .font-size(18px);
            left: 190px;
            bottom: 255px;
        }

        .profile-name {
            .font-size(11px);
            left: 70px;
            bottom: 175px;
        }
    }

    .extra-event,
    .extra-links,
    .extra-newsletter {
        .span_narrow(4);
    }

}

/*-------------------------------------------------------------------------*/
// @Mobile Layout: 320px
@media only screen and (max-width: @breakTablet) {

    #masthead,
    .container {
        width: @widthMobile - (@gridGutterWidth * 2);
    }

    #tabzilla {
        right: -10px;
    }

    .section .container {
        padding: 20px 10px;
    }

    .page-head {
        padding-top: 80px;
    }

    .contribute-masthead {
        min-height: 0;
    }

    .contribute-nav {
        width: auto;
        float: none;
        position: absolute;
        left: -10px;
        top: 0;

        .toggle {
            position: absolute;
            left: 0;
            top: -30px;
            display: block;
            width: 32px;
            height: 32px;
            text-indent: 50px;
            overflow: hidden;
            cursor: pointer;
            margin: 0;

            &:after {
                font-family: 'Font Awesome';
                content: '\f0c9';
                .font-size(30px);
                color: #fff;
                position: absolute;
                left: 0;
                top: 0;
                text-indent: 3px;
                line-height: 1;
            }
        }
    }

    #landing .nav-landing:after,
    #events .nav-events:after,
    #stories .nav-stories:after {
        content: none;
    }

    #contribute-nav-menu {
        display: none;
        width: 160px;
        background: @mozillared;
        padding: 0 5px 5px;
        border-radius: 6px;
        left: 0;

        li {
            width: auto;
            margin: 5px 0 0;
            float: none;
            display: block;
        }

        .nav-cta {
            padding-bottom: 8px;
        }
    }

    .page-title {
        .font-size(34px);
    }

    .section-title {
        .font-size(30px);
    }

    .section-tagline {
        .font-size(20px);
    }

    .head-stats {
        width: auto;
        margin: 30px auto 0;

        li {
            width: auto;
            float: none;
            margin: 0 0 1em;
            text-align: left;
            .clearfix;
        }

        strong {
            display: inline;
            .font-size(18px);
            font-weight: bold;
        }
    }

    #slideshow {
        height: 280px;

        .section-title {
            margin-left: 0;
            margin-right: 0;
        }
    }

    .landing-intro {
        min-height: 280px;

        .section-title {
            .font-size(24px);
        }

        .cta a {
            min-width: 0;
            padding: 10px 30px;
            .font-size(@largeFontSize);
        }
    }

    .landing-mission {
        .mission-content {
            width: auto;
            float: none;
            margin: 0 0 30px;
        }

        .mission-video {
            width: auto;
            float: none;
            margin: 0;

            a:before {
                top: 24px;
            }
        }
    }

    .stories .person {
        width: auto;
        float: none;
        margin: 0 0 40px;
        padding: 0 0 0 100px;
        text-align: left;

        &:nth-child(3n + 1) {
            clear: none;
        }

        a {
            width: auto;
            padding: 10px 20px;
        }

        img {
            width: 80px;
            height: 80px;
            left: -3px;
            margin: 0;
            border-width: 3px;
        }
    }

    .steps {
        li {
            width: auto;
            float: none;
            padding: 10px 0 10px 90px;
            margin-bottom: 30px;
            text-align: left;

            &:after {
                content: '\f078'; // down chevron
                .font-size(30px);
                right: 0;
                bottom: -35px;
                top: auto;
                width: 100%;
                text-align: center;
            }
        }

        .step1 {
            background: url(/media/img/contribute/step1-select-sm.png) left center no-repeat;
        }

        .step2 {
            background: url(/media/img/contribute/step2-notify-sm.png) left center no-repeat;
        }

        .step3 {
            background: url(/media/img/contribute/step3-profile-sm.png) 5px center no-repeat;
        }
    }

    .landing-howto .cta a {
        min-width: 0;
    }

    .landing-notready .other-actions {
        width: auto;

        li {
            width: auto;
            float: none;
        }
    }

    .extra-event,
    .extra-links,
    .extra-newsletter,
    .extra-actions {
        width: auto;
        float: none;
        margin-bottom: 30px;
    }

    .events-table {
        thead {
            display: none;
        }

        th,
        td {
            display: block;
            padding: .25em 10px;
        }

        .event-date,
        .event-name {
            width: auto;
        }

        tr {
            display: block;
            margin: 0 0 20px;
        }

        tbody .event-name {
            .font-size(@largeFontSize);
            font-weight: bold;
        }

        tbody .event-date {
            .font-size(@smallFontSize);
        }
    }

    .story-main .container {
        .font-size(inherit);
    }

    .story-intro,
    .story-areas,
    .story-links {
        width: auto;
        float: none;
    }

    .story-intro .photo {
        width: 180px;
        height: 180px;
        border-width: 5px;
        top: -100px;
        margin-left: -95px;
    }

    .story-title {
        .font-size(32px);
        margin: 90px 0 20px;
    }

    .inquiry-form {
        .section-title {
            margin-left: 0;
        }

        .areas {
            margin: 0 0 20px;

            label {
                .font-size(24px);
            }
        }

        .personal {
            li,
            .form-message,
            .form-agree,
            .form-format,
            .form-newsletter {
                width: auto;
                float: none;
                margin: 0 0 20px;
            }
        }

        .submit button {
            padding: 10px 20px;
            width: 260px;
            margin-left: -130px;
        }
    }

    .option-list {
        .option {
            width: auto;
            float: none;
            margin: 0 0 10px;
            padding: 10px 0 10px 80px;
            min-height: 30px;
            text-align: left;
        }

        label:before {
            .font-size(26px);
            width: 30px;
            height: 30px;
            border-width: 3px;
            left: -55px;
            top: -10px;
            margin: 0;
            line-height: 30px;
            text-align: center;
        }

        .info:after {
            text-align: center;
        }

        .tooltip {
            left: -70px;
        }
    }

    #thankyou {
        .page-head {
            padding-bottom: 0;
        }

        .page-title,
        .section-tagline {
            margin: 0 0 20px;
        }
    }

    .confirm-body {
        padding-left: 0;
    }

    .mozillians-profile {
        display: none;
    }

    [dir='rtl'] {
        .contribute-nav {
            left: auto;
            right: -10px;

            .toggle {
                left: auto;
                right: 0;
            }

            .nav-cta {
                right: auto;
            }
        }

        .option-list {
            .option {
                float: none;
                padding: 10px 80px 10px 0;
                text-align: right;

                label:before {
                    left: auto;
                    right: -60px;
                }
            }

            .tooltip {
                left: auto;
                right: -70px;
            }
        }

        .inquiry-form .submit button {
            margin-right: -130px;
        }

        .steps li{
            float: none;

            &:after {
                content: '\f078'; // down chevron
                right: 0;
            }
        }
    }

}

/*-------------------------------------------------------------------------*/
// @Wide mobile Layout: 480px
@media only screen and (min-width: @breakMobileLandscape) and (max-width: @breakTablet) {

    #masthead,
    .container {
        width: @widthMobileLandscape - (@gridGutterWidth * 2);
    }

    .landing-mission .mission-video a:before {
        top: 54px;
    }

}

// Change images at certain breakpoints
@media only screen and (max-width: 960px) {

    .slide-one {
        background-image: url(/media/img/contribute/bg-slide1-1000.jpg);
    }

    .slide-two {
        background-image: url(/media/img/contribute/bg-slide2-1000.jpg);
    }

    .slide-three {
        background-image: url(/media/img/contribute/bg-slide3-1000.jpg);
    }

    .landing-notready {
        background-image: url(/media/img/contribute/bg-notready-1000.jpg);
    }

    .stories-intro {
        background-image: url(/media/img/contribute/bg-stories-1000.jpg);
    }

}

@media only screen and (max-width: 480px) {

    .slide-one {
        background-image: url(/media/img/contribute/bg-slide1-600.jpg);
    }

    .slide-two {
        background-image: url(/media/img/contribute/bg-slide2-600.jpg);
    }

    .slide-three {
        background-image: url(/media/img/contribute/bg-slide3-600.jpg);
    }

    .landing-notready {
        background-image: url(/media/img/contribute/bg-notready-600.jpg);
    }

    .stories-intro {
        background-image: url(/media/img/contribute/bg-stories-600.jpg);
    }

}


Break long words in comments

Break long words in comments

fatal: unable to access 'https://github.com/svijee/theme-default.git/': The requested URL returned error: 403


New styles new layout

New styles new layout

error: pathspec 'app/styles/variables.less' did not match any file(s) known to git


Create day-week-hour.less

Create day-week-hour.less

day weeks specific css for hours

fatal: unable to access 'https://github.com/antonioa89/bootstrap-calendar.git/': The requested URL returned error: 403


Fix transparent line-numbers background (#1690)

fatal: unable to access 'https://github.com/Atvaark/insomnia.git/': The requested URL returned error: 403