caveman/gatherer/assets/style.css

215 lines
3.7 KiB
CSS

:root {
color-scheme: dark only;
}
* {
box-sizing: border-box;
}
body {
margin: 0 auto;
padding: 0;
background-color: #484B90;
color: #F0F0F0;
font-family: sans-serif;
}
a {
color: #FFF4BD;
text-decoration: none;
}
header {
text-align: center;
margin-bottom: 3rem;
}
header h1::before {
color: #5582E0;
font-weight: bold;
content: '#';
}
header h1 {
margin: 0.5rem 0 0;
color: #FFF;
font-size: 400%;
font-variant: small-caps;
letter-spacing: 0.3rem;
}
header .tagline {
font-size: 150%;
margin: 0 0 1rem;
letter-spacing: 0.3rem;
}
.plea {
z-index: 20;
position: fixed;
top: -6rem;
right: -13rem;
padding: 0 8rem;
transform: translateX(-50%) rotate(45deg) translateX(50%);
background-color: #FFF4BD;
}
.plea p {
margin: 0;
text-align: center;
}
.plea a {
color: #484B90;
font-weight: bold;
}
nav {
display: block;
text-align: center;
background-color: #5582E0;
}
nav h2, nav ul {
display: inline-block;
list-style-type: none;
margin: 0.5rem 0.5rem;
padding: 0.2rem;
}
nav h2 {
font-size: 100%;
}
nav ul li {
display: inline-block;
list-style-type: none;
margin: 0 0.15rem;
}
nav form {
margin: 0 0.5rem;
padding: 0.2rem;
padding-bottom: 0.5rem;
}
main {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
}
section {
flex-basis: 25%;
flex-grow: 1;
flex-shrink: 1;
margin: 0;
border-radius: 0.7rem;
padding: 0.5rem 0;
}
section h2 {
max-width: 100%;
text-align: center;
letter-spacing: 0.3rem;
font-size: 180%;
font-variant: small-caps;
}
article {
position: relative;
background-color: #5582E0;
border-radius: 0.8rem;
padding: 0.5rem;
margin: 1.5rem 0.5rem;
overflow: hidden;
}
article .title {
margin: 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-items: stretch;
justify-content: space-between;
align-content: space-around;
background-color: #484B90;
border-radius: 0.5rem 0.5rem 0 0;
text-shadow:
-0.1rem -0.1rem 0.15rem #484B90,
0.1rem -0.1rem 0.15rem #484B90,
-0.1rem 0.1rem 0.15rem #484B90,
0.1rem 0.1rem 0.15rem #484B90;
}
article.with-image .title {
height: 8rem;
transition: height 1s ease-out 0s;
}
article h3 {
display: inline-block;
margin: 0;
padding: 1rem 0.5rem;
color: #FFF;
font-size: 250%;
font-weight: normal;
z-index: 10;
max-width: 8em;
}
article h3::before {
color: #5582E0;
font-weight: bold;
content: '#';
}
article .score {
display: inline-block;
align-self: center;
text-align: right;
margin: 0;
padding: 1rem 0.5rem;
z-index: 10;
}
article .hosts {
list-style-type: none;
padding: 0;
margin: 0.5rem 0 0 0;
text-align: center;
overflow: hidden;
line-height: 1.5rem;
height: 1.5rem;
}
article .hosts li {
display: inline-block;
margin: 0 0.2rem;
font-size: 80%;
}
article .graph, article .images {
position: absolute;
width: calc(100% - 1rem);
margin: 0;
}
article .graph {
height: calc(100% - 2.4rem);
z-index: 2;
}
article .images {
overflow: hidden;
border-radius: 0.5rem 0.5rem 0 0;
z-index: 1;
height: calc(100% - 2.4rem);
}
article .images .image {
background-position: center;
background-size: cover;
position: absolute;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
transition: left 0.5s ease-in-out 0s;
}
.plain {
max-width: 40rem;
margin: 2rem 2rem 4rem;
}
.plain fieldset {
text-align: center;
}
.plain form {
margin-bottom: 6rem;
}
footer p {
text-align: center;
font-size: 80%;
}