498 lines
8.1 KiB
SCSS
498 lines
8.1 KiB
SCSS
/* hide the reply border above the time gap notices */
|
|
.time-gap + .topic-post article {
|
|
border-top: none;
|
|
}
|
|
|
|
.topic-post article {
|
|
border-top: 1px solid $primary-low;
|
|
padding: 15px 0 8px 0;
|
|
}
|
|
|
|
.post-stream {
|
|
padding-bottom: 30px;
|
|
}
|
|
|
|
span.badge-posts {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.show-replies {
|
|
display: none;
|
|
}
|
|
|
|
.topic-post {
|
|
nav.post-controls {
|
|
clear: both;
|
|
color: dark-light-choose($primary-low-mid, $secondary-high);
|
|
.d-icon {
|
|
opacity: 1.0;
|
|
}
|
|
button {
|
|
border: none;
|
|
font-size: $font-up-1;
|
|
padding: 8px 10px;
|
|
vertical-align: middle;
|
|
background: transparent;
|
|
float: left;
|
|
&.hidden {
|
|
display: none;
|
|
}
|
|
&.admin {
|
|
position: relative;
|
|
}
|
|
&.expand-post {
|
|
margin:10px 0 10px 0;
|
|
}
|
|
&.reply {
|
|
float: right;
|
|
color: $primary-high;
|
|
}
|
|
&.has-like {
|
|
color: $love;
|
|
}
|
|
&.bookmarked {
|
|
color: $tertiary;
|
|
}
|
|
}
|
|
|
|
button.like-count {
|
|
font-size: $font-0;
|
|
padding: 8px 4px;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/* shift post reply button to the right and make it black */
|
|
.post-controls button.create {
|
|
float: right;
|
|
color: dark-light-choose($primary-high, $secondary-low);
|
|
}
|
|
|
|
|
|
.post-admin-menu {
|
|
background-color: $secondary;
|
|
width: 205px;
|
|
padding: 10px;
|
|
border: 1px solid $primary-low;
|
|
position: absolute;
|
|
text-align: left;
|
|
bottom: 0;
|
|
left: 135px;
|
|
z-index: z("dropdown");
|
|
|
|
h3 {
|
|
margin-top: 0;
|
|
color: $primary;
|
|
font-size: $font-0;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
margin: 10px 0 0 0;
|
|
}
|
|
|
|
li {
|
|
width: 176px;
|
|
margin-bottom: 5px;
|
|
|
|
.d-icon {
|
|
width: 14px;
|
|
margin-right: 14px;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.embedded-posts {
|
|
.topic-meta-data h5 a {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
|
|
.post-actions {
|
|
/* overriding display: here was causing hidden element to take up space */
|
|
}
|
|
|
|
.post-action {
|
|
float: right;
|
|
margin-right: 10px;
|
|
clear: right;
|
|
}
|
|
|
|
.post-action .relative-date {
|
|
margin-left: 5px;
|
|
}
|
|
|
|
a.reply-to-tab {
|
|
z-index: z("base") + 1;
|
|
right: 80px;
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
margin: -3px 10px 0 0;
|
|
float: right;
|
|
}
|
|
|
|
.topic-post .boxed .contents {
|
|
clear: both;
|
|
}
|
|
|
|
.topic-map {
|
|
|
|
margin: 10px 0;
|
|
background: blend-primary-secondary(5%);
|
|
border: 1px solid $primary-low;
|
|
border-top: none; // would cause double top border
|
|
|
|
section {
|
|
border-top: 1px solid $primary-low;
|
|
}
|
|
|
|
h3 {
|
|
margin-bottom: 4px;
|
|
margin-top: 0;
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
line-height: $line-height-large;
|
|
font-weight: normal;
|
|
font-size: $font-0;
|
|
}
|
|
|
|
h4 {
|
|
margin: 0 0 3px 0;
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
font-weight: normal;
|
|
font-size: $font-down-1;
|
|
line-height: $line-height-medium;
|
|
}
|
|
|
|
.user {
|
|
float: left;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
ul {
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.map-collapsed {
|
|
.secondary {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.map {
|
|
li {
|
|
float: left;
|
|
padding: 7px 8px;
|
|
&:last-of-type {
|
|
border-right: 0;
|
|
}
|
|
}
|
|
a, .number {
|
|
line-height: $line-height-large;
|
|
}
|
|
.number, i {
|
|
color: dark-light-choose($primary-high, $secondary-low);
|
|
font-size: $font-up-1;
|
|
}
|
|
|
|
.avatar + a {
|
|
float: left;
|
|
}
|
|
}
|
|
li.avatars {
|
|
display: none;
|
|
}
|
|
|
|
.links, .information, .avatars {
|
|
padding: 10px;
|
|
color: $primary;
|
|
overflow: auto;
|
|
}
|
|
|
|
.information {
|
|
p {
|
|
margin: 0 0 10px 0;
|
|
}
|
|
}
|
|
|
|
.participants { // PMs //
|
|
.user {float: left; margin: 0 10px 10px 0;}
|
|
}
|
|
|
|
.domain {
|
|
color: dark-light-choose($primary-low-mid, $secondary-high);
|
|
}
|
|
|
|
.topic-links {
|
|
.badge-notification {
|
|
margin: 1px 5px 2px 0;
|
|
}
|
|
}
|
|
|
|
td {
|
|
vertical-align: top;
|
|
padding:1px;
|
|
}
|
|
|
|
.buttons {
|
|
.btn {
|
|
border: 0;
|
|
padding: 0 15px;
|
|
color: dark-light-choose($primary-medium, $secondary-high);
|
|
background: blend-primary-secondary(5%);
|
|
border-left: 1px solid $primary-low;
|
|
.fa {
|
|
margin: 0;
|
|
font-size: $font-up-2;
|
|
line-height: 52px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.link-summary .btn {
|
|
color: dark-light-choose($primary-medium, $secondary-high);
|
|
background: blend-primary-secondary(5%);
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
#topic-footer-buttons {
|
|
@include clearfix;
|
|
padding: 20px 0 0 0;
|
|
.d-icon-bookmark.bookmarked { color: $tertiary; }
|
|
|
|
.combobox {
|
|
float: left;
|
|
margin-right: 1em;
|
|
width: 160px;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
}
|
|
|
|
|
|
#topic-footer-buttons p {
|
|
clear: both; /* this is to force the drop-down notification state description para below the button */
|
|
margin: 0;
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
}
|
|
|
|
#topic-footer-button {
|
|
width: 100px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
#suggested-topics {
|
|
clear: left;
|
|
padding: 20px 0 15px 0;
|
|
th.views, td.views, td.activity, th.activity, th.likes, td.likes {
|
|
display: none;
|
|
}
|
|
|
|
a.badge-category, a.badge-category-parent {
|
|
font-size: $font-down-1;
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
|
|
span.post-count {
|
|
background: $primary;
|
|
color: $secondary;
|
|
opacity: .8;
|
|
}
|
|
|
|
|
|
#topic-footer-buttons {
|
|
.btn {
|
|
margin-bottom: 5px;
|
|
margin-right: 10px;
|
|
}
|
|
}
|
|
|
|
#topic-title {
|
|
z-index: z("base") + 1;
|
|
margin: 0 0 0 0 !important;
|
|
padding: 15px 0;
|
|
}
|
|
|
|
// mobile has no fixed width on topic-body so overflow: hidden causes problems
|
|
.topic-body {
|
|
overflow:inherit;
|
|
}
|
|
|
|
// instead, for mobile we set overflow hidden on the cooked part of post body
|
|
// this prevents image overflow on deeply nested blockquotes, lists, etc
|
|
.cooked {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.quote-button.visible {
|
|
display: block;
|
|
z-index: z("tooltip");
|
|
}
|
|
|
|
iframe {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.extra-info {
|
|
display: none;
|
|
}
|
|
|
|
.open>.dropdown-menu {
|
|
display: block;
|
|
}
|
|
|
|
.dropdown-menu li {
|
|
margin: 5px 0;
|
|
.fa {
|
|
float: left;
|
|
margin-right: 5px;
|
|
padding-top: 1px;
|
|
}
|
|
span {
|
|
color: dark-light-choose($primary-medium, $secondary-medium);
|
|
}
|
|
span.title {
|
|
color: $primary;
|
|
}
|
|
}
|
|
|
|
.btn-group {
|
|
margin-top: 25px;
|
|
position: relative;
|
|
}
|
|
|
|
.dropdown-toggle {
|
|
float: left;
|
|
position: relative;
|
|
}
|
|
|
|
#share-link {
|
|
width: 290px;
|
|
left: auto;
|
|
right: 4px;
|
|
}
|
|
|
|
.selected-posts {
|
|
width: 97%;
|
|
padding: 0.1em 0.7em;
|
|
background-color: srgb-scale($tertiary, $secondary, 15%);
|
|
.btn {
|
|
margin-bottom: 10px;
|
|
color: $secondary;
|
|
background: $tertiary;
|
|
clear: both;
|
|
}
|
|
p {
|
|
clear: both;
|
|
}
|
|
}
|
|
|
|
// hide the full set of selection buttons on mobile
|
|
.select-posts button { display: none; }
|
|
|
|
// unhide the simple "select just this post" button
|
|
button.select-post {
|
|
display: inline-block;
|
|
position: absolute;
|
|
z-index: z("base") + 1;
|
|
left: 200px;
|
|
background-color: srgb-scale($tertiary, $secondary, 60%);
|
|
color: $secondary;
|
|
padding: 5px;
|
|
}
|
|
|
|
|
|
.post-select {
|
|
float: right;
|
|
margin-right: 20px;
|
|
margin-top: -20px;
|
|
}
|
|
|
|
|
|
|
|
.deleted {
|
|
.topic-body {
|
|
background-color: dark-light-diff(rgba($danger,.7), $secondary, 50%, -60%);
|
|
}
|
|
}
|
|
|
|
.deleted-user-avatar {
|
|
font-size: $font-up-5;
|
|
}
|
|
|
|
span.btn-text {display: none;}
|
|
|
|
blockquote {
|
|
clear:both;
|
|
/* leave browser defaults for top and bottom here */
|
|
margin-left: 0;
|
|
margin-right: 0;
|
|
}
|
|
|
|
.gutter { display: none; }
|
|
|
|
.posts-wrapper { position: relative; }
|
|
|
|
span.highlighted {
|
|
background-color: dark-light-choose($highlight-low, $highlight);
|
|
}
|
|
|
|
.topic-avatar {
|
|
float: left;
|
|
margin-right: 10px;
|
|
z-index: z("base") + 1; /* must render on top of topic-body + topic-meta-data, otherwise not tappable */
|
|
}
|
|
|
|
.topic-meta-data {
|
|
margin-left: 50px;
|
|
font-size: $font-down-1;
|
|
.names {
|
|
line-height: $line-height-medium;
|
|
|
|
.poster-icon {
|
|
float: right;
|
|
}
|
|
}
|
|
.post-info {
|
|
float: right;
|
|
.edits { margin-right: 5px; }
|
|
}
|
|
}
|
|
|
|
.username.new-user a {
|
|
color: dark-light-choose($primary-low-mid, $secondary-high);
|
|
}
|
|
|
|
.user-title {
|
|
color: #aaa;
|
|
padding-top: 2px;
|
|
overflow: hidden;
|
|
margin-right: 50px;
|
|
}
|
|
|
|
.read-state {
|
|
display: none;
|
|
}
|
|
|
|
.signup-cta {
|
|
margin-left: auto;
|
|
margin-right: auto;
|
|
width: calc(100% - 50px);
|
|
a {
|
|
float: right;
|
|
text-decoration: underline;
|
|
margin-top: 7px;
|
|
}
|
|
button {
|
|
margin-right: 7px;
|
|
}
|
|
}
|
|
|
|
.popup-menu {
|
|
h3 {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|