2015-12-01 17:27:32 -05:00
|
|
|
.placeholder-avatar {
|
|
|
|
display: inline-block;
|
|
|
|
background-color: dark-light-diff($primary, $secondary, 90%, -75%);
|
|
|
|
width: 45px;
|
|
|
|
height: 45px;
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.placeholder-text {
|
|
|
|
display: inline-block;
|
|
|
|
background-color: dark-light-diff($primary, $secondary, 90%, -75%);
|
|
|
|
width: 100%;
|
|
|
|
height: 1.5em;
|
|
|
|
margin-bottom: 0.6em;
|
|
|
|
}
|
|
|
|
|
2014-05-11 21:28:24 -04:00
|
|
|
.names {
|
|
|
|
float: left;
|
|
|
|
.username {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
span {
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 0.929em;
|
2014-05-18 19:11:01 -04:00
|
|
|
padding-right: 8px;
|
2014-07-03 23:40:49 -04:00
|
|
|
display: inline-block;
|
|
|
|
max-width: 280px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2014-05-11 21:28:24 -04:00
|
|
|
a {
|
2015-08-20 05:42:12 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));
|
2014-05-11 21:28:24 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.fa {
|
|
|
|
font-size: 11px;
|
|
|
|
margin-left: 3px;
|
2015-08-20 05:42:12 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 40%), scale-color($secondary, $lightness: 60%));
|
2014-05-11 21:28:24 -04:00
|
|
|
}
|
|
|
|
.new_user a, .user-title, .user-title a {
|
2015-08-20 05:42:12 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
|
2014-05-11 21:28:24 -04:00
|
|
|
}
|
|
|
|
}
|
2014-06-05 02:59:18 -04:00
|
|
|
|
2014-06-30 18:53:22 -04:00
|
|
|
// global styles for the cooked HTML content in posts (and preview)
|
2015-11-03 16:25:37 -05:00
|
|
|
.cooked, .d-editor-preview {
|
2014-06-24 03:40:12 -04:00
|
|
|
word-wrap: break-word;
|
2014-06-30 03:05:18 -04:00
|
|
|
h1, h2, h3, h4, h5, h6 { margin: 30px 0 10px; }
|
|
|
|
h1 { line-height: 1em; } /* normalize.css sets h1 font size but not line height */
|
|
|
|
a { word-wrap: break-word; }
|
2015-08-20 18:10:09 -04:00
|
|
|
ins { background-color: dark-light-choose(scale-color($success, $lightness: 90%), scale-color($success, $lightness: -60%)); }
|
|
|
|
del { background-color: dark-light-choose(scale-color($danger, $lightness: 90%), scale-color($danger, $lightness: -60%)); }
|
2014-06-30 05:06:13 -04:00
|
|
|
}
|
|
|
|
|
2015-01-26 11:00:18 -05:00
|
|
|
|
2015-11-03 16:25:37 -05:00
|
|
|
.cooked, .d-editor-preview {
|
2015-01-26 11:00:18 -05:00
|
|
|
video {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2015-04-30 17:05:04 -04:00
|
|
|
sup sup {
|
|
|
|
top: 0;
|
|
|
|
}
|
2015-01-26 11:00:18 -05:00
|
|
|
}
|
2014-06-30 18:53:22 -04:00
|
|
|
// we use aside to hold expandable quotes (versus, say, static blockquotes)
|
|
|
|
aside.quote {
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 1em;
|
2014-09-14 02:02:46 -04:00
|
|
|
|
2015-02-02 05:08:01 -05:00
|
|
|
.badge-wrapper { margin-left: 5px; }
|
|
|
|
|
2014-09-14 02:02:46 -04:00
|
|
|
.title {
|
2015-08-19 13:27:17 -04:00
|
|
|
@include post-aside;
|
|
|
|
|
2015-08-20 05:42:12 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 30%), scale-color($secondary, $lightness: 70%));
|
2014-10-18 05:48:20 -04:00
|
|
|
// IE will screw up the blockquote underneath if bottom padding is 0px
|
|
|
|
padding: 12px 12px 1px 12px;
|
2015-05-22 05:11:18 -04:00
|
|
|
// blockquote is underneath this and has top margin
|
2014-09-14 02:02:46 -04:00
|
|
|
.avatar { margin-right: 7px; }
|
|
|
|
img { margin-top: -4px; }
|
2014-12-24 02:23:47 -05:00
|
|
|
@include unselectable;
|
2014-09-14 02:02:46 -04:00
|
|
|
}
|
|
|
|
|
2014-07-01 03:19:56 -04:00
|
|
|
// blockquote is docked within aside for content
|
|
|
|
blockquote {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2014-06-30 18:53:22 -04:00
|
|
|
}
|
|
|
|
|
2014-09-14 02:02:46 -04:00
|
|
|
.quote-controls, .quote-controls .back:before, .quote-controls .quote-other-topic:before {
|
2015-08-20 05:42:12 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%));
|
2014-09-14 02:02:46 -04:00
|
|
|
}
|
|
|
|
|
2014-06-30 05:06:13 -04:00
|
|
|
.cooked .highlight {
|
2015-05-19 21:10:40 -04:00
|
|
|
background-color: dark-light-diff($tertiary, $secondary, 85%, -65%);
|
2014-06-30 05:06:13 -04:00
|
|
|
padding: 2px;
|
|
|
|
margin: -2px;
|
2014-06-24 20:39:55 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.post-action {
|
|
|
|
.undo-action, .act-action{
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
}
|
2014-07-22 02:52:26 -04:00
|
|
|
|
|
|
|
.post-hidden {
|
|
|
|
opacity: 0.5;
|
2014-09-03 23:16:19 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.quote-controls {
|
|
|
|
float: right;
|
|
|
|
a {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2014-09-03 23:19:10 -04:00
|
|
|
|
|
|
|
.back:before, .quote-other-topic:before
|
2014-09-03 23:16:19 -04:00
|
|
|
{
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 8px;
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
position: relative;
|
|
|
|
z-index: 20;
|
|
|
|
content: "\f062";
|
|
|
|
}
|
2014-09-03 23:19:10 -04:00
|
|
|
|
2014-09-03 23:16:19 -04:00
|
|
|
.quote-other-topic:before
|
|
|
|
{
|
|
|
|
content: "\f061";
|
|
|
|
}
|
|
|
|
}
|
2014-09-07 16:55:31 -04:00
|
|
|
|
|
|
|
.quote-button {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
2015-08-18 15:23:06 -04:00
|
|
|
background-color: dark-light-diff($primary, $secondary, 50%, -50%);
|
|
|
|
color: dark-light-choose($secondary, $primary);
|
2014-09-07 16:55:31 -04:00
|
|
|
padding: 10px;
|
|
|
|
z-index: 401;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
content: "\f10e\00a0\00a0";
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2015-08-18 15:23:06 -04:00
|
|
|
background-color: dark-light-diff($primary, $secondary, 40%, -40%);
|
2014-09-07 16:55:31 -04:00
|
|
|
cursor: pointer;
|
|
|
|
}
|
2014-09-10 09:25:31 -04:00
|
|
|
}
|
|
|
|
|
2015-12-04 16:49:02 -05:00
|
|
|
.topic-avatar .poster-avatar-extra {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-08-18 18:51:50 -04:00
|
|
|
.topic-body {
|
2016-02-22 04:17:50 -05:00
|
|
|
// this is necessary for ANYTHING that extends past the right edge of
|
|
|
|
// the post body, such as an image in a deeply nested list, image in
|
|
|
|
// a deeply nested blockquote, and so on.. you get the idea.
|
2016-03-30 02:01:05 -04:00
|
|
|
.contents .cooked {
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
2015-08-18 18:51:50 -04:00
|
|
|
&.highlighted {
|
|
|
|
background-color: dark-light-diff($tertiary, $secondary, 85%, -65%);
|
|
|
|
}
|
|
|
|
}
|
2014-09-10 09:25:31 -04:00
|
|
|
|
2015-01-12 03:35:04 -05:00
|
|
|
// this ensures consistent top margin on topic posts even if the first line of a post
|
|
|
|
// is a top-margin-less element like a list or image.
|
2015-06-03 10:54:41 -04:00
|
|
|
.topic-body .regular {
|
2015-01-12 03:35:04 -05:00
|
|
|
margin-top: 15px;
|
|
|
|
}
|
|
|
|
|
2014-09-10 09:25:31 -04:00
|
|
|
.post-info {
|
2015-09-10 16:01:23 -04:00
|
|
|
&.wiki, &.via-email, &.whisper {
|
2014-09-10 09:25:31 -04:00
|
|
|
margin-right: 5px;
|
|
|
|
i.fa {
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 1em;
|
2014-09-10 09:25:31 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.wiki {
|
|
|
|
cursor: pointer;
|
2016-02-10 05:18:37 -05:00
|
|
|
color: #408040;
|
2014-09-10 09:25:31 -04:00
|
|
|
}
|
|
|
|
&.via-email {
|
2015-08-20 05:42:12 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%));
|
2014-09-10 09:25:31 -04:00
|
|
|
}
|
2014-10-17 13:28:23 -04:00
|
|
|
&.raw-email {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2014-09-10 09:25:31 -04:00
|
|
|
}
|
2014-09-13 01:58:15 -04:00
|
|
|
|
|
|
|
pre {
|
|
|
|
code {
|
2015-06-25 23:30:32 -04:00
|
|
|
word-wrap: normal;
|
2014-09-13 01:58:15 -04:00
|
|
|
display: block;
|
|
|
|
padding: 5px 10px;
|
|
|
|
color: $primary;
|
2015-08-20 19:47:34 -04:00
|
|
|
background: blend-primary-secondary(5%);
|
2014-09-13 01:58:15 -04:00
|
|
|
max-height: 500px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
kbd
|
|
|
|
{
|
|
|
|
background-color: $secondary;
|
2015-06-14 22:59:49 -04:00
|
|
|
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
2014-09-13 01:58:15 -04:00
|
|
|
border-radius: 3px;
|
|
|
|
box-shadow: 0 1px 0 rgba(0,0,0, .8);
|
|
|
|
color: $primary;
|
|
|
|
display: inline-block;
|
2014-12-15 22:12:56 -05:00
|
|
|
font-size: 0.857em;
|
2014-09-13 01:58:15 -04:00
|
|
|
line-height: 1.4;
|
|
|
|
margin: 0 .1em;
|
|
|
|
padding: .1em .6em;
|
|
|
|
|
2015-03-02 11:00:05 -05:00
|
|
|
// don't allow more than 3 nested elements to prevent FF from crashing
|
|
|
|
// cf. http://what.thedailywtf.com/t/nested-elements/7927
|
|
|
|
// 3 levels are needed to prevent highlighted words being hidden
|
|
|
|
// cf. https://meta.discourse.org/t/word-disappears-when-searched-and-in-details-summary-kbd-b/25741
|
|
|
|
* * * { display: none; }
|
2014-09-22 12:55:13 -04:00
|
|
|
}
|
2015-01-12 05:24:06 -05:00
|
|
|
|
|
|
|
// we assume blockquotes have their own margins, so all blockquotes
|
|
|
|
// will remove margins from first (top) and last (bottom) child elements
|
|
|
|
blockquote > *:first-child {
|
|
|
|
margin-top: 0 !important;
|
|
|
|
}
|
|
|
|
blockquote > *:last-child {
|
|
|
|
margin-bottom: 0 !important;
|
|
|
|
}
|
2015-06-29 03:47:07 -04:00
|
|
|
|
|
|
|
.gap {
|
|
|
|
background-color: dark-light-diff($primary, $secondary, 90%, -60%);
|
|
|
|
padding: 5px 0;
|
2015-08-21 19:54:51 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 60%), scale-color($secondary, $lightness: 40%));
|
2015-06-29 03:47:07 -04:00
|
|
|
cursor: pointer;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&.jagged-border {
|
|
|
|
background-image:
|
|
|
|
linear-gradient(
|
|
|
|
135deg,
|
|
|
|
$secondary 50%, rgba(255,255,255,0) 50%
|
|
|
|
),
|
|
|
|
linear-gradient(
|
|
|
|
-135deg,
|
|
|
|
$secondary 50%, rgba(255,255,255,0) 50%
|
|
|
|
),
|
|
|
|
linear-gradient(
|
|
|
|
45deg,
|
|
|
|
$secondary 50%, rgba(255,255,255,0) 50%
|
|
|
|
),
|
|
|
|
linear-gradient(
|
|
|
|
-45deg,
|
|
|
|
$secondary 50%, rgba(255,255,255,0) 50%
|
|
|
|
);
|
|
|
|
background-position:
|
|
|
|
top center, top center,
|
|
|
|
bottom center, bottom center;
|
|
|
|
background-size: .9em .9em;
|
|
|
|
background-repeat: repeat-x;
|
|
|
|
padding: 20px 0;
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2015-07-03 14:57:07 -04:00
|
|
|
|
|
|
|
.who-liked {
|
2015-07-10 00:48:44 -04:00
|
|
|
transition: height 0.5s;
|
2015-07-03 14:57:07 -04:00
|
|
|
a {
|
|
|
|
margin: 0 0.25em 0.5em 0;
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-08 01:10:53 -04:00
|
|
|
|
2015-07-20 02:56:32 -04:00
|
|
|
table.md-table {
|
|
|
|
thead {
|
|
|
|
border-bottom: 2px solid lighten($primary, 80%);
|
|
|
|
th {
|
|
|
|
text-align: left;
|
|
|
|
padding-bottom: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
td,th {
|
|
|
|
padding: 3px 3px 3px 10px;
|
|
|
|
}
|
|
|
|
tr {
|
|
|
|
border-bottom: 1px solid lighten($primary, 80%);
|
|
|
|
}
|
|
|
|
}
|
2015-07-08 01:10:53 -04:00
|
|
|
|
2015-07-27 13:05:31 -04:00
|
|
|
.small-action {
|
|
|
|
.topic-avatar {
|
2016-04-03 07:30:22 -04:00
|
|
|
padding: 5px 0 3px;
|
2015-07-27 13:05:31 -04:00
|
|
|
border-top: none;
|
|
|
|
float: left;
|
|
|
|
i {
|
|
|
|
font-size: 35px;
|
|
|
|
width: 45px;
|
|
|
|
text-align: center;
|
2015-08-21 19:54:51 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 75%), scale-color($secondary, $lightness: 25%));
|
2015-07-27 13:05:31 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.small-action-desc {
|
2015-08-04 18:56:05 -04:00
|
|
|
padding: 0.5em 0 0.5em 4em;
|
2016-04-03 07:30:22 -04:00
|
|
|
margin-top: 6px;
|
2015-07-27 13:05:31 -04:00
|
|
|
text-transform: uppercase;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 0.9em;
|
2015-08-21 20:14:03 -04:00
|
|
|
color: dark-light-choose(scale-color($primary, $lightness: 75%), scale-color($secondary, $lightness: 25%));
|
2015-07-29 21:19:30 -04:00
|
|
|
|
|
|
|
.custom-message {
|
|
|
|
text-transform: none;
|
|
|
|
margin: 15px 0px 5px;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: 14px;
|
|
|
|
p {
|
2015-08-04 18:56:05 -04:00
|
|
|
margin: 5px 0;
|
2015-07-29 21:19:30 -04:00
|
|
|
}
|
|
|
|
}
|
2015-07-27 13:05:31 -04:00
|
|
|
|
|
|
|
.avatar {
|
|
|
|
margin-right: 0.8em;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2015-07-29 21:19:30 -04:00
|
|
|
> p {
|
2015-07-27 13:05:31 -04:00
|
|
|
margin: 0;
|
2015-08-04 18:56:05 -04:00
|
|
|
padding-top: 4px;
|
2015-07-27 13:05:31 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
button {
|
|
|
|
background: transparent;
|
|
|
|
border: 0;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
clear: both;
|
|
|
|
}
|
2015-09-12 14:44:20 -04:00
|
|
|
|
|
|
|
.whisper {
|
2016-02-16 12:47:54 -05:00
|
|
|
.post-info.whisper {
|
|
|
|
margin-left: 0.5em;
|
|
|
|
}
|
2015-09-12 14:44:20 -04:00
|
|
|
.topic-body {
|
|
|
|
.cooked {
|
|
|
|
font-style: italic;
|
|
|
|
color: dark-light-diff($primary, $secondary, 55%, -40%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-04-17 22:26:43 -04:00
|
|
|
|
|
|
|
a.mention, a.mention-group {
|
|
|
|
padding: 2px 4px;
|
2016-04-17 22:27:08 -04:00
|
|
|
color: dark-light-diff($primary, $secondary, 30%, -20%);
|
2016-04-17 22:26:43 -04:00
|
|
|
background: dark-light-diff($primary, $secondary, 95%, -60%);
|
|
|
|
border-radius: 8px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 0.93em;
|
|
|
|
}
|