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

496 lines
6.9 KiB
SCSS
Raw Normal View History

2013-09-12 23:51:05 +08:00
@import "common/foundation/variables";
2013-09-06 03:37:07 +08:00
.gap {
background-color: #f9f9f9;
padding: 5px 15px;
color: #999;
text-align: center;
margin: 0 10px;
}
.topic-post {
border-top: 1px solid #ddd;
padding: 6px 0 3px 0;
2013-09-06 03:37:07 +08:00
&:first-of-type {
border-top: none;
2013-09-06 03:37:07 +08:00
}
}
nav.post-controls {
background-color: #fff;
padding: 0px;
border-right: 1px solid #ddd;
margin-top: 10px;
button {color: #aaa;
border-radius: 4px;
margin-right: 2px;
2013-09-06 03:37:07 +08:00
}
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;
}
}
2013-09-21 05:28:00 +08:00
2013-09-06 03:37:07 +08:00
button.create {
float: right !important;
border: 1px solid #888;
2013-09-06 03:37:07 +08:00
margin-right: 0;
color: #888;
padding-right: 7px;
}
2013-09-06 03:37:07 +08:00
.like {
border-right: 1px solid #ddd;
}
.create i {
margin-right: 5px;
2013-09-06 03:37:07 +08:00
}
button {
border: none;
font-size: 16px;
padding: 8px 10px;
vertical-align: top;
background: transparent;
border: 1px solid #ddd;
float: left !important;
&:last-of-type {
border-right: 1px solid #ddd;
}
&:hover {
}
&:active {
}
&.hidden {
display: none;
}
&.like, &.edit, &.flag, &.delete, &.share, &.bookmark, &.create {
float: right;
}
.read-icon {
&:before {
font-family: "FontAwesome";
content: "\f02e";
}
&.unseen {
&:before {
content: "\f097";
}
}
&.last-read {
2013-09-12 23:51:05 +08:00
color: $red;
2013-09-06 03:37:07 +08:00
}
&.bookmarked {
&:before {
2013-09-12 23:51:05 +08:00
color: $bookmarkColor;
2013-09-06 03:37:07 +08:00
}
}
}
}
}
.embedded-posts {
2013-09-06 03:37:07 +08:00
.topic-meta-data h5 a {
margin-left: 10px;
}
}
.reply-new {
display: none;
}
.post-actions {
margin-left: 10px;
2013-09-06 03:37:07 +08:00
margin-top: 2px;
}
a.reply-to-tab {
display: none;
}
a.star {
display: inline-block;
2013-09-06 03:37:07 +08:00
float: left;
font-size: 1.4em !important;
2013-09-06 03:37:07 +08:00
margin-top: 3px;
}
#main a.star.starred {
text-shadow: none !important;
}
.topic-map {
2013-09-06 03:37:07 +08:00
.btn {
border-radius: 0 4px 0 4px;
}
.topic-links li {
word-wrap: break-word;
}
2013-09-06 03:37:07 +08:00
border-radius: 5px;
2013-09-11 11:56:55 +08:00
margin: 15px 10px 20px 10px;
2013-09-06 03:37:07 +08:00
border: 1px solid #ddd;
2013-09-06 03:37:07 +08:00
h3 {
margin-bottom: 4px;
color: #323232;
line-height: 23px;
}
2013-09-06 03:37:07 +08:00
h4 {
margin: 0 0 3px 0;
color: #6c7376;
font-weight: normal;
font-size: 12px;
line-height: 15px;
}
2013-09-06 03:37:07 +08:00
p,
.participants {
margin: 0 0 7px;
}
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;
}
}
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;
padding: 7px 11px;
&:last-of-type {
border-right: 0;
}
}
a, .number {
2013-09-06 03:37:07 +08:00
font-weight: bold;
line-height: 20px;
}
.number {
color: #445a62;
}
.avatar + a {
float: left;
}
}
.avatars,
.links,
.information {
padding: 7px 14px;
color: #000;
}
2013-10-22 22:41:09 +08:00
2013-09-06 03:37:07 +08:00
.information {
border-top: 1px solid #d1d1d2;
}
.topic-links {
.badge-notification {
margin: 0 0 4px;
}
}
.buttons {
float: right;
.btn {
border: 0;
border-bottom: 1px solid #ddd;
border-left: 1px solid #e6e6e6;
padding: 0 23px;
color: #444;
background: #ddd;
&:hover {
background: #ccc;
color: #444;
border-bottom: 1px solid #ccc;
2013-09-06 03:37:07 +08:00
}
&.collapsed {
}
2013-12-10 05:27:49 +08:00
.fa {
2013-09-06 03:37:07 +08:00
margin: 0;
font-size: 18px;
line-height: 52px;
}
}
}
}
#topic-footer-buttons {
border-top: 1px solid #ddd;
2013-09-11 11:56:55 +08:00
padding: 20px 10px 0 10px;
2013-09-06 03:37:07 +08:00
}
#suggested-topics {
clear: left;
padding: 20px 10px 15px 10px;
2013-09-11 11:56:55 +08:00
th.views, td.views, td.activity, th.activity, th.likes, td.likes {
2013-09-06 03:37:07 +08:00
display: none;
}
a.badge-category {
font-size: 10px;
}
.title {
font-size: 14px; line-height: 8px;
2013-09-06 03:37:07 +08:00
}
2013-09-06 03:37:07 +08:00
}
span.post-count {
background: #000;
color: #fff;
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;
background: #eee;
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 {
article.boxed img {
max-width: 100%;
height: auto;
}
&.moderator {
background-color: #eef0ff;
}
2013-09-06 03:37:07 +08:00
}
.quote-button {
display: none;
position: absolute;
background-color: #666;
2013-09-06 03:37:07 +08:00
color: #fff;
padding: 10px;
width: 90px;
&:hover {
background-color: #999;
cursor: pointer;
2013-09-06 03:37:07 +08:00
}
}
.quote-button.visible {
display: block;
}
iframe {
max-width: 100%;
}
.extra-info {
display: none;
}
.topic-meta-data {
margin-bottom: 10px;
}
.open>.dropdown-menu {
display: block;
}
.dropdown-menu li {
margin: 5px 0;
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;
}
.contents .cooked a {
word-wrap: break-word;
}
.modal-body {
input[type=text] {
font-size: 16px;
display: block;
2013-09-06 03:37:07 +08:00
margin-top: 10px;
}
2013-09-06 03:37:07 +08:00
}
#share-link {
2013-09-06 03:37:07 +08:00
width: 265px;
margin-left: -4px;
2013-09-06 03:37:07 +08:00
h3 {
margin: 5px 0;
}
2013-09-06 03:37:07 +08:00
input[type=text] {
font-size: 16px;
width: 92%;
margin-bottom: 10px;
}
}
#selected-posts {
padding-left: 20px;
2013-09-06 03:37:07 +08:00
.btn {
margin-bottom: 10px;
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;
}
.post-action .relative-date {
margin-left: 5px;
}
.deleted {
background-color: lighten(red, 45%);
}
#show-topic-admin {
color: #7b7b7b;
right: 0px;
border-right: 0;
padding-right: 4px;
padding-left: 5px;
2013-09-06 03:37:07 +08:00
border-radius: 4px 0 0 4px;
}
.deleted-user-avatar {
font-size: 36px;
}
.staff a {
border-radius: 4px;
padding: 4px;
margin: -4px 0 0 -4px;
background-color: lighten(yellow, 35%);
}
h3.new-user a[href] {
color: $dark_gray;
}
2013-09-06 03:37:07 +08:00
.topic-meta-data {
white-space: nowrap;
float: left;
}
.user-title {
color: #aaa;
padding-top: 2px;
padding-left: 8px;
overflow: hidden;
margin-right: 50px;
}
2013-09-06 03:37:07 +08:00
span.btn-text {display: none;}
blockquote {
2013-09-18 23:05:23 +08:00
clear:both;
margin: 0;
}
.quote-controls {
float: right;
color: #323232;
a {
margin: 0;
}
.back:before,
.quote-other-topic:before {
display: inline-block;
margin-left: 8px;
color: #323232;
font-family: "FontAwesome";
2013-09-21 05:28:00 +08:00
position: relative;
z-index: 20;
}
.back:before {
content: "\f062";
}
.quote-other-topic:before {
content: "\f061";
}
}
.quote .title {
border-left: 5px solid #bebebe;
background-color: #f1f1f1;
padding: 10px 10px 0 12px;
2013-09-18 12:37:56 +08:00
clear: both;
.avatar { margin-right: 7px; }
}
.gutter { display: none; }
.posts-wrapper { position: relative;
}