discourse/app/assets/stylesheets/desktop/topic-post.scss

1136 lines
20 KiB
SCSS
Raw Normal View History

.container {
@extend .clearfix;
max-width: $large-width;
margin-right: auto;
margin-left: auto;
2013-02-05 14:16:51 -05:00
}
.full-width {
margin-left: 0;
2013-02-05 14:16:51 -05:00
}
h1 .topic-statuses .topic-status i {
font-size: 20px;
vertical-align: middle;
}
.logo-small {
margin-right: 8px;
width: auto;
max-width: 80px;
height: auto;
max-height: 40px;
}
2013-02-05 14:16:51 -05:00
.post-cloak {
padding: 0;
&:first-of-type {
border-top: none;
}
2013-10-16 14:09:48 -04:00
.reply-to-tab {
position: absolute;
right: 420px;
z-index: 400;
padding: 13px 6px 5px;
font-size: 12px;
color: scale-color($primary, $lightness: 50%);
2014-07-10 11:40:31 -04:00
2013-10-16 14:09:48 -04:00
}
2013-02-05 14:16:51 -05:00
.gutter {
.reply-new {
.discourse-no-touch & {
opacity:0;
transition: opacity linear 0.4s;
-webkit-transition: opacity linear 0.4s;
2013-02-05 14:16:51 -05:00
}
.discourse-touch & {opacity: 1;}
}
}
2013-02-05 14:16:51 -05:00
div.actions, .post-actions {
.discourse-no-touch & {
opacity: 0.2;
transition: opacity linear 0.4s;
-webkit-transition: opacity linear 0.4s;
2013-02-05 14:16:51 -05:00
}
.discourse-touch & {opacity: 1;}
2013-02-05 14:16:51 -05:00
}
&:hover div.actions, &:hover .post-actions {
opacity: 1;
2013-02-05 14:16:51 -05:00
}
&:hover .gutter {
2013-02-05 14:16:51 -05:00
.reply-new,
.track-link {
opacity:1;
2013-02-05 14:16:51 -05:00
}
}
}
section.post-menu-area {
position: relative;
}
nav.post-controls {
padding: 0;
2014-03-22 17:39:47 -04:00
button {
color: scale-color($primary, $lightness: 60%);
margin-right: 2px;
2013-02-05 14:16:51 -05:00
}
span.badge-posts {
margin-right: 5px;
2014-03-22 17:39:47 -04:00
transition: all linear 0.15s;
2013-02-05 14:16:51 -05:00
}
.actions {
text-align: right;
float: right;
display: inline-block;
.more-actions {
display: none;
overflow: hidden;
}
}
.show-replies {
2014-08-06 09:31:13 -04:00
background: dark-light-diff($primary, $secondary, 90%, -65%);
2014-03-22 17:39:47 -04:00
padding: 8px 15px;
padding-bottom: 20px;
margin-left: 0;
span.badge-posts {color: scale-color($primary, $lightness: 60%);}
2014-03-22 17:39:47 -04:00
&:hover {
2014-08-06 09:31:13 -04:00
background: dark-light-diff($primary, $secondary, 90%, -65%);
span.badge-posts {color: $primary;}
2014-03-22 17:39:47 -04:00
}
i {
margin-left: 5px;
2013-02-05 14:16:51 -05:00
}
}
button.create {
margin-right: 0;
color: $tertiary;
2014-08-06 09:31:13 -04:00
background: dark-light-diff($tertiary, $secondary, 90%, -65%);
padding: 8px 20px;
margin-left: 10px;
2013-02-05 14:16:51 -05:00
&:hover { color: $secondary;
2014-08-06 09:31:13 -04:00
background: dark-light-diff($tertiary, $secondary, 0%, -20%)
2013-02-05 14:16:51 -05:00
}
&:active {
2014-08-06 09:31:13 -04:00
background: dark-light-diff($tertiary, $secondary, 50%, -35%);
@include box-shadow(inset 0 1px 3px rgba(0,0,0, .3));
}
2013-02-05 14:16:51 -05:00
}
.create i {
margin-right: 5px;
2013-02-05 14:16:51 -05:00
}
button {
font-size: 16px;
padding: 8px 10px;
vertical-align: top;
background: transparent;
border: none;
margin-left: 3px;
2013-10-21 00:45:19 -04:00
transition: all linear 0.15s;
&:hover {
background: scale-color-diff();
color: $primary;
}
&:active {
2014-08-06 09:31:13 -04:00
@include box-shadow(inset 0 1px 3px rgba(0,0,0, .4));
}
&.hidden {
display: none;
}
2014-05-13 08:53:11 -04:00
&.admin {
position: relative;
}
&.delete:hover {
background: $danger;
color: $secondary;
}
2014-08-06 09:31:13 -04:00
&.like:hover {
color: $love;
background: dark-light-diff($love, $secondary, 85%, -60%)
}
&.has-like {color: $love;}
&.has-like[disabled]:hover {
background: transparent;
}
&.bookmark {padding: 8px 11px; }
.read-icon {
&:before {
font-family: "FontAwesome";
content: "\f02e";
}
&.unseen {
&:before {
content: "\f097";
}
}
&.bookmarked {
&:before {
color: $tertiary;
}
}
}
}
2014-05-13 08:53:11 -04:00
.post-admin-menu {
background-color: $secondary;
width: 205px;
padding: 10px;
border: 1px solid scale-color-diff();
2014-05-13 08:53:11 -04:00
position: absolute;
text-align: left;
bottom: 0;
right: 0;
z-index: 1000;
display: none;
h3 {
margin-top: 0;
color: $primary;
font-size: 1em;
}
ul {
list-style: none;
margin: 10px 0 0 0;
}
li {
width: 176px;
margin-bottom: 5px;
i.fa {
width: 14px;
margin-right: 14px;
}
}
}
2014-04-29 22:13:16 -04:00
}
.embedded-posts {
h1, h2, h3 {margin: 10px 0;}
a.mention {background: darken(scale-color-diff(), 10%);}
p img {
max-width: 579px;
}
2014-07-10 11:40:31 -04:00
.topic-body {
2014-07-21 23:58:26 -04:00
width: 86%;
2014-07-10 11:40:31 -04:00
padding-left: 1%;
padding-right: 1%;
2014-08-06 09:31:13 -04:00
border: none;
2014-07-10 11:40:31 -04:00
}
.topic-avatar {
width: 45px;
2014-07-23 23:45:30 -04:00
margin: 0 10px 0 15px;
2014-08-06 09:31:13 -04:00
border: none;
2014-07-10 11:40:31 -04:00
}
// bottom means "reply expansion" below a post
2014-04-29 22:13:16 -04:00
&.bottom {
&.hidden {display: block; opacity: 0; }
2013-02-05 14:16:51 -05:00
}
2014-04-29 22:13:16 -04:00
&.bottom .arrow {float: right; margin: 0 0 0 0;}
2014-07-10 11:40:31 -04:00
&.bottom {
margin-top: -11px;
// WARNING *ONLY* DO THIS ON REPLY EXPANSIONS!
// auto-sizing of images causes massive havoc with regular post stream
// but we have to do this on reply expansions because the width is
// unavoidably narrower than a regular post
.lightbox-wrapper img {
width: 100%;
height: auto;
}
2014-07-10 11:40:31 -04:00
}
// top means "in reply to expansion" above a post
&.top {
margin-left: 56px;
2014-07-21 23:58:26 -04:00
width: 701px;
// WARNING *ONLY* DO THIS ON REPLY EXPANSIONS!
// auto-sizing of images causes massive havoc with regular post stream
// but we have to do this on reply expansions because the width is
// unavoidably narrower than a regular post
.lightbox-wrapper img {
width: 100%;
height: auto;
}
}
2014-07-21 23:58:26 -04:00
&.top.topic-body {padding-left: 0; padding-right: 0;}
.post-date {color: scale-color($primary, $lightness: 50%);}
.fa-arrow-up {margin-left: 5px;}
.row {border-top: 1px solid darken(scale-color-diff(), 10%); padding-top: 7px;}
.reply:first-of-type .row {border-top: none;}
2014-08-06 09:31:13 -04:00
background: dark-light-diff($primary, $secondary, 90%, -65%);
2014-04-29 22:13:16 -04:00
.quote .title, blockquote, .onebox, .onebox-result {
background: darken(scale-color-diff(), 5%);
border-left: 5px solid darken(scale-color-diff(), 12%);
2014-04-29 22:13:16 -04:00
}
2014-04-29 22:13:16 -04:00
.topic-meta-data {
position: relative;
}
.topic-meta-data h5 {
position: absolute;
z-index: 1;
font-size: 13px;
2014-04-29 22:13:16 -04:00
a {
font-weight: bold;
color: scale-color($primary, $lightness: 30%);
2014-04-29 22:13:16 -04:00
}
}
2014-05-06 23:53:04 -04:00
.arrow {color: scale-color($primary, $lightness: 50%);}
2014-04-29 22:13:16 -04:00
}
2013-02-05 14:16:51 -05:00
2014-03-22 17:39:47 -04:00
.bottom-round nav.post-controls .show-replies {
background: scale-color-diff();
margin-bottom: 0;
padding-bottom: 8px;
&:hover {background: scale-color-diff();
2014-03-22 17:39:47 -04:00
}
}
.post-action {
.relative-date {
margin-left: 5px;
2013-02-05 14:16:51 -05:00
}
.avatar { margin-right: 2px; }
}
2013-09-04 11:53:00 -04:00
a.star {
display: inline-block;
float: left;
2013-02-05 14:16:51 -05:00
}
.topic-map {
margin: 20px 0 0 0;
2014-08-06 09:31:13 -04:00
background: dark-light-diff($primary, $secondary, 90%, -65%);
.buttons .btn {
&:hover {border: 1px solid $primary !important;}
}
2013-02-05 14:16:51 -05:00
h3 {
margin-bottom: 4px;
color: $primary;
2013-02-05 14:16:51 -05:00
line-height: 23px;
}
2013-02-05 14:16:51 -05:00
h4 {
margin: 1px 0 2px 0;
2014-05-29 02:53:34 -04:00
color: scale-color($primary, $lightness: 50%);
2013-02-05 14:16:51 -05:00
font-weight: normal;
font-size: 12px;
line-height: 15px;
}
2013-02-05 14:16:51 -05:00
p,
.participants {
margin: 0 0 7px;
}
2013-02-05 14:16:51 -05:00
ul {
margin: 0;
list-style: none;
}
2014-04-05 14:47:25 -04:00
span.domain {
font-size: 10px;
2014-05-15 04:34:43 -04:00
color: scale-color($primary, $lightness: 50%);
2014-04-05 14:47:25 -04:00
}
2013-02-05 14:16:51 -05:00
.avatars {
> div {
float: left;
position: relative;
margin: 3px 0;
}
.post-count {
position: absolute;
top: 2px;
right: 6px;
padding: 0 4px;
font-weight: normal;
font-size: 11px;
line-height: 14px;
2014-06-26 03:46:16 -04:00
}
/* limit to one line of avatars for now */
height:30px;
overflow:hidden;
2013-02-05 14:16:51 -05:00
}
2013-02-05 14:16:51 -05:00
.avatar {
float: left;
margin-right: 4px;
}
.map {
.secondary {text-align: center;}
2013-02-05 14:16:51 -05:00
li {
float: left;
2014-07-22 16:30:32 -04:00
padding: 7px 10px;
2013-02-05 14:16:51 -05:00
&:last-of-type {
border-right: 0;
}
&:nth-child(3) { text-align:center; }
2013-02-05 14:16:51 -05:00
}
a, .number {
2013-02-05 14:16:51 -05:00
line-height: 20px;
}
2014-04-09 21:19:04 -04:00
.number, i {
color: $primary;
2013-02-05 14:16:51 -05:00
}
.avatar a {
2013-02-05 14:16:51 -05:00
float: left;
}
}
.avatars,
.links,
.information {
2014-06-26 03:46:16 -04:00
padding: 7px 10px;
color: $primary;
2013-02-05 14:16:51 -05:00
}
.information {
2014-06-08 15:34:22 -04:00
border-top: 2px solid scale-color-diff();
2013-02-05 14:16:51 -05:00
}
2014-06-26 03:08:23 -04:00
.participants { // PMs //
.user {float: left; margin: 7px 20px 7px 0;}
}
2013-02-05 14:16:51 -05:00
.topic-links {
.badge-notification {
2014-07-08 17:47:58 -04:00
margin: 1px 5px 5px 0;
2013-02-05 14:16:51 -05:00
}
}
2014-06-26 03:46:16 -04:00
td {
vertical-align: top;
}
2013-02-05 14:16:51 -05:00
.buttons {
float: right;
.btn {
border: 0;
2014-08-06 09:31:13 -04:00
border-bottom: 1px solid dark-light-diff($primary, $secondary, 80%, -75%);
2013-02-05 14:16:51 -05:00
padding: 0 23px;
color: $primary;
2014-08-06 09:31:13 -04:00
background: dark-light-diff($primary, $secondary, 80%, -75%);
2013-02-05 14:16:51 -05:00
&:hover {
2014-08-06 09:31:13 -04:00
background: dark-light-diff($primary, $secondary, 65%, -85%);
color: $primary;
border: none !important;
2014-08-06 09:31:13 -04:00
border-bottom: 1px solid dark-light-diff($primary, $secondary, 65%, -85%) !important;
span.badge-posts {color: $primary;}
2013-02-05 14:16:51 -05:00
}
2013-02-05 14:16:51 -05:00
&.collapsed {
border-bottom: 0;
padding-bottom: 1px;
2013-02-05 14:16:51 -05:00
}
2013-12-09 16:27:49 -05:00
.fa {
2013-02-05 14:16:51 -05:00
margin: 0;
font-size: 18px;
line-height: 52px;
}
}
}
}
#topic-footer-buttons {
padding: 10px 10px 0 0;
p {
line-height: 32px;
color: $primary;
}
.btn {
margin-bottom: 5px;
margin-right: 10px;
.fa-star {margin-right: 5px;}
}
}
#suggested-topics {
clear: left;
padding: 20px 0 15px 0;
.topic-list {
2014-07-28 10:33:23 -04:00
> tbody > tr {
&:nth-child(odd) {
background-color: darken($secondary, 3%);
}
&:nth-child(even) {
background-color: $secondary;
}
}
}
table {
box-shadow: none;
border-radius: 0;
margin-top: 10px;
}
.title {
font-size: 14px; line-height: 8px;
}
}
span.post-count {
background: $primary;
color: $secondary;
opacity: .8;
}
2014-04-02 15:54:21 -04:00
button.expand-post {
margin-top: 10px;
}
.quote-button {
display: none;
position: absolute;
background-color: scale-color($primary, $lightness: 50%);
color: $secondary;
padding: 10px;
2013-10-22 02:31:11 -04:00
z-index: 401;
&:hover {
background-color: scale-color($primary, $lightness: 40%);
cursor: pointer;
}
}
.quote-button.visible {
display: block;
}
iframe {
max-width: 100%;
}
.extra-info-wrapper {
2013-11-01 15:48:28 -04:00
float: left;
width: 46%;
.topic-statuses {
i { color: $header_primary; }
.unpinned { color: $header_primary; }
}
.topic-link { color: $header_primary;
display: block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
}
.extra-info {
h1 {
margin: 5px 0 0 0;
font-size: 1.6em;
2014-07-02 23:21:45 -04:00
line-height: 1.3em;
width: 820px;
2014-06-27 19:42:43 -04:00
}
2013-10-23 03:52:15 -04:00
a.star {
margin-right: 7px;
font-size: 20px;
margin-top: 6px;
2014-08-06 09:31:13 -04:00
color: dark-light-diff($secondary, $primary, 80%, -20%) !important;
}
2014-08-06 09:31:13 -04:00
a.star.starred {color: $danger !important;}
.topic-statuses {
margin-top: -2px;
}
.badge-category {
vertical-align: top;
margin-top: 2px;
float: left;
margin-right: 5px;
}
}
2013-02-05 14:16:51 -05:00
.open >.dropdown-menu {
display: block;
}
.btn-group {
2013-02-05 14:16:51 -05:00
position: relative;
}
.dropdown-toggle {
float: left;
position: relative;
}
a.mention {
padding: 2px 4px;
color: $primary;
background: scale-color-diff();
}
.modal-body {
input[type=text] {
font-size: 16px;
}
}
.moderator {
.topic-body {
background-color: dark-light-diff($highlight, $secondary, 50%, -80%);
2014-05-06 23:53:04 -04:00
}
}
.deleted {
.topic-body {
2014-08-12 00:11:58 -04:00
background-color: dark-light-diff(rgba($danger,.7), $secondary, 50%, -60%);
}
}
#share-link {
width: 365px;
margin-left: -4px;
}
.post-select {
float: right;
margin-right: 20px;
margin-top: -20px;
}
#show-topic-admin {
right: 20px;
padding: 5px 8px;
margin-top: 5px;
}
.topic-admin-menu {
h3 {margin-top: 0;}
}
.deleted-user-avatar {
font-size: 36px;
}
.info-line {
margin: 10px 0;
color: $primary;
}
2014-06-30 03:58:27 -04:00
/* solo quotes */
blockquote {
2014-06-30 06:03:54 -04:00
/* leave browser defaults for top and bottom here */
margin-left: 0;
margin-right: 0;
padding: 12px;
2014-06-30 03:58:27 -04:00
a.mention {background: darken(scale-color-diff(), 10%);}
}
// we assume blockquotes have their own margins, so all blockquotes
// will remove margins from first (top) and last (bottom) child elements
blockquote > *:first-child {
2014-06-30 06:03:54 -04:00
margin-top: 0 !important;
}
blockquote > *:last-child {
2014-06-30 06:03:54 -04:00
margin-bottom: 0 !important;
}
2014-06-30 03:58:27 -04:00
/* quotes with attribution */
.quote {
&>blockquote {
2014-06-30 03:58:27 -04:00
margin-top: 0;
padding-top: 0;
.onebox-result {
background-color: scale-color-diff();
}
}
.title {
border-left: 5px solid darken(scale-color-diff(), 10%);
background-color: scale-color-diff();
padding: 12px;
.avatar { margin-right: 7px; }
img { margin-top: -4px; }
}
aside {
.quote, .title, blockquote, .onebox, .onebox-result {
background: darken(scale-color-diff(), 5%);
border-left: 5px solid darken(scale-color-diff(), 12%);
}
aside.quote>blockquote, aside.quote>.title {
border-left: 0;
}
}
}
.quote-controls {
float: right;
2014-05-06 23:53:04 -04:00
color: scale-color($primary, $lightness: 50%);
a {
margin: 0;
}
.back:before,
.quote-other-topic:before {
display: inline-block;
margin-left: 8px;
2014-05-06 23:53:04 -04:00
color: scale-color($primary, $lightness: 50%);
font-family: "FontAwesome";
position: relative;
z-index: 20;
}
.back:before {
content: "\f062";
}
.quote-other-topic:before {
content: "\f061";
}
}
.gutter {
2014-07-22 20:33:21 -04:00
margin-top: 13px;
width: 100%;
box-sizing: border-box;
z-index: 1;
padding-left: 757px;
2014-06-05 05:57:56 -04:00
ul {margin: 0;}
li {margin-bottom: 10px;}
i {font-size: 12px;}
2014-07-22 20:33:21 -04:00
.reply-new, .track-link {
padding-left: 27px;
display: block;
overflow: hidden;
}
.post-links {
list-style-type: none;
position: relative;
line-height: 18px;
word-wrap: break-word;
a i {
2014-07-22 20:33:21 -04:00
position: relative;
margin-right: 7px;
margin-top: -2px;
margin-left: -17px;
}
a.track-link {color: scale-color($primary, $lightness: 50%);}
a.toggle-more {
display: block;
text-align: right;
}
2014-06-05 05:57:56 -04:00
}
}
// variables are used to calculate the width of .gap
$topic-body-width: 690px;
$topic-body-width-padding: 11px;
$topic-avatar-width: 45px;
.topic-body {
width: $topic-body-width;
float: left;
position: relative;
2014-07-22 20:33:21 -04:00
z-index: 2;
2014-08-06 09:31:13 -04:00
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -75%);
padding: 12px $topic-body-width-padding 15px $topic-body-width-padding;
2014-03-28 05:05:19 -04:00
&.highlighted {
2014-08-06 09:31:13 -04:00
background-color: dark-light-diff($tertiary, $secondary, 90%, -40%);
}
}
.topic-avatar {
2014-08-06 09:31:13 -04:00
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -75%);
padding-top: 16px;
width: $topic-avatar-width;
2014-06-05 04:42:27 -04:00
float: left;
2014-07-22 20:33:21 -04:00
position: relative;
z-index: 2;
2014-05-13 08:53:11 -04:00
2014-06-05 04:42:27 -04:00
.wiki {
margin-top: 14px;
color: scale-color($primary, $lightness: 60%);
margin-left: 5px;
cursor: pointer;
2014-06-05 04:42:27 -04:00
}
}
.gap {
background-color: scale-color-diff();
padding: 5px 0;
color: lighten($primary, 30%);
cursor: pointer;
text-align: center;
width: calc(#{$topic-avatar-width} + #{$topic-body-width} + 2 * #{$topic-body-width-padding});
}
2013-10-21 16:54:53 -04:00
.posts-wrapper {
position: relative;
}
.row:before, .row:after {
display: table;
content: "";
}
.row:after {clear: both;}
.dropdown {
position: relative;
}
.caret {
display: inline-block;
width: 0;
height: 0;
vertical-align: middle;
border-top: 4px solid $primary;
border-right: 4px solid transparent;
border-left: 4px solid transparent;
content: "";
margin-left: 5px;
}
.dropdown-menu {
position: absolute;
bottom: 115%;
left: 0;
z-index: 1000;
display: none;
float: left;
width: 550px;
margin: 1px 0 0;
list-style: none;
background-color: $secondary;
border: 1px solid scale-color-diff();
2014-08-06 09:31:13 -04:00
box-shadow: 0 1px 5px rgba(0,0,0, .4);
background-clip: padding-box;
span {font-size: 12px;}
2014-06-27 19:42:43 -04:00
.title {font-weight: bold; display: block; font-size: 14px;}
}
.dropdown-menu a {
display: block;
2014-06-27 19:42:43 -04:00
padding: 9px;
clear: both;
font-weight: normal;
line-height: 18px;
color: $primary;
& > div {
margin-left: 26px;
}
}
.dropdown-menu li > a:hover,
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover {
2014-06-27 19:42:43 -04:00
color: $primary;
text-decoration: none;
background-color: dark-light-diff($highlight, $secondary, 50%, -70%);
2014-06-27 19:42:43 -04:00
}
.dropdown-menu .disabled > a,
.dropdown-menu .disabled > a:hover {
text-decoration: none;
color: $primary;
2014-08-06 09:31:13 -04:00
background-color: dark-light-diff($tertiary, $secondary, 90%, -60%);
cursor: default;
}
.dropdown-menu .icon {
margin-top: 3px;
float: left;
font-size: 18px;
}
.open > .dropdown-menu {
display: block;
clear: both;
}
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
.fade.in {
opacity: 1;
}
#selected-posts {
padding-left: 20px;
margin-left: 330px;
width: 200px;
position: fixed;
z-index: 1000;
left: 50%;
2014-08-06 09:31:13 -04:00
background-color: dark-light-diff($tertiary, $secondary, 90%, -40%);
border: 1px solid $tertiary;
padding: 5px;
margin-bottom: 5px;
button {
width: 180px;
margin: 4px auto;
display: inline-block;
text-align: left;
}
&.hidden {
display: none;
}
.controls {
margin-top: 10px;
}
p {
font-size: 13px;
margin: 0 0 10px 0;
}
p.cancel {
margin: 10px 0 0 0;
}
h3 {
font-size: 25px;
color: $primary;
margin-bottom: 5px;
i {
margin-right: 7px;
}
}
.btn {
border: none;
color: $secondary;
font-weight: normal;
margin-bottom: 10px;
2014-05-06 12:30:05 -04:00
background: scale-color($tertiary, $lightness: 50%);
&[href] {
color: $secondary;
}
&:hover
{
color: $secondary;
background: scale-color($tertiary, $lightness: 20%);
}
&:active {
@include linear-gradient(darken($tertiary, 18%), darken($tertiary, 12%));
2014-08-06 09:31:13 -04:00
@include box-shadow(inset 0 1px 3px rgba(0,0,0, 0.2));
color: $secondary;
}
&[disabled] {
text-shadow: 0 1px 0 rgba($primary, 0.2);
@include linear-gradient($tertiary, darken($tertiary, 20%));
2014-08-06 09:31:13 -04:00
@include box-shadow((inset 0 1px 0 rgba(0,0,0, 0.33), inset 0 -1px 2px rgba($primary, 0.2)));
}
}
}
.topic-post {
&.selected {
article.boxed {
.select-posts {
button.select-post {
2014-05-06 12:30:05 -04:00
background-color: scale-color($tertiary, $lightness: 50%);
color: $secondary;
}
}
.topic-body {
.contents:after {
display: none;
}
}
}
}
article.boxed {
position: relative;
.select-posts {
position: absolute;
right: 5px;
z-index: 490;
top: 4px;
button {
background-color: scale-color($primary, $lightness: 70%);
border-top: 1px solid $tertiary;
border-left: 1px solid $tertiary;
border-bottom: 1px solid scale-color-diff();
border-right: 1px solid scale-color-diff();
color: $primary;
}
}
}
}
2013-10-23 03:52:15 -04:00
a.attachment:before {
display: inline-block;
margin-right: 4px;
font-family: "FontAwesome";
content: "\f019";
}
2013-10-30 09:11:05 -04:00
.private_message .gutter, .deleted-topic .gutter,.read_restricted .gutter {
position: relative;
}
2013-10-30 09:11:05 -04:00
.deleted-topic .gutter:before {
display: block;
position: absolute;
2014-07-22 20:33:21 -04:00
left: 767px;
2014-08-06 09:31:13 -04:00
color: rgba(dark-light-diff($primary, $secondary, 90%, -65%) , .8);
font: 90px/1 FontAwesome;
content: "\f05c";
z-index: -5;
}
2013-10-30 09:11:05 -04:00
.topic-meta-data {
&:after {
visibility: hidden;
display: block;
font-size: 0;
content: " ";
clear: both;
height: 0;
}
.post-info {
display: inline-block;
float: right;
font-size: 12px;
margin-top: 1px;
a {color: scale-color($primary, $lightness: 50%);}
}
}
span.highlighted {
2014-08-06 09:31:13 -04:00
background-color: dark-light-diff($tertiary, $secondary, 90%, -40%);
2014-05-14 04:05:24 -04:00
}
.username.new-user a {
color: scale-color($primary, $lightness: 70%);
}
.read-state {
color: scale-color($tertiary, $lightness: 50%);
2014-06-02 22:32:33 -04:00
position: absolute;
2014-06-05 05:57:56 -04:00
right: -8px;
2014-06-02 22:32:33 -04:00
top: 13px;
font-size: 8px;
}
.read-state.read {
opacity: 0;
-webkit-transition: opacity 1s ease-out;
transition: opacity 1s ease-out;
}
/* Tablet (portrait) ----------- */
@media all
and (max-width : 1140px) {
.extra-info {
h1 {
width: 720px;
}
}
.post-cloak .reply-to-tab {
right: 320px;
}
}
@media all
and (max-width : 975px) {
.extra-info {
h1 {
width: 650px;
}
}
.post-cloak .reply-to-tab {
right: 300px;
}
}
@media all
and (max-width : 940px) {
.post-cloak .reply-to-tab {
right: 250px;
}
}
@media all
and (max-width : 870px) {
.extra-info {
h1 {
width: 520px;
}
}
2014-07-10 11:40:31 -04:00
.gutter {
display: none;
}
.topic-avatar {
width: 5%;
}
.post-cloak .reply-to-tab {
right: 15%;
}
.topic-body {
width: 91%;
padding-left: 2%;
2014-07-10 11:40:31 -04:00
}
.embedded-posts {
// top means "in reply to expansion" above a post
&.top {
margin-left: 6%;
width: 91%;
2014-07-10 11:40:31 -04:00
}
}
}