discourse/app/assets/stylesheets/embed.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

262 lines
4.6 KiB
SCSS
Raw Normal View History

@import "./vendor/normalize";
@import "./vendor/normalize-ext";
@import "./common/foundation/base";
@import "./color_definitions";
@import "./common/components/buttons";
article.post {
border-bottom: 1px solid var(--primary-low);
2016-05-26 04:08:48 -04:00
img.avatar {
border-radius: 50%;
}
&.deleted {
background-color: var(--danger-low);
}
.quote .title {
border-left: 5px solid var(--primary-very-low);
padding: 10px 10px 0 12px;
.avatar {
margin-right: 7px;
}
}
ol,
ul {
clear: none;
}
blockquote {
padding: 10px 8px 10px 13px;
margin: 0 0 10px 0;
border-left: 5px solid var(--primary-very-low);
p {
margin: 0 0 10px 0;
}
p:last-of-type {
margin-bottom: 0;
}
}
.post-date {
float: right;
color: var(--primary-low-mid);
font-size: var(--font-down-1);
margin: 10px 4px 0 0;
}
.author {
padding: 10px 5px;
float: left;
img {
max-width: 45px;
border-radius: 50%;
}
}
.cooked {
padding: 10px 0;
2014-05-09 16:12:21 -04:00
margin-left: 65px;
2014-03-22 18:05:38 -04:00
word-wrap: break-word;
word-break: break-word;
pre {
white-space: pre-wrap;
}
img {
max-width: 100%;
height: auto;
}
p {
margin: 0 0 1em 0;
}
}
}
.username {
font-size: var(--font-down-1);
margin: 0 0 10px 0;
a {
color: var(--primary-high);
}
a.staff {
background-color: var(--highlight-low);
}
a.new-user {
color: var(--primary-low-mid);
}
span.title {
font-weight: normal;
color: var(--primary-medium);
}
}
2014-03-19 17:51:06 -04:00
img.emoji {
width: 20px;
height: 20px;
}
2014-01-03 12:52:24 -05:00
.in-reply-to {
font-size: var(--font-down-1);
2014-05-09 16:12:21 -04:00
text-align: center;
2014-05-10 02:20:23 -04:00
margin: 10px 20px 6px 0;
2014-05-09 16:12:21 -04:00
float: right;
color: var(--tertiary);
2014-01-03 12:52:24 -05:00
}
.replies {
font-size: var(--font-0);
color: var(--primary-medium);
2014-01-03 12:52:24 -05:00
}
.clearfix {
clear: both;
}
header.discourse {
padding-left: 10px;
padding-right: 10px;
padding-bottom: 8px;
font-size: var(--font-up-2);
border-bottom: 3px solid var(--primary-low);
2015-09-18 15:36:40 -04:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
h3 {
margin: 0 auto 0 0;
font-size: var(--font-0);
2015-09-18 05:44:13 -04:00
}
}
.embed-error {
padding: 0 10px;
}
footer {
font-size: var(--font-up-2);
2015-09-18 15:36:40 -04:00
margin-top: 0.5em;
.button {
color: white;
padding: 6px 8px;
background-color: var(--tertiary);
2015-09-18 15:36:40 -04:00
display: inline-block;
}
}
.logo {
float: right;
max-height: 30px;
}
// load onebox CSS at the end
@import "./common/base/onebox";
2016-05-26 04:08:48 -04: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 04:16:33 -04: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;
}
.new-topic-btn {
margin: 0.5rem;
&:hover {
background: var(--tertiary-hover);
}
span {
display: inline-block;
vertical-align: middle;
padding-bottom: 2px;
}
.new-topic-btn__icon {
width: 16px;
height: 16px;
margin-right: 2px;
background-image: svg-uri(
'<svg xmlns="http://www.w3.org/2000/svg" width="32px" height="32px" viewBox="0 0 448 512" fill="white"><path d="M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"></path></svg>'
);
background-repeat: no-repeat;
background-size: 100%;
background-position: top center;
}
}
.topics-list {
width: 100%;
.topic-list-item {
clear: both;
.main-link {
border-bottom: 1px solid var(--primary-low);
padding: 0.5rem;
width: 100%;
a {
color: var(--primary);
}
a:visited {
color: var(--primary-medium);
}
}
2019-09-09 12:03:53 -04:00
.topic-column-wrapper {
2019-09-04 10:51:58 -04:00
display: flex;
2019-09-09 12:03:53 -04:00
.topic-column.details-column {
2019-09-04 10:51:58 -04:00
flex-direction: column;
width: 80%;
.topic-last-posted-at,
.topic-author-avatar-timestamp,
.topic-stats {
padding-top: 5px;
}
.topic-author-avatar-timestamp img {
max-height: 20px;
}
.topic-created-at {
padding-left: 5px;
vertical-align: middle;
}
.topic-last-posted-at,
.topic-created-at,
.topic-stats {
color: var(--primary-medium);
2019-09-04 10:51:58 -04:00
}
}
2019-09-09 12:03:53 -04:00
.topic-column.featured-image-column {
2019-09-04 10:51:58 -04:00
.topic-featured-image img {
max-width: 200px;
max-height: 100px;
}
}
}
}
}