discourse/app/assets/stylesheets/embed.scss

178 lines
2.9 KiB
SCSS
Raw Normal View History

@import "./vendor/normalize";
@import "./common/foundation/base";
@import "./common/foundation/variables";
@import "./common/foundation/colors";
2015-08-20 02:14:39 +08:00
@import "./common/foundation/mixins";
article.post {
border-bottom: 1px solid #ddd;
2016-05-26 16:08:48 +08:00
img.avatar {
border-radius: 50%;
}
&.deleted {
background-color: #ffe5e5;
}
.quote .title {
2015-09-13 19:02:58 +08:00
border-left: 5px solid darken(dark-light-diff($primary, $secondary, 97%, -45%), 10%);
background-color: dark-light-diff($primary, $secondary, 97%, -45%);
padding: 10px 10px 0 12px;
.avatar { margin-right: 7px; }
}
ol, ul {
clear: none;
}
blockquote {
padding: 10px 8px 10px 13px;
margin: 0 0 10px 0;
background-color: dark-light-diff($primary, $secondary, 97%, -45%);
border-left: 5px solid darken(dark-light-diff($primary, $secondary, 97%, -45%), 10%);
p {
margin: 0 0 10px 0;
}
p:last-of-type {
margin-bottom:0;
}
}
.post-date {
float: right;
color: #aaa;
font-size: 0.857em;
margin: 10px 4px 0 0;
}
.author {
padding: 10px 5px;
float: left;
img {
max-width: 45px;
border-radius: 50%;
}
}
.cooked {
padding: 10px 0;
2014-05-10 04:12:21 +08:00
margin-left: 65px;
2014-03-23 06:05:38 +08:00
word-wrap: break-word;
word-break: break-word;
pre {
white-space: pre-wrap;
}
img {
max-width:100%;
}
p {
margin: 0 0 1em 0;
}
}
}
.username {
font-size: 0.929em;
margin: 0 0 10px 0;
a {
color: #5c5c5c
}
a.staff {
background-color: #ffffc2;
}
a.new-user {
color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%));
}
span.title {
font-weight: normal;
color: #999;
}
}
2014-03-20 05:51:06 +08:00
img.emoji {
width: 20px;
height: 20px;
}
2014-01-04 01:52:24 +08:00
.in-reply-to {
font-size: 0.929em;
2014-05-10 04:12:21 +08:00
text-align: center;
2014-05-10 14:20:23 +08:00
margin: 10px 20px 6px 0;
2014-01-04 01:52:24 +08:00
display: inline-block;
2014-05-10 04:12:21 +08:00
float: right;
color: #0088cc;
2014-01-04 01:52:24 +08:00
}
.replies {
font-size: 1.071em;
2014-01-04 01:52:24 +08:00
color: #999;
}
.clearfix {
clear: both;
}
header.discourse {
padding-left: 10px;
padding-right: 10px;
padding-bottom: 8px;
font-size: 1.286em;
border-bottom: 3px solid #ddd;
2015-09-19 03:36:40 +08:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
h3 {
margin: 0 auto 0 0;
font-size: 1.0em;
2015-09-18 17:44:13 +08:00
}
}
.embed-error {
padding: 0 10px;
}
footer {
font-size: 1.286em;
2015-09-19 03:36:40 +08:00
margin-top: 0.5em;
.button {
color: white;
padding: 6px 8px;
background-color: #0088cc;
2015-09-19 03:36:40 +08:00
display: inline-block;
}
}
.logo {
float: right;
max-height: 30px;
}
// load onebox CSS at the end
@import "./common/base/onebox";
2016-05-26 16:08:48 +08:00
// we apparently use bottom margins on paras in the embed CSS, leading to weirdness
// which we will now clean up
aside.onebox {
margin-bottom: 20px;
p {
margin-bottom: 0 !important;
}
}
2016-05-26 16:16:33 +08:00
// images large enough for the lightbox wrapper don't have bottom margins
// either, unless we add one now
div.lightbox-wrapper {
margin-bottom: 20px;
}