2019-06-25 03:10:13 +00:00
|
|
|
html {
|
|
|
|
display: flex;
|
|
|
|
font-family: system-ui,
|
|
|
|
-apple-system, BlinkMacSystemFont,
|
|
|
|
"Segoe UI", "Roboto", "Oxygen",
|
|
|
|
"Ubuntu", "Cantarell", "Fira Sans",
|
|
|
|
"Droid Sans", "Helvetica Neue", sans-serif;
|
|
|
|
font-size: 12pt;
|
|
|
|
justify-content: center;
|
|
|
|
line-height: 1.5;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* https://www.desmos.com/calculator/3elcf5cwhn */
|
|
|
|
h1 { font-size: 150%; }
|
|
|
|
h2 { font-size: 128%; }
|
|
|
|
h3 { font-size: 120%; }
|
|
|
|
h4 { font-size: 116%; }
|
|
|
|
h5 { font-size: 113%; }
|
|
|
|
h6 { font-size: 111%; }
|
|
|
|
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
|
|
margin: 0.5em 0;
|
|
|
|
}
|
|
|
|
|
2019-06-25 17:18:45 +00:00
|
|
|
pre {
|
2019-06-25 16:52:34 +00:00
|
|
|
overflow-x: auto;
|
2019-06-25 03:10:13 +00:00
|
|
|
}
|
|
|
|
|
2019-06-25 19:43:05 +00:00
|
|
|
.message img, .message video {
|
2019-06-25 03:10:13 +00:00
|
|
|
max-width: 100%;
|
|
|
|
}
|
|
|
|
|
2019-06-25 04:03:34 +00:00
|
|
|
.message > :first-child {
|
|
|
|
margin-top: 0;
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message > :last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
padding-bottom: 0;
|
|
|
|
}
|
|
|
|
|
2019-06-25 03:10:13 +00:00
|
|
|
.message code {
|
2019-06-25 18:42:34 +00:00
|
|
|
color: hsl(330, 66%, 50%)
|
2019-06-25 03:10:13 +00:00
|
|
|
}
|
|
|
|
|
2019-06-25 16:52:34 +00:00
|
|
|
.message pre code {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
|
2019-06-25 03:10:13 +00:00
|
|
|
@media screen {
|
|
|
|
html {
|
|
|
|
min-height: 100%;
|
|
|
|
background: hsl(240, 100%, 99%);
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
max-width: 40rem;
|
2019-06-25 17:35:43 +00:00
|
|
|
margin: 1.5rem;
|
2019-06-25 03:10:13 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.message {
|
|
|
|
background: #fff;
|
|
|
|
padding: 1.5rem;
|
2019-06-25 04:03:34 +00:00
|
|
|
margin: 1rem 0;
|
2019-06-25 03:10:13 +00:00
|
|
|
border-radius: 2px;
|
|
|
|
border: 1px solid #ddd;
|
2019-06-28 20:55:05 +00:00
|
|
|
word-wrap: break-word;
|
2019-06-25 03:10:13 +00:00
|
|
|
}
|
2019-06-28 20:55:05 +00:00
|
|
|
|
2019-06-25 03:10:13 +00:00
|
|
|
.message > header {
|
|
|
|
height: 1.5rem;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.message > header > a > .avatar {
|
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
border-radius: 2px;
|
|
|
|
padding-right: 0.5rem;
|
|
|
|
}
|
|
|
|
.message > header > .text > .author {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
.message > header > .text > .author > a {
|
|
|
|
color: black;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2019-06-29 17:55:43 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* HACK: centered-footer
|
|
|
|
*
|
|
|
|
* When someone likes a message we want to submit the form and then redirect
|
|
|
|
* them back to the original page. Unfortunately when you link to anchor tags
|
|
|
|
* that scrolls the browser so that they're at the *top* of the page, not the
|
|
|
|
* center of the page. In our view we have an empty div with an appropriate
|
|
|
|
* anchor tag, so here we use CSS to center it on the screen.
|
|
|
|
*
|
|
|
|
* The code below creates padding-top that takes up 50% of the height of the
|
|
|
|
* viewport and then gets rid of it with negative margin. This has no effect
|
|
|
|
* on the display of the item, but means that when we link to the anchor tag
|
|
|
|
* it centers this empty element vertically on the screen.
|
|
|
|
*
|
|
|
|
* We also use `pointer-events: none` to ensure that this invisible div doesn't
|
|
|
|
* capture cursor events (clicks, drags, etc) on surrounding elements, because
|
|
|
|
* otherwise we could have a problem where someone clicks above the invisible
|
|
|
|
* div but the browser things they're clicking the gigantic amount of padding.
|
|
|
|
*/
|
|
|
|
.message > .centered-footer {
|
|
|
|
padding-top: 50vh;
|
|
|
|
margin-top: -50vh;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
2019-06-26 00:14:23 +00:00
|
|
|
.message > footer > * {
|
2019-06-25 04:03:34 +00:00
|
|
|
margin-right: 1rem;
|
|
|
|
text-decoration: none;
|
2019-06-26 00:14:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.message > footer > a, .message > footer > form > button {
|
|
|
|
color: #888;
|
2019-06-25 04:03:34 +00:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
2019-06-26 00:14:23 +00:00
|
|
|
.message > footer > form > button.liked {
|
|
|
|
color: hsl(330, 66%, 50%)
|
|
|
|
}
|
|
|
|
|
|
|
|
.message > footer > form {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.message > footer > form > button{
|
|
|
|
display: inline-block;
|
|
|
|
border: 0;
|
|
|
|
background: transparent;
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2019-06-26 01:04:43 +00:00
|
|
|
.message blockquote {
|
|
|
|
margin-left: 0;
|
|
|
|
border-left: 0.5rem solid #eee;
|
|
|
|
padding-left: 1.5rem;
|
|
|
|
padding-top: 0.25rem;
|
|
|
|
padding-bottom: 0.25rem;
|
|
|
|
}
|
|
|
|
|
2019-06-25 17:35:43 +00:00
|
|
|
nav {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
nav * {
|
|
|
|
margin-right: 1rem;
|
|
|
|
}
|
|
|
|
|
2019-06-25 04:03:34 +00:00
|
|
|
nav a {
|
|
|
|
color: #888;
|
2019-06-25 03:10:13 +00:00
|
|
|
text-decoration: none;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2019-06-25 04:03:34 +00:00
|
|
|
|
|
|
|
.profile {
|
2019-06-25 17:35:43 +00:00
|
|
|
margin-top: 1.5rem;
|
2019-06-25 04:03:34 +00:00
|
|
|
display: flex;
|
2019-06-25 17:35:43 +00:00
|
|
|
margin-bottom: 1.5rem;
|
2019-06-25 04:03:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.profile > img, .profile > h1 {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.profile > img {
|
|
|
|
width: 4rem;
|
|
|
|
height: 4rem;
|
|
|
|
margin-right: 1rem;
|
|
|
|
border-radius: 2px;
|
|
|
|
}
|
|
|
|
|
2019-06-25 19:43:05 +00:00
|
|
|
.message code {
|
|
|
|
max-width: 100%;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
2019-06-28 02:41:33 +00:00
|
|
|
ul, ol {
|
|
|
|
padding-left: 1.5rem;
|
2019-06-25 04:03:34 +00:00
|
|
|
}
|
2019-06-25 16:52:34 +00:00
|
|
|
|
|
|
|
a {
|
2019-06-25 18:42:34 +00:00
|
|
|
color: hsl(240, 66%, 50%);
|
2019-06-25 16:52:34 +00:00
|
|
|
}
|
2019-06-29 02:55:36 +00:00
|
|
|
|
|
|
|
progress {
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
|
|
}
|