reddit-save/html/style.css

179 lines
2.6 KiB
CSS
Raw Normal View History

2021-01-03 02:22:07 +01:00
* {
margin: 0;
padding: 0;
border: 0;
outline: none;
font-size: 100%;
font: inherit;
vertical-align: baseline;
list-style: none;
background-color: inherit;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
}
body {
font-family: 'Open Sans', Verdana;
2020-12-31 01:33:30 +01:00
}
2020-12-31 02:32:06 +01:00
img, video {
max-width: 200px;
2021-01-03 04:01:13 +01:00
max-height: 200px;
cursor: pointer;
2021-01-03 02:22:07 +01:00
}
a {
color: #0079d3;
text-decoration: none;
}
p {
font-size: 14px;
margin-bottom: 8px;
}
em {
font-style: italic;
}
strong {
font-weight: bold;
}
code {
font-family: monospace;
white-space: pre;
}
2021-01-03 21:56:15 +01:00
blockquote {
font-style: italic;
padding-left: 8px;
position: relative;
}
blockquote:before {
position: absolute;
left: 0;
width: 4px;
content: "";
height: 100%;
background-color: #16a085;
}
2021-01-03 02:22:07 +01:00
a:hover {
text-decoration: underline;
}
h1 {
font-weight: bold;
font-size: 24px;
padding: 8px 16px;
}
.post, .comment {
border-top: 1px solid #f0f0f0;
padding: 12px 16px;
}
.post h2 {
font-weight: bold;
font-size: 18px;
}
.post h1 {
padding: 0;
margin-bottom: 8px;
}
.post .info {
font-size: 12px;
font-weight: 300;
margin-bottom: 16px;
}
.post .info time {
font-weight: 500;
}
.post .info time, .post .info span {
padding-right: 4px;
}
.post .links a {
padding-right: 4px;
font-weight: 400;
}
.post .links a:after {
content: "|";
position: relative;
right: -4px;
}
.post .links a:last-child:after {
content: "";
}
.comment .info {
display: flex;
align-items: baseline;
margin-bottom: 8px;
}
.comment .info time {
padding-right: 12px;
}
.comment .info div {
font-weight: 300;
font-size: 12px;
padding-right: 8px;
position: relative;
top: -1px;
}
.comments h2 {
font-weight: bold;
font-size: 20px;
padding: 8px 16px;
2021-01-03 03:26:38 +01:00
}
button {
border: 1px solid #1abc9c60;
color: #1abc9c;
border-radius: 5px;
padding: 4px 8px;;
font-size: 12px;
cursor: pointer;
position: absolute;
right: 16px;
font-weight: bold;
top: 10px;
background-color: #1abc9c20;
}
button:hover {
background-color: #1abc9c40;
2021-01-03 04:01:13 +01:00
}
.preview.full {
width: 100vw;
height: 100vh;
position: fixed;
left: 0;
top: 0;
background-color: #00000080;
display: flex;
justify-content: center;
z-index: 100;
align-items: center;
}
.preview.full img, .preview.full video {
max-width: 100vw;
max-height: 100vh;
width: 100%;
height: 100%;
object-fit: contain;
2020-12-31 00:51:41 +01:00
}