plainoldrecipe/static/styles/common.css
2020-08-06 16:07:00 -07:00

102 lines
1.6 KiB
CSS

* {
box-sizing: border-box;
}
:root, html, body {
background: #f2f2f2;
color: #444444;
text-shadow: 0 1px 0 #fff;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.6181;
margin: 0;
padding: 0;
height: 100%; /* Fallback */
height: 100vh;
width: 100%; /* Fallback */
width: 100vw;
}
main {
margin: 1rem auto;
width: 90%;
}
h1 {
font-size: 2rem;
}
p {
font-size: 1rem;
}
a {
color: #444444;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
nav.nav {
text-align: right;
font-size: 0.6875rem; /* 11px */
}
.recipe-input {
margin: 0 auto;
text-align: center;
width: 100%;
}
.recipe-input input,
.recipe-input button {
appearance: none;
background-color: #fff;
border-radius: 0.25rem;
border: 1px solid #444444;
display: block;
color: #444444;
font-size: 1rem;
padding: 0.25rem 0.5rem;
}
.recipe-input input {
margin-bottom: 0.5rem;
max-width: 100%;
width: 100%;
}
/* Unsupported styles */
.supported-list {
columns: 1;
padding-left: 1.25rem;
}
/* Responsive styles */
@media screen and (min-width: 360px) {
nav.nav {
font-size: 0.8125rem;/* 13px */
}
}
@media screen and (min-width: 480px) {
main {
max-width: 800px;
}
}
@media screen and (min-width: 660px) {
.supported-list {
columns: 2;
}
}
@media screen and (min-width: 980px) {
.supported-list {
columns: 3;
}
}
@media screen and (min-width: 1220px) {
:root, html, body {
font-size: 18px;
}
main {
max-width: 1000px;
}
}