howfeed/static/global.css

161 lines
2.8 KiB
CSS

body {
margin: 0;
font-family: Roboto, -apple-system, BlinkMacSystemFont, Segoe UI, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
font-size: 14px;
line-height: 1.5;
color: #000;
background-color: rgb(150, 200, 234);
}
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
line-height: 1.1;
}
h1 {
font-size: 2em;
}
a {
color: inherit;
}
a:hover {
color: #508FC3;
cursor: url('middlefinger.cur'), default;
}
code {
font-family: menlo, inconsolata, monospace;
font-size: calc(1em - 2px);
color: #555;
background-color: #f0f0f0;
padding: 0.2em 0.4em;
border-radius: 2px;
}
div.article-list {
padding: 1rem;
background: #508FC3;
width: 80%;
margin: 0 auto;
box-shadow: 0 -5px 0.75rem black;
}
div.article-list > a {
margin: 2rem;
-js-display: flex;
display: flex;
text-decoration: none;
flex-direction: column;
align-items: start;
}
div.article-image {
background: white;
width: 100%;
align-self: center;
justify-content: center;
margin: 0;
padding: 1rem;
max-height: 200px;
box-sizing: border-box;
overflow: hidden;
}
div.article-image img {
display: block;
width: auto;
margin: 0 auto;
max-width: 100%;
max-height: 168px;
}
div.article-meta {
background: white;
padding: 0.75rem;
padding-top: 0;
line-height: 1;
flex: 1 0 0;
box-sizing: border-box;
width: 100%;
font-weight: bold;
}
.article-title {
font-size: 2rem;
margin: 0 auto;
}
.article-date {
font-size: 1rem;
margin: 0 auto;
}
.content {
background: #fff;
margin: 16rem 0;
padding: 2rem;
}
div.background {
background: url('/background.png') no-repeat center;
background-size: cover;
background-attachment: fixed;
position: fixed;
height: 24rem;
width: 100%;
z-index: 0;
filter: blur(5px);
}
div.floaty {
padding-top: 16rem;
padding-bottom: 4rem;
position: absolute;
z-index: 1;
margin: 0 auto;
width: 100%;
}
img.avatar {
height: 48px;
width: 48px;
object-fit: cover;
}
@media (min-width: 800px) {
body {
font-size: 16px;
}
.content {
margin: 8rem auto;
}
.article-title {
font-size: 3rem;
}
.article-date {
font-size: 2rem;
}
div.article-list > a {
flex-direction: row;
}
div.article-meta {
margin: 2rem;
margin-right: 0;
padding-top: 0.75rem;
}
div.article-list {
padding: 2rem 1rem;
}
div.floaty {
padding-top: 5rem;
}
div.article-image {
max-height: 300px;
width: 33.33%;
}
div.article-image img {
max-height: 268px;
}
}
@media (min-width: 1280px) {
.article-title {
font-size: 4rem;
}
}