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

526 lines
8.7 KiB
SCSS
Raw Normal View History

.gap {
2015-06-29 03:47:07 -04:00
/* may not need this */
}
2015-06-18 21:24:10 -04:00
.time-gap {
2015-06-18 23:30:01 -04:00
border-bottom: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
color: lighten($primary, 50%);
padding-bottom: 3px;
margin-bottom: 10px;
text-transform: uppercase;
font-weight: bold;
2015-06-18 23:30:01 -04:00
.topic-avatar {
margin: 0 5px 0 10px;
}
2015-06-18 21:24:10 -04:00
}
.topic-post {
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
padding: 6px 0;
2013-09-05 15:37:07 -04:00
}
span.badge-posts {
margin-right: 5px;
}
.show-replies {
2013-09-05 15:37:07 -04:00
display: none;
}
nav.post-controls {
clear: both;
2013-09-05 15:37:07 -04:00
}
.who-liked {
2015-07-10 00:48:44 -04:00
margin-left: 10px;
}
button.like-count {
font-size: 1em;
padding: 8px 4px;
}
2013-09-05 15:37:07 -04:00
button {
2014-03-06 01:51:39 -05:00
border: none;
font-size: 1.214em;
padding: 8px 10px;
2013-09-05 15:37:07 -04:00
vertical-align: top;
background: transparent;
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
float: left;
&.hidden {
display: none;
}
2014-05-13 08:53:11 -04:00
&.admin {
position: relative;
}
&.expand-post {
margin:10px 0 10px 0;
}
2014-07-20 04:39:02 -04:00
&.has-like {color: $love;}
.read-icon {
&:before {
font-family: "FontAwesome";
content: "\f02e";
2013-09-05 15:37:07 -04:00
}
&.unseen {
&:before {
content: "\f097";
2013-09-05 15:37:07 -04:00
}
}
&.bookmarked {
&:before {
color: $tertiary;
}
}
}
}
2013-09-05 15:37:07 -04:00
2014-07-20 05:12:35 -04:00
2014-07-20 05:50:58 -04:00
/* shift post reply button to the right and make it black */
.post-controls button.create {
float: right;
color: $primary;
}
2014-05-13 08:53:11 -04:00
.post-admin-menu {
background-color: $secondary;
width: 205px;
padding: 10px;
border: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
2014-05-13 08:53:11 -04:00
position: absolute;
text-align: left;
bottom: 0;
left: 135px;
2014-05-13 08:53:11 -04:00
z-index: 1000;
display: none;
h3 {
margin-top: 0;
2014-05-13 08:53:11 -04:00
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;
}
}
}
2013-09-05 15:37:07 -04:00
.embedded-posts {
.topic-meta-data h5 a {
margin-left: 10px;
}
}
.reply-new {
display: none;
}
.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;
2013-09-05 15:37:07 -04:00
}
a.reply-to-tab {
position: absolute;
z-index: 400;
right: 80px;
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
span { display: none; }
2013-09-05 15:37:07 -04:00
}
a.star {
display: inline-block;
2013-09-05 15:37:07 -04:00
float: left;
font-size: 1.3em;
2013-09-05 15:37:07 -04:00
}
.topic-post .boxed .contents {
2014-06-13 02:14:58 -04:00
clear: both;
}
.topic-map {
margin: 10px 0;
background: blend-primary-secondary(5%);
2015-05-22 04:28:34 -04:00
border: 1px solid dark-light-diff($primary, $secondary, 90%, -65%);
border-top: none; // would cause double top border
2015-06-03 05:46:35 -04:00
section {
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -65%);
}
2013-09-05 15:37:07 -04:00
h3 {
margin-bottom: 4px;
margin-top: 0;
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
2013-09-05 15:37:07 -04:00
line-height: 23px;
2015-05-21 18:30:10 -04:00
font-weight: normal;
2015-05-22 04:28:34 -04:00
font-size: 1em;
2013-09-05 15:37:07 -04:00
}
2013-09-05 15:37:07 -04:00
h4 {
margin: 0 0 3px 0;
color: dark-light-choose(scale-color($primary, $lightness: 50%), scale-color($secondary, $lightness: 50%));
2013-09-05 15:37:07 -04:00
font-weight: normal;
font-size: 0.857em;
2013-09-05 15:37:07 -04:00
line-height: 15px;
}
2014-07-13 01:17:54 -04:00
.user {
float: left;
margin-right: 10px;
}
2013-09-05 15:37:07 -04:00
ul {
margin: 0;
list-style: none;
}
2013-09-05 15:37:07 -04:00
.avatars {
> div {
float: left;
position: relative;
margin: 3px 0;
}
.post-count {
position: absolute;
right: 3px;
border-radius: 100px;
padding: 4px 5px 2px 5px;
text-align: center;
2013-09-05 15:37:07 -04:00
font-weight: normal;
font-size: 11px;
line-height: 1;
2014-05-06 03:48:44 -04:00
}
2013-09-05 15:37:07 -04:00
}
2013-09-05 15:37:07 -04:00
.avatar {
float: left;
margin-right: 4px;
}
.map-collapsed {
.secondary {
display: none;
2013-09-05 15:37:07 -04:00
}
}
.map {
2013-09-05 15:37:07 -04:00
li {
float: left;
2014-09-23 06:06:07 -04:00
padding: 7px 8px;
2013-09-05 15:37:07 -04:00
&:last-of-type {
border-right: 0;
}
}
a, .number {
2013-09-05 15:37:07 -04:00
line-height: 20px;
}
2015-06-03 05:46:35 -04:00
.number, i {
color: dark-light-choose(scale-color($primary, $lightness: 20%), scale-color($secondary, $lightness: 80%));
2015-06-03 05:46:35 -04:00
font-size: 110%;
}
2014-05-06 18:38:22 -04:00
2013-09-05 15:37:07 -04:00
.avatar + a {
float: left;
}
}
li.avatars {
2014-09-23 06:06:07 -04:00
display: none;
}
2015-06-03 05:46:35 -04:00
.links, .information, .avatars {
2014-06-26 03:46:16 -04:00
padding: 7px 10px;
color: $primary;
2014-05-06 03:24:04 -04:00
overflow: auto;
2013-09-05 15:37:07 -04:00
}
2013-10-22 10:41:09 -04:00
2015-06-03 05:46:35 -04:00
.participants { // PMs //
.user {float: left; margin: 0 10px 10px 0;}
2013-09-05 15:37:07 -04:00
}
2014-05-06 03:48:44 -04:00
.domain {
color: dark-light-choose(scale-color($primary, $lightness: 75%), scale-color($secondary, $lightness: 25%));
2014-05-06 03:48:44 -04:00
}
2013-09-05 15:37:07 -04:00
.topic-links {
.badge-notification {
2014-07-01 03:51:47 -04:00
margin: 1px 5px 2px 0;
2013-09-05 15:37:07 -04:00
}
}
2014-06-26 03:46:16 -04:00
td {
vertical-align: top;
padding:1px;
2014-06-26 03:46:16 -04:00
}
2013-09-05 15:37:07 -04:00
.buttons {
float: right;
.btn {
border: 0;
2014-09-23 06:06:07 -04:00
padding: 0 15px;
color: $primary;
background: blend-primary-secondary(5%);
2015-05-22 04:28:34 -04:00
border-left: 1px solid dark-light-diff($primary, $secondary, 90%, -65%);
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -65%);
2013-12-09 16:27:49 -05:00
.fa {
2013-09-05 15:37:07 -04:00
margin: 0;
font-size: 1.286em;
2013-09-05 15:37:07 -04:00
line-height: 52px;
}
}
}
}
#topic-footer-buttons {
@include clearfix;
border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%);
padding: 20px 0 0 0;
.fa-bookmark.bookmarked { color: $tertiary; }
2013-09-05 15:37:07 -04:00
}
2014-05-06 03:48:44 -04:00
/* this is to force the drop-down notification state description para below the button */
#topic-footer-buttons p {
clear: both;
2014-05-06 04:14:56 -04:00
margin: 0;
2014-05-06 03:48:44 -04:00
}
2013-09-05 15:37:07 -04:00
#suggested-topics {
clear: left;
padding: 20px 0 15px 0;
th.views, td.views, td.activity, th.activity, th.likes, td.likes {
2013-09-05 15:37:07 -04:00
display: none;
}
2013-09-05 15:37:07 -04:00
a.badge-category, a.badge-category-parent {
font-size: 0.714em;
vertical-align: top;
}
2013-09-05 15:37:07 -04:00
}
span.post-count {
background: $primary;
color: $secondary;
2013-09-05 15:37:07 -04:00
opacity: .8;
}
#topic-footer-buttons {
.btn {
margin-bottom: 5px;
2013-09-05 15:37:07 -04:00
margin-right: 10px;
2013-12-09 16:27:49 -05:00
.fa-star {margin-right: 5px;}
2013-09-05 15:37:07 -04:00
}
}
#topic-title {
z-index: 1000;
margin: 0 0 0 0 !important;
padding: 15px 0;
2013-09-05 15:37:07 -04:00
}
.topic-post {
&.moderator {
background-color: dark-light-diff($highlight, $secondary, 70%, -80%);
}
2013-09-05 15:37:07 -04:00
}
.quote-button.visible {
display: block;
}
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;
}
2013-09-05 15:37:07 -04:00
}
.btn-group {
margin-top: 25px;
2013-09-05 15:37:07 -04:00
position: relative;
}
.dropdown-toggle {
float: left;
2013-09-05 15:37:07 -04:00
position: relative;
}
#share-link {
2014-06-24 03:55:43 -04:00
width: 290px;
left: auto;
right: 4px;
2013-09-05 15:37:07 -04:00
}
#selected-posts {
width: 97%;
padding-left: 3%;
2015-08-20 16:59:32 -04:00
background-color: srgb-scale($tertiary, $secondary, 15%);
2013-09-05 15:37:07 -04:00
.btn {
margin-bottom: 10px;
color: $secondary;
2015-08-20 16:59:32 -04:00
background: $tertiary;
clear: both;
}
p {
clear: both;
2013-09-05 15:37:07 -04:00
}
}
// 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: 401; // 400 is the reply-to tab
left: 200px;
2015-08-20 16:59:32 -04:00
background-color: srgb-scale($tertiary, $secondary, 60%);
color: $secondary;
padding: 5px;
}
2013-09-05 15:37:07 -04:00
.post-select {
float: right;
margin-right: 20px;
2013-09-05 15:37:07 -04:00
margin-top: -20px;
}
2014-05-13 01:50:52 -04:00
2013-09-05 15:37:07 -04:00
.deleted {
background-color: dark-light-diff(rgba($danger,.7), $secondary, 50%, -60%);
2013-09-05 15:37:07 -04:00
}
.deleted-user-avatar {
font-size: 2.571em;
}
2013-09-05 15:37:07 -04:00
span.btn-text {display: none;}
blockquote {
2013-09-18 11:05:23 -04:00
clear:both;
/* leave browser defaults for top and bottom here */
margin-left: 0;
margin-right: 0;
}
.gutter { display: none; }
.posts-wrapper { position: relative; }
2014-03-31 11:29:32 -04:00
span.highlighted {
background-color: dark-light-choose(scale-color($highlight, $lightness: 70%), $highlight);
}
.topic-avatar {
float: left;
padding-top: 5px;
z-index:999; /* must render on top of topic-body + topic-meta-data, otherwise not tappable */
}
.topic-meta-data {
margin-left: 50px;
.names {
margin: 5px 0 0 5px;
line-height: 17px;
span {
display: block;
}
}
.post-info {
float: right;
font-size: 0.929em;
margin: 4px 10px 0 0;
.edits { margin-right: 5px; }
}
}
.username.new-user a {
color: dark-light-choose(scale-color($primary, $lightness: 70%), scale-color($secondary, $lightness: 30%));
}
.user-title {
color: #aaa;
padding-top: 2px;
overflow: hidden;
margin-right: 50px;
2014-03-31 11:29:32 -04:00
}
.read-state {
display: none;
}
2015-09-01 19:49:45 -04:00
.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;
}
}
.small-action .small-action-desc {
2015-08-04 06:44:58 -04:00
p {
padding-top: 0;
}
.custom-message {
margin-left: -40px;
}
}
.small-action .topic-avatar {
padding: 0;
2015-08-04 06:44:58 -04:00
margin: 0;
}
.small-action.time-gap .topic-avatar {
margin-top: -5px;
}