This repository has been archived on 2020-07-12. You can view files and clone it, but cannot push or open issues/pull-requests.
mitgliedsantrag/src/less/style.less

231 lines
3.8 KiB
Plaintext
Raw Normal View History

2018-04-24 21:25:52 +02:00
@color-1: #047e7c;
@color-2: #0c6d74;
@color-3: #145c6c;
@color-white: #f1f2e3;
2018-04-21 17:31:13 +02:00
@color-grey: #787970;
/* ======== MIXINS ======== */
.step-color(@color) {
background-color: @color;
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
.step-number:not(.done) {
color: @color;
}
}
// shadow appilied to element under to shadow element
// (shadow is placed on the top)
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
.top-bottom-shadow {
box-shadow: inset 0px 8px 6px -5px rgba(0, 0, 0, 0.5);
}
/* ======== ANIMATIONS ======== */
@keyframes rotate-step-number {
0% {
2018-04-24 21:25:52 +02:00
transform: rotate3d(0, 0, 0, 0deg);
}
2018-04-24 21:25:52 +02:00
50% {
transform: rotate3d(45, 45, 1, 90deg);
}
2018-04-24 21:25:52 +02:00
100% {
2018-04-24 21:25:52 +02:00
transform: rotate3d(0, 0, 0, 0deg);
}
}
2018-04-21 17:31:13 +02:00
/* ======== ======== */
body {
background-color: @color-white;
2018-04-24 21:25:52 +02:00
cursor: default;
font-family: 'Source Sans Pro', sans;
2018-04-21 17:31:13 +02:00
font-weight: 300;
}
header {
background-color: @color-white;
2018-04-21 17:31:13 +02:00
padding: 1rem;
h1 {
//font-size: 50px;
font-weight: 300;
2018-04-24 21:25:52 +02:00
padding: 0.5em 0px;
2018-04-21 17:31:13 +02:00
text-align: center;
}
}
#steps {
color: @color-white;
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
.step-heading {
.top-bottom-shadow;
h2 {
font-weight: 300;
padding: 8px;
.step-number {
2018-04-24 21:25:52 +02:00
border: 0px;
border-radius: 50%;
2018-04-21 17:31:13 +02:00
display: inline-block;
font-weight: 400;
2018-04-21 17:31:13 +02:00
height: 40px;
2018-04-24 21:25:52 +02:00
margin: 0px 0.5em;
text-align: center;
transition: background-color 0.5s, transform 0.5s;
2018-04-24 21:25:52 +02:00
width: 40px;
2018-04-21 17:31:13 +02:00
}
.step-number:not(.done) {
background-color: @color-white;
2018-04-21 17:31:13 +02:00
color: black;
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
.number {
display: inline;
}
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
.check {
display: none;
}
}
.step-number.done {
&:not(.final) { // prevents animation to be shown at final step
animation: rotate-step-number 0.5s;
}
2018-04-24 21:25:52 +02:00
background-color: #8eca63; // green
color: @color-white;
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
.number {
display: none;
}
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
.check {
display: inline;
}
}
}
}
.step {
form {
.row {
margin-bottom: 0.7em;
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
.col {
2018-04-24 21:25:52 +02:00
padding: 0px 0.5em;
2018-04-21 17:31:13 +02:00
}
}
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
input {
background-color: rgba(255, 255, 255, 0.30);
border: 0px solid rgba(255, 255, 255, 0.30);
border-radius: 6px;
2018-04-24 21:25:52 +02:00
color: white; // (!)
2018-04-21 17:31:13 +02:00
padding: 0.4em 0.6em;
width: 100%;
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
&::placeholder {
color: rgba(255, 255, 255, 0.5);
opacity: 1;
}
2018-04-24 21:25:52 +02:00
}
/* do not show spin buttons */
input {
-moz-appearance: textfield;
&::-webkit-outer-spin-button,
&::-webkit-inner-spin-button {
-webkit-appearance: none;
}
2018-04-21 17:31:13 +02:00
}
}
.next-wrapper {
height: 96px;
padding-top: 2em;
2018-04-24 21:25:52 +02:00
text-align: center;
2018-04-21 17:31:13 +02:00
button {
/* unstyle button */
background-color: transparent;
2018-04-24 21:25:52 +02:00
border: 0px;
color: @color-white;
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
span {
display: block;
font-size: 24px;
}
i {
font-size: 48px;
}
}
}
}
2018-04-24 21:25:52 +02:00
.step-heading,
.step {
2018-04-21 17:31:13 +02:00
padding: 2em 30vw;
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
&.step-heading {
padding-bottom: 1em;
}
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
&.step {
padding-top: 1em;
}
}
2018-04-24 21:25:52 +02:00
#step-1,
#step-1-heading {
2018-04-21 17:31:13 +02:00
.step-color(@color-1);
}
2018-04-24 21:25:52 +02:00
#step-2,
#step-2-heading {
2018-04-21 17:31:13 +02:00
.step-color(@color-2);
}
2018-04-24 21:25:52 +02:00
#step-3,
#step-3-heading {
2018-04-21 17:31:13 +02:00
.step-color(@color-3);
}
}
footer {
.top-bottom-shadow;
background-color: @color-white;
2018-04-21 17:31:13 +02:00
padding: 2em 30vw;
text-align: center;
2018-04-24 21:25:52 +02:00
2018-04-21 17:31:13 +02:00
a {
2018-04-24 21:25:52 +02:00
border-bottom: dotted 1px rgba(0, 0, 0, 0.25);
2018-04-21 17:31:13 +02:00
color: @color-grey;
}
}
/* ======== FINAL STEP ======== */
.step.final {
pre.address {
2018-04-24 21:25:52 +02:00
color: @color-white;
font-family: inherit;
font-size: inherit;
}
2018-04-24 21:25:52 +02:00
.download-wrapper {
text-align: center;
}
2018-04-24 21:25:52 +02:00
a {
2018-04-24 21:25:52 +02:00
border-bottom: dotted 1px rgba(0, 0, 0, 0.25);
color: @color-white;
}
}