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

504 lines
7.7 KiB
SCSS
Raw Normal View History

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