mordor/static/main.css
2021-05-17 21:31:43 +02:00

239 lines
3.3 KiB
CSS

body {
font-family: "Helvetica", "Arial", "Roboto", sans-serif;
text-align: center;
background-color: #cf863e;
}
/*input {
width: 4em;
border: 0;
background-color: #CF863E;
}
*/
input {
margin-bottom: 5vh;
border-right: none;
border-top: none;
border-left: none;
background-color: transparent;
outline: none;
color: white;
caret-color: white;
width: 4em;
}
input[type="number"] {
text-align: center;
color: white;
font-family: "Roboto", sans-serif;
-webkit-appearance: textfield;
-moz-appearance: textfield;
appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
-webkit-appearance: none;
}
h1 {
margin-bottom: 0.7em;
}
@media (min-height: 500px) {
hgroup {
margin-top: 5em;
}
}
.subtitle {
font-size: 125%;
font-weight: 500;
}
.emptiness {
margin-top: 2em;
}
@media (min-height: 500px) {
.emptiness {
margin-top: 9em;
}
}
button {
font: inherit;
background: #ff7f00;
border: 0px solid #000;
border-radius: 0.3em;
padding: 0.3em 0.8em 0.3em 0.7em;
}
.big_but {
padding: 1em 2em;
min-width: 10em;
min-height: 4.7em;
border-radius: 0.5em;
}
.cart {
margin: 3em auto 0;
font-weight: 400;
display: grid;
max-width: 20em;
grid-template-columns: auto 40% auto;
row-gap: 2em;
font-size: 125%;
}
.shop {
margin: 3em auto 0;
font-weight: 400;
display: grid;
max-width: 40em;
grid-template-columns: auto 30% 20% 20% 10% auto;
row-gap: 2em;
font-size: 125%;
}
.shop {
row-gap: 1em;
}
.cart > div,
.shop > div {
align-self: center;
}
.leftcell {
text-align: right;
}
.midcell {
height: 100px;
line-height: 100px;
white-space: nowrap;
}
.rightcell {
text-align: left;
padding-left: 1em;
}
.shop .midcell {
text-align: left;
padding-left: 2em;
}
.buy_button_cell,
.total_quantity,
.total_price {
padding-bottom: 2em;
margin-bottom: -1.5em;
}
.total_price {
border-bottom: 1.5px solid #000;
}
.cart .quantity {
margin-right: 2em;
}
.photo {
display: inline-block;
vertical-align: middle;
text-align: center;
border: 1.5px solid #000;
border-radius: 100%;
width: 5em;
height: 5em;
line-height: 5em;
box-sizing: border-box;
margin: 0 auto;
font-size: 95%;
}
.shop button {
padding: 0 1em 0.1em;
line-height: 0.9;
}
.narrow {
display: inline-block;
transform: scaleX(0.9);
}
.toonarrow {
display: inline-block;
transform: scaleX(0.75);
}
.bold {
font-weight: 700;
}
.equals {
display: inline-block;
transform: scaleY(0.55);
font-weight: 100;
}
nav a {
margin-left: 1em;
margin-right: 1em;
color: rgb(8, 8, 63);
display: inline-block;
position: relative;
text-decoration: none;
}
nav a:before {
background-color: rgb(8, 8, 63);
content: "";
height: 2px;
position: absolute;
bottom: -1px;
left: 50%;
transform: translateX(-50%);
transition: width 0.2s ease-in-out;
width: 100%;
}
nav a:hover:before {
width: 0;
}
nav {
display: flex;
justify-content: center;
margin-top: 2em;
}
nav ul {
margin: 0;
padding: 0;
}
nav li {
list-style-type: none;
display: inline-block;
margin: 0 10px;
}
nav li:first-child {
margin-left: 0;
}
nav li:last-child {
margin-right: 0;
}
nav span,
nav a {
display: inline-block;
padding: 10px 1vw;
}
.deemphasized {
color: #66351d;
}