@color-1: #047e7c; @color-2: #0c6d74; @color-3: #145c6c; @color-final: @color-2; @color-white: #f1f2e3; @color-grey: #787970; /* ======== MIXINS ======== */ .step-color(@color) { background-color: @color; .step-number:not(.done) { color: @color; } } // shadow appilied to element under to shadow element // (shadow is placed on the top) .top-bottom-shadow { box-shadow: inset 0px 8px 6px -5px rgba(0, 0, 0, 0.5); } /* ======== ANIMATIONS ======== */ @keyframes rotate-step-number { 0% { transform: rotate3d(0, 0, 0, 0deg); } 50% { transform: rotate3d(45, 45, 1, 90deg); } 100% { transform: rotate3d(0, 0, 0, 0deg); } } /* ======== ======== */ body { background-color: @color-white; cursor: default; font-family: 'Source Sans Pro', sans; font-weight: 300; } header { background-color: @color-white; padding: 1rem; h1 { //font-size: 50px; font-weight: 300; padding: 0.5em 0px; text-align: center; } } #steps { color: @color-white; .step-heading { .top-bottom-shadow; h2 { font-weight: 300; padding: 8px; .step-number { border: 0px; border-radius: 50%; display: inline-block; font-weight: 400; height: 40px; margin: 0px 0.5em; text-align: center; transition: background-color 0.5s, transform 0.5s; width: 40px; } .step-number:not(.done) { background-color: @color-white; color: black; .number { display: inline; } .check { display: none; } } .step-number.done { &:not(.final) { // prevents animation to be shown at final step animation: rotate-step-number 0.5s; } &.final { background-color: @color-white; color: @color-final; } background-color: #8eca63; // green color: @color-white; .number { display: none; } .check { display: inline; } } } } .step { form { .row { margin-bottom: 0.7em; .col { padding: 0px 0.5em; } } input { background-color: rgba(255, 255, 255, 0.30); border: 0px solid rgba(255, 255, 255, 0.30); border-radius: 6px; color: white; // (!) padding: 0.4em 0.6em; // lesshint-disable qualifyingElement &[type='text'], &[type='date'], &[type='email'] { width: 100%; } // lesshint-enable qualifyingElement &::placeholder { color: rgba(255, 255, 255, 0.5); opacity: 1; } } label { margin-right: 24px; } #contribution { font-size: 1.5em; &::after { content: '€'; } } } .next-wrapper { height: 96px; padding-top: 2em; text-align: center; button { /* unstyle button */ background-color: transparent; border: 0px; color: @color-white; span { display: block; font-size: 24px; } i { font-size: 48px; } } } } .step-heading, .step { padding: 2em 30vw; &.step-heading { padding-bottom: 1em; } &.step { padding-top: 1em; } } #step-1, #step-1-heading { .step-color(@color-1); } #step-2, #step-2-heading { .step-color(@color-2); } #step-3, #step-3-heading { .step-color(@color-3); } } footer { .top-bottom-shadow; background-color: @color-white; padding: 2em 30vw; text-align: center; a { border-bottom: dotted 1px rgba(0, 0, 0, 0.25); color: @color-grey; } } /* ======== FINAL STEP ======== */ .step.final { pre.address { color: @color-white; font-family: inherit; font-size: inherit; } .download-wrapper { text-align: center; button { &:disabled { opacity: 1; } } } a { border-bottom: dotted 1px rgba(0, 0, 0, 0.25); color: @color-white; } }