2014-05-12 09:28:24 +08:00
|
|
|
.names {
|
|
|
|
float: left;
|
|
|
|
.username {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
span {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.929em;
|
2014-05-19 07:11:01 +08:00
|
|
|
padding-right: 8px;
|
2014-07-04 11:40:49 +08:00
|
|
|
display: inline-block;
|
|
|
|
max-width: 280px;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2014-05-12 09:28:24 +08:00
|
|
|
a {
|
|
|
|
color: scale-color($primary, $lightness: 30%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.fa {
|
|
|
|
font-size: 11px;
|
|
|
|
margin-left: 3px;
|
|
|
|
color: scale-color($primary, $lightness: 40%);
|
|
|
|
}
|
|
|
|
.new_user a, .user-title, .user-title a {
|
|
|
|
color: scale-color($primary, $lightness: 50%);
|
|
|
|
}
|
|
|
|
}
|
2014-06-05 14:59:18 +08:00
|
|
|
|
2014-07-01 06:53:22 +08:00
|
|
|
// global styles for the cooked HTML content in posts (and preview)
|
2014-06-30 17:06:13 +08:00
|
|
|
.cooked, #wmd-preview {
|
2014-06-24 15:40:12 +08:00
|
|
|
word-wrap: break-word;
|
2014-06-30 15:05:18 +08: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; }
|
2014-06-30 17:06:13 +08:00
|
|
|
}
|
|
|
|
|
2015-01-27 00:00:18 +08:00
|
|
|
|
|
|
|
.cooked, #wmd-preview {
|
|
|
|
video {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2015-05-01 05:05:04 +08:00
|
|
|
sup sup {
|
|
|
|
top: 0;
|
|
|
|
}
|
2015-01-27 00:00:18 +08:00
|
|
|
}
|
2014-07-01 06:53:22 +08:00
|
|
|
// we use aside to hold expandable quotes (versus, say, static blockquotes)
|
|
|
|
aside.quote {
|
|
|
|
margin-top: 1em;
|
|
|
|
margin-bottom: 1em;
|
2014-09-14 14:02:46 +08:00
|
|
|
|
2015-02-02 18:08:01 +08:00
|
|
|
.badge-wrapper { margin-left: 5px; }
|
|
|
|
|
2014-09-14 14:02:46 +08:00
|
|
|
.title {
|
2015-05-22 17:11:18 +08:00
|
|
|
border-left: 5px solid dark-light-diff($primary, $secondary, 90%, -65%);
|
2015-05-22 17:31:27 +08:00
|
|
|
background-color: dark-light-diff($primary, $secondary, 97%, -45%);
|
2014-09-14 14:02:46 +08:00
|
|
|
color: scale-color($primary, $lightness: 30%);
|
2014-10-18 17:48:20 +08:00
|
|
|
// IE will screw up the blockquote underneath if bottom padding is 0px
|
|
|
|
padding: 12px 12px 1px 12px;
|
2015-05-22 17:11:18 +08:00
|
|
|
// blockquote is underneath this and has top margin
|
2014-09-14 14:02:46 +08:00
|
|
|
.avatar { margin-right: 7px; }
|
|
|
|
img { margin-top: -4px; }
|
2014-12-24 15:23:47 +08:00
|
|
|
@include unselectable;
|
2014-09-14 14:02:46 +08:00
|
|
|
}
|
|
|
|
|
2014-07-01 15:19:56 +08:00
|
|
|
// blockquote is docked within aside for content
|
|
|
|
blockquote {
|
|
|
|
margin-top: 0;
|
|
|
|
}
|
2014-07-01 06:53:22 +08:00
|
|
|
}
|
|
|
|
|
2014-09-14 14:02:46 +08:00
|
|
|
.quote-controls, .quote-controls .back:before, .quote-controls .quote-other-topic:before {
|
2015-06-04 15:39:19 +08:00
|
|
|
color: scale-color($primary, $lightness: 70%);
|
2014-09-14 14:02:46 +08:00
|
|
|
}
|
|
|
|
|
2014-06-30 17:06:13 +08:00
|
|
|
.cooked .highlight {
|
2015-05-20 09:10:40 +08:00
|
|
|
background-color: dark-light-diff($tertiary, $secondary, 85%, -65%);
|
2014-06-30 17:06:13 +08:00
|
|
|
padding: 2px;
|
|
|
|
margin: -2px;
|
2014-06-25 08:39:55 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.post-action {
|
|
|
|
.undo-action, .act-action{
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
}
|
2014-07-22 14:52:26 +08:00
|
|
|
|
|
|
|
.post-hidden {
|
|
|
|
opacity: 0.5;
|
2014-09-04 11:16:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.quote-controls {
|
|
|
|
float: right;
|
|
|
|
a {
|
|
|
|
margin: 0;
|
|
|
|
}
|
2014-09-04 11:19:10 +08:00
|
|
|
|
|
|
|
.back:before, .quote-other-topic:before
|
2014-09-04 11:16:19 +08:00
|
|
|
{
|
|
|
|
display: inline-block;
|
|
|
|
margin-left: 8px;
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
position: relative;
|
|
|
|
z-index: 20;
|
|
|
|
content: "\f062";
|
|
|
|
}
|
2014-09-04 11:19:10 +08:00
|
|
|
|
2014-09-04 11:16:19 +08:00
|
|
|
.quote-other-topic:before
|
|
|
|
{
|
|
|
|
content: "\f061";
|
|
|
|
}
|
|
|
|
}
|
2014-09-08 04:55:31 +08:00
|
|
|
|
|
|
|
.quote-button {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
background-color: scale-color($primary, $lightness: 50%);
|
|
|
|
color: $secondary;
|
|
|
|
padding: 10px;
|
|
|
|
z-index: 401;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
font-family: "FontAwesome";
|
|
|
|
content: "\f10e\00a0\00a0";
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: scale-color($primary, $lightness: 40%);
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2014-09-10 21:25:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.wiki .topic-body {
|
2014-12-03 06:10:14 +08:00
|
|
|
background-color: dark-light-diff($wiki, $secondary, 95%, -50%);
|
2014-09-10 21:25:31 +08:00
|
|
|
}
|
|
|
|
|
2015-01-12 16:35:04 +08: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 22:54:41 +08:00
|
|
|
.topic-body .regular {
|
2015-01-12 16:35:04 +08:00
|
|
|
margin-top: 15px;
|
|
|
|
}
|
|
|
|
|
2014-09-10 21:25:31 +08:00
|
|
|
.post-info {
|
|
|
|
&.wiki, &.via-email {
|
|
|
|
margin-right: 5px;
|
|
|
|
i.fa {
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 1em;
|
2014-09-10 21:25:31 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
&.wiki {
|
|
|
|
cursor: pointer;
|
2014-10-14 01:43:24 +08:00
|
|
|
color: $wiki;
|
2014-09-10 21:25:31 +08:00
|
|
|
}
|
|
|
|
&.via-email {
|
|
|
|
color: scale-color($primary, $lightness: 70%);
|
|
|
|
}
|
2014-10-18 01:28:23 +08:00
|
|
|
&.raw-email {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2014-09-10 21:25:31 +08:00
|
|
|
}
|
2014-09-13 13:58:15 +08:00
|
|
|
|
|
|
|
pre {
|
|
|
|
code {
|
2015-06-26 11:30:32 +08:00
|
|
|
word-wrap: normal;
|
2014-09-13 13:58:15 +08:00
|
|
|
display: block;
|
|
|
|
padding: 5px 10px;
|
|
|
|
color: $primary;
|
2015-05-23 04:49:40 +08:00
|
|
|
background: dark-light-diff($primary, $secondary, 97%, -45%);
|
2014-09-13 13:58:15 +08:00
|
|
|
max-height: 500px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
kbd
|
|
|
|
{
|
|
|
|
background-color: $secondary;
|
2015-06-15 10:59:49 +08:00
|
|
|
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
|
2014-09-13 13:58:15 +08:00
|
|
|
border-radius: 3px;
|
|
|
|
box-shadow: 0 1px 0 rgba(0,0,0, .8);
|
|
|
|
color: $primary;
|
|
|
|
display: inline-block;
|
2014-12-16 11:12:56 +08:00
|
|
|
font-size: 0.857em;
|
2014-09-13 13:58:15 +08:00
|
|
|
line-height: 1.4;
|
|
|
|
margin: 0 .1em;
|
|
|
|
padding: .1em .6em;
|
|
|
|
|
2015-03-03 00:00:05 +08: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-23 00:55:13 +08:00
|
|
|
}
|
2015-01-12 18:24:06 +08: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 15:47:07 +08:00
|
|
|
|
|
|
|
.gap {
|
|
|
|
background-color: dark-light-diff($primary, $secondary, 90%, -60%);
|
|
|
|
padding: 5px 0;
|
2015-06-29 17:47:06 +08:00
|
|
|
color: lighten($primary, 60%);
|
2015-06-29 15:47:07 +08: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;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|