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

566 lines
8.2 KiB
SCSS
Raw Normal View History

.gap {
2014-05-19 23:55:46 -04:00
background-color: scale-color-diff();
padding: 5px 15px;
color: $primary;
text-align: center;
margin: 0 10px;
}
.topic-post {
2014-05-20 01:27:27 -04:00
border-top: 1px solid scale-color-diff();
padding: 6px 0 3px 0;
2013-09-05 15:37:07 -04:00
}
nav.post-controls {
background-color: $secondary;
padding: 0;
2014-05-19 23:55:46 -04:00
border-right: 1px solid scale-color-diff();
2014-05-06 03:24:04 -04:00
clear: both;
button {color: scale-color($primary, $lightness: 50%);
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;
i {
margin-left: 5px;
}
}
2013-09-20 17:28:00 -04:00
2013-09-05 15:37:07 -04:00
button.create {
float: right !important;
2013-09-05 15:37:07 -04:00
margin-right: 0;
color: $primary;
padding-right: 7px;}
2013-09-05 15:37:07 -04:00
}
.create i {
margin-right: 5px;
2013-09-05 15:37:07 -04:00
}
button {
2014-03-06 01:51:39 -05:00
border: none;
font-size: 17px;
padding: 8px 10px;
2013-09-05 15:37:07 -04:00
vertical-align: top;
background: transparent;
float: left !important;
&.hidden {
display: none;
}
2014-05-13 08:53:11 -04:00
&.admin {
position: relative;
}
&.like, &.edit, &.flag, &.delete, &.share, &.bookmark, &.create, &.admin {
float: right;
}
&.expand-post {
margin:10px 0 10px 0;
}
.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
}
}
&.last-read {
color: $danger;}
&.bookmarked {
&:before {
color: $tertiary;
}
}
}
}
2013-09-05 15:37:07 -04:00
nav.post-controls {
position: relative;
}
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: -26px;
2014-05-13 08:53:11 -04:00
left: 0;
z-index: 1000;
display: none;
h3 {
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 {
margin-left: 10px;
2013-09-05 15:37:07 -04:00
margin-top: 2px;
}
a.reply-to-tab {
display: none;
}
a.star {
display: inline-block;
2013-09-05 15:37:07 -04:00
float: left;
font-size: 1.3em;
margin-top: 4px;
2013-09-05 15:37:07 -04:00
}
#main a.star.starred {
2014-03-06 01:51:39 -05:00
text-shadow: none !important;
2013-09-05 15:37:07 -04:00
}
.topic-post .boxed .contents {
float: none;
}
.topic-map {
2013-09-05 15:37:07 -04:00
.btn {
border-radius: 0 4px 0 4px;
}
.topic-links li {
word-wrap: break-word;
}
2013-09-05 15:37:07 -04:00
border-radius: 5px;
2014-05-13 03:03:22 -04:00
margin: 30px 10px 20px 10px;
2014-05-19 23:55:46 -04:00
border: 1px solid scale-color-diff();
2013-09-05 15:37:07 -04:00
h3 {
margin-bottom: 4px;
color: $primary;
2013-09-05 15:37:07 -04:00
line-height: 23px;
}
2013-09-05 15:37:07 -04:00
h4 {
margin: 0 0 3px 0;
color: $primary;
2013-09-05 15:37:07 -04:00
font-weight: normal;
font-size: 12px;
line-height: 15px;
}
2013-09-05 15:37:07 -04:00
p,
.participants {
margin: 0 0 7px;
}
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;
top: 2px;
right: 6px;
padding: 0 4px;
font-weight: normal;
font-size: 11px;
line-height: 14px;
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;
padding: 7px 11px;
&:last-of-type {
border-right: 0;
}
}
a, .number {
2013-09-05 15:37:07 -04:00
font-weight: bold;
line-height: 20px;
}
2014-05-06 18:38:22 -04:00
2013-09-05 15:37:07 -04:00
.avatar + a {
float: left;
}
}
.avatars,
.links,
.information {
padding: 7px 14px;
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
2013-09-05 15:37:07 -04:00
.information {
2014-05-19 23:55:46 -04:00
border-top: 1px solid scale-color-diff();
2013-09-05 15:37:07 -04:00
}
2014-05-06 03:48:44 -04:00
.domain {
2014-05-06 04:14:56 -04:00
color: scale-color($primary, $lightness: 75%);
2014-05-06 03:48:44 -04:00
}
2013-09-05 15:37:07 -04:00
.topic-links {
.badge-notification {
margin: 0 0 4px;
}
}
.buttons {
float: right;
.btn {
border: 0;
2014-05-19 23:55:46 -04:00
border-bottom: 1px solid scale-color-diff();
border-left: 1px solid scale-color-diff();
2013-09-05 15:37:07 -04:00
padding: 0 23px;
color: $primary;
background: scale-color-diff();
2013-09-05 15:37:07 -04:00
&:hover {
background: scale-color($primary, $lightness: 75%);
color: $primary;
2014-05-19 23:55:46 -04:00
border-bottom: 1px solid scale-color-diff();
2013-09-05 15:37:07 -04:00
}
2013-12-09 16:27:49 -05:00
.fa {
2013-09-05 15:37:07 -04:00
margin: 0;
font-size: 18px;
line-height: 52px;
}
}
}
}
#topic-footer-buttons {
2014-05-19 23:55:46 -04:00
border-top: 1px solid scale-color-diff();
2013-09-10 23:56:55 -04:00
padding: 20px 10px 0 10px;
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 10px 15px 10px;
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 {
2013-09-05 15:37:07 -04:00
font-size: 10px;
vertical-align: top;
}
2013-09-05 15:37:07 -04:00
.title {
font-size: 14px; line-height: 8px;
2013-09-05 15:37:07 -04:00
}
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;
2013-09-10 23:56:55 -04:00
padding: 15px 10px 15px 10px;
2013-09-05 15:37:07 -04:00
}
.topic-post {
article.boxed img {
max-width: 100%;
height: auto;
}
&.moderator {
2014-05-06 11:37:09 -04:00
background-color: scale-color($highlight, $lightness: 60%);
}
2013-09-05 15:37:07 -04:00
}
.quote-button {
display: none;
position: absolute;
background-color: scale-color($primary, $lightness: 50%);
color: $primary;
2013-09-05 15:37:07 -04:00
padding: 10px;
width: 90px;
&:hover {
background-color: scale-color($primary, $lightness: 50%);
cursor: pointer;
2013-09-05 15:37:07 -04: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-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;
}
.contents .cooked a {
word-wrap: break-word;
}
2014-05-13 08:53:11 -04:00
.wiki {
float: left;
padding: 10px;
color: #408040;
i {
float: left;
}
h3 {
float: left;
margin-left: 10px;
}
}
2013-09-05 15:37:07 -04:00
.modal-body {
input[type=text] {
font-size: 16px;
display: block;
2013-09-05 15:37:07 -04:00
margin-top: 10px;
}
2013-09-05 15:37:07 -04:00
}
#share-link {
2013-09-05 15:37:07 -04:00
width: 265px;
margin-left: -4px;
h3 {
margin: 5px 0;
}
input[type=text] {
font-size: 16px;
width: 92%;
margin-bottom: 10px;
}
2013-09-05 15:37:07 -04:00
}
#selected-posts {
padding-left: 20px;
2013-09-05 15:37:07 -04:00
.btn {
margin-bottom: 10px;
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
.post-action {
float:right;
2014-05-13 14:10:29 -04:00
margin-right: 10px;
2014-05-13 01:50:52 -04:00
}
2013-09-05 15:37:07 -04:00
.post-action .relative-date {
margin-left: 5px;
}
.deleted {
2014-05-06 23:53:04 -04:00
background-color: scale-color($danger, $lightness: 75%);
2013-09-05 15:37:07 -04:00
}
#show-topic-admin {
color: scale-color($primary, $lightness: 50%);
right: 0;
border-right: 0;
padding-right: 4px;
padding-left: 5px;
2013-09-05 15:37:07 -04: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;
}
2014-05-14 04:05:24 -04:00
.username.new-user a {
color: scale-color($primary, $lightness: 70%);
}
2013-09-05 15:37:07 -04: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-05 15:37:07 -04:00
span.btn-text {display: none;}
blockquote {
2013-09-18 11:05:23 -04:00
clear:both;
margin: 0;
}
.quote-controls {
float: right;
color: $primary;
a {
margin: 0;
}
.back:before,
.quote-other-topic:before {
display: inline-block;
margin-left: 8px;
color: $primary;
font-family: "FontAwesome";
2013-09-20 17:28:00 -04:00
position: relative;
z-index: 20;
}
.back:before {
content: "\f062";
}
.quote-other-topic:before {
content: "\f061";
}
}
.quote .title {
2014-05-06 15:38:11 -04:00
border-left: 5px solid scale-color($primary, $lightness: 75%);
2014-05-19 23:55:46 -04:00
background-color: scale-color-diff();
2014-05-06 15:38:11 -04:00
padding: 10px 10px 10px 12px;
2013-09-18 00:37:56 -04:00
clear: both;
.avatar { margin-right: 7px; }
}
.gutter { display: none; }
.posts-wrapper { position: relative;
}
2014-03-31 11:29:32 -04:00
.topic-body.highlighted {
background-color: scale-color($tertiary, $lightness: 75%);
}
.topic-avatar {
width: 100%;
float: left;
position: relative;
z-index: 2;
}
.topic-meta-data {
float: left;
position: absolute;
z-index: 1;
width: 100%;
2014-05-13 14:10:29 -04:00
.names {margin: 5px 0 0 65px; float: left;}
2014-05-13 01:50:52 -04:00
.post-info {float: right; font-size: 12px; margin: 4px 10px 0 0;
.edits {margin-right: 5px;}
}
2014-03-31 11:29:32 -04:00
}