You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

144 lines
2.4 KiB
CSS

@import url(https://fonts.googleapis.com/css?family=Happy+Monkey|Lemon);
html {
box-sizing: border-box;
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
font-family: "Happy Monkey";
line-height: 1.5;
min-width: 21.25em;
}
.passengers {
padding: 1em;
margin-left: auto;
margin-right: auto;
max-width: 60em;
}
h1 {
font-family: 'Lemon';
font-size: 1.5em;
text-align: center;
margin-bottom: 1em;
}
.passenger {
margin-bottom: 1em;
padding-right: 1.69492%;
}
@media screen and (min-width: 31em) {
.passenger {
width: 32.2033898305%;
float: left;
margin-right: 1.6949152542%;
border-right: 1px solid black;
}
.passenger:nth-child(3n) {
float: right;
margin-right: 0;
border-right: 0;
}
}
@media screen and (min-width: 31em) {
.passenger__label {
text-align: center;
margin-bottom: 1em;
}
}
@media screen and (max-width: 30.99em) {
.passenger__label {
display: inline-block;
vertical-align: middle;
width: calc(100% - 10.25em);
}
}
@media screen and (max-width: 24.5em) {
.passenger__label span {
display: block;
}
}
@media screen and (min-width: 31em) and (max-width: 39.99em) {
.passenger__label span {
display: block;
}
}
.passenger__stepper {
position: relative;
display: inline-block;
width: 100%;
}
.passenger__stepper > * {
display: inline-block;
vertical-align: middle;
}
@media screen and (max-width: 30.99em) {
.passenger__stepper {
width: 10em;
}
}
@media screen and (min-width: 31em) {
.passenger__stepper {
display: block;
max-width: 14em;
margin: 0 auto;
}
.passenger__stepper::after {
content: '';
display: block;
clear: both;
}
}
.stepper {
border: 0;
outline: 0;
cursor: pointer;
font-size: 1.25em;
background: black;
color: white;
width: 2em;
height: 2em;
border-radius: 50%;
box-shadow: 0.125em 0.125em 0 0 white, 0.125em 0.125em 0 1px black;
}
.stepper:active {
box-shadow: 0 0 0 1px white, 0 0 0 1px black;
-webkit-transform: translate(0.125rem, 0.125rem);
transform: translate(0.125rem, 0.125rem);
}
.stepper__display {
font-size: 2em;
margin: 0 0.5em;
}
@media screen and (min-width: 31em) {
.stepper__display {
font-size: 5em;
float: left;
line-height: 1.2;
margin: 0;
padding-left: 1rem;
}
.stepper {
position: absolute;
right: 1rem;
}
.stepper__more {
top: 0;
}
.stepper__less {
bottom: 0;
}
}