howfeed/static/global.css

153 lines
2.7 KiB
CSS
Raw Normal View History

2020-06-04 00:59:08 -07:00
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;
2020-06-04 19:30:45 -07:00
color: #000;
background-color: rgb(150, 200, 234);
2020-06-04 00:59:08 -07:00
}
h1, h2, h3, h4, h5, h6 {
2020-06-04 19:30:45 -07:00
font-weight: bold;
line-height: 1.1;
2020-06-04 00:59:08 -07:00
}
h1 {
font-size: 2em;
}
a {
color: inherit;
}
2020-06-04 19:30:45 -07:00
a:hover {
color: #508FC3;
cursor: url('middlefinger.cur'), default;
2020-06-04 19:30:45 -07:00
}
2020-06-04 00:59:08 -07:00
code {
font-family: menlo, inconsolata, monospace;
font-size: calc(1em - 2px);
color: #555;
background-color: #f0f0f0;
padding: 0.2em 0.4em;
border-radius: 2px;
}
2020-06-05 00:24:24 -07:00
@media (min-width: 800px) {
body {
font-size: 16px;
2020-06-04 21:29:16 -07:00
}
.content {
margin: 8rem auto !important;
}
2020-06-05 00:24:24 -07:00
.article-title {
2020-08-10 16:51:16 -07:00
font-size: 3rem !important;
2020-06-05 00:24:24 -07:00
}
.article-date {
font-size: 2rem !important;
}
div.article-list > a {
2020-08-10 17:18:38 -07:00
flex-direction: row !important;
2020-06-05 00:24:24 -07:00
}
div.article-meta {
2020-08-10 17:18:38 -07:00
margin: 2rem !important;
margin-right: 0 !important;
padding-top: 0.75rem !important;
2020-06-05 00:24:24 -07:00
}
div.article-list {
padding: 2rem 1rem;
}
2020-08-10 16:51:16 -07:00
div.floaty {
padding-top: 5rem !important;
}
figure.article-image {
max-height: 300px !important;
2020-08-10 17:18:38 -07:00
width: 33.33% !important;
2020-08-10 16:51:16 -07:00
}
}
@media (min-width: 1280px) {
.article-title {
font-size: 4rem !important;
}
2020-06-04 10:05:53 -07:00
}
2020-06-04 19:30:45 -07:00
div.article-list {
2020-06-05 00:24:24 -07:00
padding: 1rem;
2020-06-04 19:30:45 -07:00
background: #508FC3;
width: 80%;
margin: 0 auto;
2020-08-10 17:18:38 -07:00
box-shadow: 0 -5px 0.75rem black;
2020-06-04 19:30:45 -07:00
}
div.article-list > a {
2020-08-10 17:18:38 -07:00
margin: 2rem;
2020-08-28 23:12:24 -07:00
-js-display: flex;
2020-06-04 19:30:45 -07:00
display: flex;
text-decoration: none;
2020-08-10 17:18:38 -07:00
flex-direction: column;
2020-06-04 19:30:45 -07:00
align-items: start;
}
figure.article-image {
background: white;
2020-08-28 23:12:24 -07:00
-js-display: flex;
2020-06-04 19:30:45 -07:00
display: flex;
align-self: center;
justify-content: center;
2020-06-22 11:59:54 -07:00
margin: 0;
2020-08-10 17:18:38 -07:00
padding: 1rem;
max-height: 200px;
2020-06-04 19:30:45 -07:00
}
figure.article-image img {
width: auto;
2020-08-10 16:51:16 -07:00
object-fit: cover;
2020-06-22 11:59:54 -07:00
max-width: 100%;
2020-06-04 19:30:45 -07:00
}
div.article-meta {
background: white;
padding: 0.75rem;
2020-08-10 17:18:38 -07:00
padding-top: 0;
2020-06-04 19:30:45 -07:00
line-height: 1;
flex: 1 0 0;
2020-08-10 17:18:38 -07:00
font-weight: bold;
2020-06-04 19:30:45 -07:00
}
.article-title {
2020-06-05 00:24:24 -07:00
font-size: 2rem;
2020-06-22 11:59:54 -07:00
margin: 0 auto;
2020-06-04 19:30:45 -07:00
}
.article-date {
2020-06-05 00:24:24 -07:00
font-size: 1rem;
2020-06-22 11:59:54 -07:00
margin: 0 auto;
2020-06-04 19:30:45 -07:00
}
2020-06-04 21:29:16 -07:00
.content {
background: #fff;
2020-08-10 17:18:38 -07:00
margin: 12rem 0;
2020-06-04 21:29:16 -07:00
padding: 2rem;
}
2020-06-22 11:59:54 -07:00
div.background {
2020-06-24 10:52:01 -07:00
background: url('/background.png') no-repeat center;
2020-06-22 11:59:54 -07:00
background-size: cover;
2020-06-22 21:23:44 -07:00
background-attachment: fixed;
2020-06-22 11:59:54 -07:00
position: fixed;
height: 24rem;
width: 100%;
z-index: 0;
filter: blur(5px);
}
div.floaty {
2020-06-24 10:52:01 -07:00
padding-top: 16rem;
2020-06-22 11:59:54 -07:00
padding-bottom: 4rem;
position: absolute;
z-index: 1;
margin: 0 auto;
width: 100%;
}
2020-07-04 04:40:49 -07:00
img.avatar {
height: 48px;
width: 48px;
object-fit: cover;
}